ManagerConfig.h
Go to the documentation of this file.
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 
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
RT-Component.
std::string m_configFile
Manager&#39;s configuration file path.
virtual ~ManagerConfig(void)
Destructor.
bool fileExist(const std::string &filename)
Check the file existence.
coil::Properties getConfig() const
Get the configuration.
void configure(coil::Properties &prop)
Specify the configuration information to the Property.
void parseArgs(int argc, char **argv)
Parse the command arguments.
void init(int argc, char **argv)
Initialization.
prop
Organization::get_organization_property ();.
Class represents a set of properties.
Definition: Properties.h:101
static const char * config_file_path[]
The default configuration file path for manager.
Definition: ManagerConfig.h:95
ManagerConfig()
Constructor.
bool m_isMaster
Manager master flag.
static const char * config_file_env
The environment variable to distinguish the default configuration file path.
coil::Properties m_argprop
configuration properties from arguments
bool findConfigFile()
Find the configuration file.
void setSystemInformation(coil::Properties &prop)
Set system information.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:58