ParamMgr.hh
934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* ParamMgr.hh
*
* Created on: Oct 6, 2014
* Author: m.mazel
*/
#ifndef PARAMMGR_HH_
#define PARAMMGR_HH_
#include <string>
#include "dsgpatt_Singleton.hh"
#include "ParamInfo.hh"
namespace AMDA {
/**
* @brief Module to retrieve information about a parameter, a dataset, an instrument or a mission.
*/
namespace Info {
/**
* @class ParamMgr
* @brief Singleton to manage all paramer information
* @details
*/
class ParamMgr : public ::Singleton<ParamMgr> {
public:
const ParamInfoSPtr getParamInfoFromId (const std::string &id, bool forceCreateIfNoExist = false);
const ParamInfoSPtr cloneParamInfoFromId(const std::string &originId, const std::string &dstId);
private:
ParamInfoSPtr getParamInfoFromFile (const std::string ¶mId,
const std::string &xmlFilename);
// Param Informations list
ParamInfoMap _paramInfoMap;
};
} /* namespace Info */
} /* namespace AMDA */
#endif /* PARAMMGR_HH_ */