Manager configuration class. More...
Public Member Functions | |
def | __init__ |
ManagerConfig constructor. | |
def | configure |
Specify the configuration information to the Property. | |
def | fileExist |
Check the file existence. | |
def | findConfigFile |
Find the configuration file. | |
def | init |
Initialization. | |
def | parseArgs |
Get configuration value. | |
def | setSystemInformation |
Set system information. | |
Static Public Attributes | |
string | config_file_env = "RTC_MANAGER_CONFIG" |
The environment variable to distinguish the default configuration file path. | |
list | config_file_path |
The default configuration file path for manager. | |
Private Attributes | |
_argprop | |
_configFile | |
_isMaster |
Manager configuration class.
Modify Manager's configuration. This class receives the command line arguments and will be instantiated. Set property information of Manager with the configuration file specified by the command line argument or the environment variable etc.
The priorities of each configuration are as follows:
If the command option "-d" is specified (even if specify configuration file by "-f" option), the embedded configuration values will be used.
Definition at line 82 of file ManagerConfig.py.
def OpenRTM_aist.ManagerConfig.ManagerConfig.__init__ | ( | self, | |
argv = None |
|||
) |
ManagerConfig constructor.
The constructor that performs initialization at the same time with given arguments.
argv | The command line arguments |
Definition at line 131 of file ManagerConfig.py.
def OpenRTM_aist.ManagerConfig.ManagerConfig.configure | ( | self, | |
prop | |||
) |
Specify the configuration information to the Property.
Configure to the properties specified by Manager's configuration
Definition at line 188 of file ManagerConfig.py.
def OpenRTM_aist.ManagerConfig.ManagerConfig.fileExist | ( | self, | |
filename | |||
) |
Check the file existence.
Confirm whether the specified file exists
filename | The target confirmation file |
Definition at line 415 of file ManagerConfig.py.
Find the configuration file.
Find the configuration file and configure it. Confirm the file existence when the configuration file has already configured.
The priority of the configuration file
The command option¡äthe environment variable¡äthe default file¡ä the default configuration
Default force option(-d): Ignore any default files and use the default configuration.
Definition at line 326 of file ManagerConfig.py.
def OpenRTM_aist.ManagerConfig.ManagerConfig.init | ( | self, | |
argv | |||
) |
Initialization.
Initialize with command line options. The following command options are available.
-f file : Specify a configuration file.
-l module : Specify modules to be loaded at the beginning.
-o options: Other options.
-d : Use default static configuration.
Definition at line 169 of file ManagerConfig.py.
def OpenRTM_aist.ManagerConfig.ManagerConfig.parseArgs | ( | self, | |
argv | |||
) |
Get configuration value.
This operation returns default configuration statically defined, when before calling init() function. When after calling init() function, this operation returns initialized configuration value according to command option, environment value and so on.
def getConfig(self): pass
Parse command arguments
-f file : Specify a configuration file.
-l module : Specify modules to be loaded at the beginning.
-o options: Other options.
-d : Use default static configuration.
Definition at line 254 of file ManagerConfig.py.
def OpenRTM_aist.ManagerConfig.ManagerConfig.setSystemInformation | ( | self, | |
prop | |||
) |
Set system information.
Get the following system info and set them to Manager's properties.
Definition at line 378 of file ManagerConfig.py.
Definition at line 131 of file ManagerConfig.py.
Definition at line 131 of file ManagerConfig.py.
Definition at line 131 of file ManagerConfig.py.
string OpenRTM_aist::ManagerConfig.ManagerConfig::config_file_env = "RTC_MANAGER_CONFIG" [static] |
The environment variable to distinguish the default configuration file path.
Definition at line 108 of file ManagerConfig.py.
["./rtc.conf", "/etc/rtc.conf", "/etc/rtc/rtc.conf", "/usr/local/etc/rtc.conf", "/usr/local/etc/rtc/rtc.conf", None]
The default configuration file path for manager.
Definition at line 92 of file ManagerConfig.py.