Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
BridgeConf Class Reference

#include <BridgeConf.h>

Public Types

typedef std::map< std::string, DataTypeIdLabelToDataTypeIdMap
 

Public Member Functions

const char * getControllerName ()
 
const char * getOpenHRPNameServerIdentifier ()
 
const char * getVirtualRobotRtcTypeName ()
 
bool isReady ()
 
void setupModules ()
 
 ~BridgeConf ()
 

Static Public Member Functions

static BridgeConfinitialize (int argc, char *argv[])
 
static BridgeConfinstance ()
 

Public Attributes

PortInfoMap inPortInfos
 
LabelToDataTypeIdMap labelToDataTypeIdMap
 
ModuleInfoList moduleInfoList
 
PortInfoMap outPortInfos
 
PortConnectionList portConnections
 
TimeRateMap timeRateMap
 

Private Member Functions

void addModuleInfo (const std::string &value)
 
void addPortConnection (const std::string &value)
 
void addTimeRateInfo (const std::string &value)
 
 BridgeConf (int argc, char *argv[])
 
std::string expandEnvironmentVariables (std::string str)
 
std::vector< std::string > extractParameters (const std::string &str, const char delimiter=':')
 
void initLabelToDataTypeMap ()
 
void initOptionsDescription ()
 
void parseCommandLineOptions (int argc, char *argv[])
 
void parseOptions ()
 
void setPortInfos (const char *optionLabel, PortInfoMap &portInfos)
 
void setPreLoadModuleInfo ()
 

Private Attributes

boost::program_options::options_description commandLineOptions
 
std::string controllerName
 
bool isProcessingConfigFile
 
bool isReady_
 
std::string nameServerIdentifier
 
boost::program_options::options_description options
 
std::string virtualRobotRtcTypeName
 
boost::program_options::variables_map vmap
 

Detailed Description

Definition at line 87 of file BridgeConf.h.

Member Typedef Documentation

◆ LabelToDataTypeIdMap

typedef std::map<std::string, DataTypeId> BridgeConf::LabelToDataTypeIdMap

Definition at line 106 of file BridgeConf.h.

Constructor & Destructor Documentation

◆ BridgeConf()

BridgeConf::BridgeConf ( int  argc,
char *  argv[] 
)
private

Definition at line 52 of file BridgeConf.cpp.

◆ ~BridgeConf()

BridgeConf::~BridgeConf ( )

Definition at line 65 of file BridgeConf.cpp.

Member Function Documentation

◆ addModuleInfo()

void BridgeConf::addModuleInfo ( const std::string &  value)
private

Definition at line 320 of file BridgeConf.cpp.

◆ addPortConnection()

void BridgeConf::addPortConnection ( const std::string &  value)
private

Definition at line 283 of file BridgeConf.cpp.

◆ addTimeRateInfo()

void BridgeConf::addTimeRateInfo ( const std::string &  value)
private

Definition at line 341 of file BridgeConf.cpp.

◆ expandEnvironmentVariables()

std::string BridgeConf::expandEnvironmentVariables ( std::string  str)
private

Definition at line 405 of file BridgeConf.cpp.

◆ extractParameters()

std::vector< std::string > BridgeConf::extractParameters ( const std::string &  str,
const char  delimiter = ':' 
)
private

Definition at line 383 of file BridgeConf.cpp.

◆ getControllerName()

const char * BridgeConf::getControllerName ( )

Definition at line 372 of file BridgeConf.cpp.

◆ getOpenHRPNameServerIdentifier()

const char * BridgeConf::getOpenHRPNameServerIdentifier ( )

Definition at line 366 of file BridgeConf.cpp.

◆ getVirtualRobotRtcTypeName()

const char * BridgeConf::getVirtualRobotRtcTypeName ( )

Definition at line 378 of file BridgeConf.cpp.

◆ initialize()

BridgeConf * BridgeConf::initialize ( int  argc,
char *  argv[] 
)
static

Definition at line 39 of file BridgeConf.cpp.

◆ initLabelToDataTypeMap()

void BridgeConf::initLabelToDataTypeMap ( )
private

Definition at line 117 of file BridgeConf.cpp.

◆ initOptionsDescription()

void BridgeConf::initOptionsDescription ( )
private

Definition at line 71 of file BridgeConf.cpp.

◆ instance()

BridgeConf * BridgeConf::instance ( )
static

Definition at line 46 of file BridgeConf.cpp.

◆ isReady()

bool BridgeConf::isReady ( )
inline

Definition at line 98 of file BridgeConf.h.

◆ parseCommandLineOptions()

void BridgeConf::parseCommandLineOptions ( int  argc,
char *  argv[] 
)
private

Definition at line 143 of file BridgeConf.cpp.

◆ parseOptions()

void BridgeConf::parseOptions ( )
private

Definition at line 175 of file BridgeConf.cpp.

◆ setPortInfos()

void BridgeConf::setPortInfos ( const char *  optionLabel,
PortInfoMap portInfos 
)
private

Definition at line 224 of file BridgeConf.cpp.

◆ setPreLoadModuleInfo()

void BridgeConf::setPreLoadModuleInfo ( )
private

Definition at line 305 of file BridgeConf.cpp.

◆ setupModules()

void BridgeConf::setupModules ( )

Definition at line 351 of file BridgeConf.cpp.

Member Data Documentation

◆ commandLineOptions

boost::program_options::options_description BridgeConf::commandLineOptions
private

Definition at line 122 of file BridgeConf.h.

◆ controllerName

std::string BridgeConf::controllerName
private

Definition at line 128 of file BridgeConf.h.

◆ inPortInfos

PortInfoMap BridgeConf::inPortInfos

Definition at line 110 of file BridgeConf.h.

◆ isProcessingConfigFile

bool BridgeConf::isProcessingConfigFile
private

Definition at line 125 of file BridgeConf.h.

◆ isReady_

bool BridgeConf::isReady_
private

Definition at line 124 of file BridgeConf.h.

◆ labelToDataTypeIdMap

LabelToDataTypeIdMap BridgeConf::labelToDataTypeIdMap

Definition at line 107 of file BridgeConf.h.

◆ moduleInfoList

ModuleInfoList BridgeConf::moduleInfoList

Definition at line 112 of file BridgeConf.h.

◆ nameServerIdentifier

std::string BridgeConf::nameServerIdentifier
private

Definition at line 129 of file BridgeConf.h.

◆ options

boost::program_options::options_description BridgeConf::options
private

Definition at line 121 of file BridgeConf.h.

◆ outPortInfos

PortInfoMap BridgeConf::outPortInfos

Definition at line 109 of file BridgeConf.h.

◆ portConnections

PortConnectionList BridgeConf::portConnections

Definition at line 114 of file BridgeConf.h.

◆ timeRateMap

TimeRateMap BridgeConf::timeRateMap

Definition at line 116 of file BridgeConf.h.

◆ virtualRobotRtcTypeName

std::string BridgeConf::virtualRobotRtcTypeName
private

Definition at line 127 of file BridgeConf.h.

◆ vmap

boost::program_options::variables_map BridgeConf::vmap
private

Definition at line 120 of file BridgeConf.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:06