Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
CommonParameterManager.h
Go to the documentation of this file.
1 
12 #ifndef __KOME_CORE_COMMON_PARAMETER_MANAGER_H__
13 #define __KOME_CORE_COMMON_PARAMETER_MANAGER_H__
14 
15 #include <string>
16 #include <vector>
17 
18 namespace kome {
19  namespace core {
20 
25  class CORE_TOOLKITS_CLASS CommonParameterManager {
26  public:
32 
37  virtual ~CommonParameterManager();
38 
39  protected:
44  struct ParamInfo{
45  std::string paramName;
46  std::string paramValue;
47  bool tempFlg;
48 
49  };
50 
52  std::vector< ParamInfo >m_paramInfo;
53 
54  public:
60  int getNumberOfParameters();
61 
68  std::string getParameterName( unsigned int index );
76  void setParameter( std::string paramName, std::string paramValue, bool tempFlg );
77 
85  std::string getParameter( std::string paramName, std::string defaultName );
86 
93  bool isTemporaryParameter( unsigned int index );
94 
95  private:
102  void setIniString( std::string strKey, std::string strValue );
103  public:
109  static CommonParameterManager& getInstance();
110 
111 
112  };
113 
114  }
115 }
116 
117 #endif // __KOME_CORE_COMMON_PARAMETER_MANAGER_H__
common parameter manager class