OpenRTM  1.0.0
ManagerConfig.h
説明を見る。
1 // -*- C++ -*-
20 #ifndef RTC_MANAGERCONFIG_H
21 #define RTC_MANAGERCONFIG_H
22 
23 #include <coil/Properties.h>
24 
25 
26 namespace RTC
27 {
85  {
86  public:
87  // The list of default configuration file path.
95  static const char* config_file_path[];
96 
97  // Environment value to specify configuration file
107  static const char* config_file_env;
108 
124  ManagerConfig();
125 
147  ManagerConfig(int argc, char** argv);
148 
160  virtual ~ManagerConfig(void);
161 
195  void init(int argc, char** argv);
196 
214  void configure(coil::Properties& prop);
215 
245  coil::Properties getConfig() const;
246 
247  protected:
275  void parseArgs(int argc, char** argv);
276 
312  bool findConfigFile();
313 
345 
367  bool fileExist(const std::string& filename);
368 
377 
385  std::string m_configFile;
386 
401  };
402 }; // namespace RTC
403 #endif // RTC_MANAGERCONFIG_H