Public Member Functions | |
std::string & | configFile () |
bool | fileExist (const std::string &filename) |
Check the file existence. | |
bool | findConfigFile () |
Find the configuration file. | |
void | parseArgs (int argc, char **argv) |
Parse the command arguments. | |
void | setSystemInformation (coil::Properties &prop) |
Set system information. | |
Public Attributes | |
bool | m_isMaster |
Manager master flag. |
Definition at line 52 of file ManagerConfigTests.cpp.
std::string& ManagerConfig::ManagerConfigMock::configFile | ( | ) | [inline] |
Definition at line 76 of file ManagerConfigTests.cpp.
bool ManagerConfig::ManagerConfigMock::fileExist | ( | const std::string & | filename | ) | [inline] |
Check the file existence.
Confirm whether the specified file exists
filename | The target confirmation file |
Reimplemented from RTC::ManagerConfig.
Definition at line 70 of file ManagerConfigTests.cpp.
bool ManagerConfig::ManagerConfigMock::findConfigFile | ( | ) | [inline] |
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.
Reimplemented from RTC::ManagerConfig.
Definition at line 60 of file ManagerConfigTests.cpp.
void ManagerConfig::ManagerConfigMock::parseArgs | ( | int | argc, |
char ** | argv | ||
) | [inline] |
Parse the command arguments.
argc | Number of command line arguments |
argv | The command line arguments |
Reimplemented from RTC::ManagerConfig.
Definition at line 55 of file ManagerConfigTests.cpp.
void ManagerConfig::ManagerConfigMock::setSystemInformation | ( | coil::Properties & | prop | ) | [inline] |
Set system information.
Get the following system info. and set them to Manager's properties.
prop | Properties to set system information |
Reimplemented from RTC::ManagerConfig.
Definition at line 65 of file ManagerConfigTests.cpp.
Manager master flag.
true:master,false:slave
Reimplemented from RTC::ManagerConfig.
Definition at line 80 of file ManagerConfigTests.cpp.