Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

RTM::RtcConfig Class Reference

Rtcmanager configuration class. More...

#include <RtcConfig.h>

List of all members.

Public Member Functions

 RtcConfig ()
 RtcConfig class constructor.

 RtcConfig (int argc, char **argv)
 RtcConfig class constructor.

virtual ~RtcConfig ()
 RtcConfig class destructor.

bool initConfig (int argc, char **argv)
 Initialize RtcConfig class.

char ** getOrbInitArgv () const
 Get arguments to give ORB_init().

int getOrbInitArgc () const
 Get number of arguments to give ORB_init().

string getNameServer () const
 Get name of CORBA name server.

list< string > & getComponentLoadPath ()
 Get component load path.

string getBinName () const
 Get current executable name.

string getOSname () const
 Get current OS name.

string getHostname () const
 Get current host name.

string getOSrelease () const
 Get current OS release level.

string getOSversion () const
 Get current OS version.

string getArch () const
 Get current machine architecture.

string getPid () const
 Get current process id.

string getLogFileName ()
string getErrorLogFileName ()
int getLogLevel ()
int getLogLock ()
std::string getLogTimeFormat ()

Protected Member Functions

bool parseCommandArgs (int argc, char **argv)
 Parse command line arguments.

bool findConfigFile ()
 Find configuration file from default given path.

bool parseConfigFile ()
 Parse configuration file.

bool collectSysInfo ()
 Get system information.

void printUsage (char *arg)
 Print usage.

void argsToArgv ()
 Convert command line argument from std::list to char**.

bool fileExist (const char *filename)
 Check file existance.

bool split (const string &input, const string &delimiter, list< string > &results)
 Split string with delimter.


Detailed Description

Rtcmanager configuration class.

Read configuration information from rtc.conf configuration file for RtcManager.


Constructor & Destructor Documentation

RTM::RtcConfig::RtcConfig  )  [inline]
 

RtcConfig class constructor.

A constructor of RtcConfig.

RTM::RtcConfig::RtcConfig int  argc,
char **  argv
 

RtcConfig class constructor.

A constructor of RtcConfig.

Parameters:
argc number of command line arguments
argv sequence of command line arguments

virtual RTM::RtcConfig::~RtcConfig  )  [virtual]
 

RtcConfig class destructor.


Member Function Documentation

void RTM::RtcConfig::argsToArgv  )  [protected]
 

Convert command line argument from std::list to char**.

bool RTM::RtcConfig::collectSysInfo  )  [protected]
 

Get system information.

bool RTM::RtcConfig::fileExist const char *  filename  )  [protected]
 

Check file existance.

bool RTM::RtcConfig::findConfigFile  )  [protected]
 

Find configuration file from default given path.

string RTM::RtcConfig::getArch  )  const [inline]
 

Get current machine architecture.

string RTM::RtcConfig::getBinName  )  const [inline]
 

Get current executable name.

list<string>& RTM::RtcConfig::getComponentLoadPath  )  [inline]
 

Get component load path.

Get component load path gived by configuration file.

string RTM::RtcConfig::getErrorLogFileName  ) 
 

string RTM::RtcConfig::getHostname  )  const [inline]
 

Get current host name.

string RTM::RtcConfig::getLogFileName  ) 
 

int RTM::RtcConfig::getLogLevel  ) 
 

int RTM::RtcConfig::getLogLock  ) 
 

std::string RTM::RtcConfig::getLogTimeFormat  ) 
 

string RTM::RtcConfig::getNameServer  )  const [inline]
 

Get name of CORBA name server.

Get name of CORBA name server gived by configuration file.

int RTM::RtcConfig::getOrbInitArgc  )  const [inline]
 

Get number of arguments to give ORB_init().

Get number of argument to give ORB_init().

char** RTM::RtcConfig::getOrbInitArgv  )  const [inline]
 

Get arguments to give ORB_init().

Get configuration information to give to ORB_init() given by configuration file as a sequence data.

string RTM::RtcConfig::getOSname  )  const [inline]
 

Get current OS name.

string RTM::RtcConfig::getOSrelease  )  const [inline]
 

Get current OS release level.

string RTM::RtcConfig::getOSversion  )  const [inline]
 

Get current OS version.

string RTM::RtcConfig::getPid  )  const [inline]
 

Get current process id.

bool RTM::RtcConfig::initConfig int  argc,
char **  argv
 

Initialize RtcConfig class.

Initialize RtcConfig with command line arguments.

Parameters:
argc number of command line arguments
argv sequence of command line arguments

bool RTM::RtcConfig::parseCommandArgs int  argc,
char **  argv
[protected]
 

Parse command line arguments.

bool RTM::RtcConfig::parseConfigFile  )  [protected]
 

Parse configuration file.

void RTM::RtcConfig::printUsage char *  arg  )  [protected]
 

Print usage.

bool RTM::RtcConfig::split const string &  input,
const string &  delimiter,
list< string > &  results
[protected]
 

Split string with delimter.


The documentation for this class was generated from the following file:
Generated on Wed Apr 6 14:22:23 2005 for OpenRTM by doxygen 1.3.6