Config Class Reference#include <Config.h>
List of all members.
Detailed Description
provides global access to system configuration information
Definition at line 11 of file Config.h.
|
Public Types |
enum | section_t {
sec_wireless = 0,
sec_vision,
sec_main,
sec_behaviors,
sec_controller,
sec_motion,
sec_sound,
sec_invalid
} |
| section IDs More...
|
Public Member Functions |
| Config (const char *filename) |
| constructor
|
| ~Config () |
| destructor
|
void | readConfig (const char *filename) |
| call this function when it's time to read the configuration file
|
section_t | parseSection (const char *key) |
| returns the section structure corresponding to the section name given
|
void * | setValue (section_t section, const char *key, const char *value, bool updated=false) |
| pass the section, item name string, item value string - sets the value and returns pointer to the item changed
|
Public Attributes |
Config::wireless_config | wireless |
| wirless information
|
Config::vision_config | vision |
| vision information
|
Config::main_config | main |
| core functionality information
|
Config::behaviors_config | behaviors |
| placeholder
|
Config::controller_config | controller |
| controller information
|
Config::motion_config | motion |
| motion information
|
Config::sound_config | sound |
| sound information
|
Protected Member Functions |
bool | matchNoCase (const std::string &model, const std::string &pattern) |
| returns true if pattern matches model - pattern may have up to 1 '*', case insensitive
|
Static Protected Member Functions |
static bool | extractBool (const char *value) |
| returns bool value corresponding to a value of "t", "f", "true", "false", "y", "n", "yes", "no", or zero/nonzero number
|
Classes |
struct | behaviors_config |
| placeholder More...
|
struct | controller_config |
| controller information More...
|
struct | main_config |
| core functionality information More...
|
struct | motion_config |
| motion information More...
|
struct | sound_config |
| sound information More...
|
struct | vision_config |
| vision information More...
|
struct | wireless_config |
| wirless information More...
|
Member Enumeration Documentation
|
section IDs
- Enumeration values:
-
sec_wireless |
denotes wireless section of config file |
sec_vision |
denotes vision section of config file |
sec_main |
denotes main section of config file, for misc. settings |
sec_behaviors |
denotes behaviors section of config file |
sec_controller |
denotes controller section of config file |
sec_motion |
denotes motion section of config file |
sec_sound |
denotes sound section of config file |
sec_invalid |
denotes an invalid section of config file |
Definition at line 22 of file Config.h. |
Constructor & Destructor Documentation
Config::Config |
( |
const char * |
filename |
) |
[inline] |
|
|
constructor
Definition at line 14 of file Config.h. |
|
destructor
Definition at line 19 of file Config.h. |
Member Function Documentation
bool Config::extractBool |
( |
const char * |
value |
) |
[static, protected] |
|
|
returns bool value corresponding to a value of "t", "f", "true", "false", "y", "n", "yes", "no", or zero/nonzero number
Definition at line 508 of file Config.cc.
Referenced by setValue(). |
bool Config::matchNoCase |
( |
const std::string & |
model, |
|
|
const std::string & |
pattern |
|
) |
[protected] |
|
|
returns true if pattern matches model - pattern may have up to 1 '*', case insensitive
Definition at line 483 of file Config.cc.
Referenced by readConfig(). |
void Config::readConfig |
( |
const char * |
filename |
) |
|
|
|
call this function when it's time to read the configuration file
Definition at line 400 of file Config.cc.
Referenced by Config(). |
void * Config::setValue |
( |
section_t |
section, |
|
|
const char * |
key, |
|
|
const char * |
value, |
|
|
bool |
updated = false |
|
) |
|
|
Member Data Documentation
|
controller information
Referenced by Config(), ControlBase::doCancel(), ControlBase::doNextItem(), ControlBase::doPrevItem(), ControlBase::doReadStdIn(), WaypointWalkControl::WaypointEditControl::doSelect(), WaypointWalkControl::doSelect(), WalkCalibration::doSelect(), SensorObserverControl::doSelect(), EventLogger::doSelect(), ControlBase::doSelect(), Controller::DoStart(), Controller::DoStop(), WalkCalibration::err(), CameraBehavior::openNextFile(), WalkCalibration::processEvent(), CameraBehavior::processEvent(), ControlBase::setHilights(), setValue(), and WalkCalibration::takeInput(). |
|
core functionality information
Referenced by HelpControl::activate(), ControlBase::clearMenu(), Config(), ControlBase::deactivate(), ControlBase::doSelect(), WMMonitorBehavior::DoStart(), WalkControllerBehavior::DoStart(), ViewWMVarsBehavior::DoStart(), MMCombo::DoStart(), HeadPointControllerBehavior::DoStart(), EStopControllerBehavior::DoStart(), Aibo3DControllerBehavior::DoStart(), WorldStateSerializerBehavior::getClassDescription(), WMMonitorBehavior::getClassDescription(), WalkControllerBehavior::getClassDescription(), ViewWMVarsBehavior::getClassDescription(), HeadPointControllerBehavior::getClassDescription(), EStopControllerBehavior::getClassDescription(), Aibo3DControllerBehavior::getClassDescription(), WMMonitorBehavior::getPort(), Aibo3DControllerBehavior::getPort(), ControlBase::refresh(), HelpControl::report(), setValue(), ControlBase::takeInput(), and WorldStateSerializerBehavior::WorldStateSerializerBehavior(). |
|
motion information
Referenced by Config(), OldHeadPointerMC::defaultMaxSpeed(), HeadPointerMC::defaultMaxSpeed(), WallTestBehavior::DoStart(), MMCombo::DoStart(), WalkMC::init(), Kinematics::init(), WalkMC::LoadFile(), PostureEngine::LoadFile(), MotionSequenceEngine::LoadFile(), PostureEditor::PostureEditor(), AutoGetupBehavior::processEvent(), WorldState::read(), MMCombo::ReadySendJoints(), WaypointWalkControl::refresh(), PostureEditor::refresh(), WalkMC::SaveFile(), PostureEngine::SaveFile(), MotionSequenceEngine::SaveFile(), EmergencyStopMC::setStopped(), setValue(), SaveWalkControl::takeInput(), SavePostureControl::takeInput(), WalkMC::updateOutputs(), and WaypointWalkControl::WaypointWalkControl(). |
|
sound information
Referenced by SpeakerServer::AddPacket(), Config(), SoundManager::CopyTo(), SoundPlay::DoDestroy(), SoundPlay::DoInit(), SpeakerServer::DoStart(), MicrophoneServer::DoStart(), SoundManager::endPlay(), SoundManager::GetRemainTime(), SpeakerServer::GotSocketData(), SoundManager::LoadBuffer(), SoundManager::LoadFile(), SoundManager::lookupPath(), SoundPlay::NewSoundVectorData(), MicrophoneServer::processEvent(), SpeakerServer::QueueFrame(), SpeakerServer::ResampleForSpeaker(), SoundPlay::SetPowerAndVolume(), setValue(), and SoundManager::StopPlay(). |
|
vision information
Referenced by RawCameraGenerator::calcImage(), JPEGGenerator::calcImage(), Config(), SegCamBehavior::DoStart(), RawCamBehavior::DoStart(), SegCamBehavior::getClassDescription(), RawCamBehavior::getClassDescription(), RawCamBehavior::openPacket(), SegCamBehavior::processEvent(), RawCamBehavior::processEvent(), CameraBehavior::processEvent(), BallDetectionGenerator::processEvent(), setValue(), BallDetectionGenerator::testSendEvent(), RawCamBehavior::writeColor(), SegCamBehavior::writeRLE(), SegCamBehavior::writeSeg(), and RawCamBehavior::writeSingleChannel(). |
The documentation for this class was generated from the following files:
|