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

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

filenameThe target confirmation file
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.

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)
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.release : OS release name
  • os.version : OS version
  • os.arch : OS architecture
  • os.hostname: Hostname
  • : process ID
propProperties to set system information

Reimplemented from RTC::ManagerConfig.

Definition at line 65 of file ManagerConfigTests.cpp.

Member Data Documentation

Manager master flag.


Reimplemented from RTC::ManagerConfig.

Definition at line 80 of file ManagerConfigTests.cpp.

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

Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:12