Public Member Functions | Public Attributes
ManagerConfig::ManagerConfigMock Class Reference
Inheritance diagram for ManagerConfig::ManagerConfigMock:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Definition at line 52 of file ManagerConfigTests.cpp.


Member Function Documentation

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

Parameters:
filenameThe target confirmation file
Returns:
file existance confirmation (True if the file exists.)

Reimplemented from RTC::ManagerConfig.

Definition at line 70 of file ManagerConfigTests.cpp.

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.

Returns:
Configuration file search result

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.

  • -f file : Specify the configuration file.
  • -l module : Specify modules to be loaded. (Not implemented)
  • -o options: Other options. (Not implemented)
  • -d : Use default static configuration. (Not implemented)
Parameters:
argcNumber of command line arguments
argvThe command line arguments

Reimplemented from RTC::ManagerConfig.

Definition at line 55 of file ManagerConfigTests.cpp.

Set system information.

Get the following system info. and set them to Manager's properties.

  • os.name : OS name
  • os.release : OS release name
  • os.version : OS version
  • os.arch : OS architecture
  • os.hostname: Hostname
  • manager.pid : process ID
Parameters:
propProperties to set system information

Reimplemented from RTC::ManagerConfig.

Definition at line 65 of file ManagerConfigTests.cpp.


Member Data Documentation

Manager master flag.

true:master,false:slave

Reimplemented from RTC::ManagerConfig.

Definition at line 80 of file ManagerConfigTests.cpp.


The documentation for this class was generated from the following file:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:40