Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <Config.h>
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_worldmodel2, 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::worldmodel2_config | worldmodel2 |
world model 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 | |
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 |
|
section IDs
Definition at line 22 of file Config.h. Referenced by parseSection(), readConfig(), and Controller::setConfig(). |
|
constructor
|
|
destructor
|
|
returns bool value corresponding to a value of "t", "f", "true", "false", "y", "n", "yes", "no", or zero/nonzero number
Definition at line 424 of file Config.cc. Referenced by setValue(). |
|
returns true if pattern matches model - pattern may have up to 1 '*', case insensitive
Definition at line 399 of file Config.cc. Referenced by readConfig(). |
|
returns the section structure corresponding to the section name given
Definition at line 311 of file Config.cc. Referenced by readConfig(), and Controller::setConfig(). |
|
call this function when it's time to read the configuration file
Definition at line 333 of file Config.cc. Referenced by Config(). |
|
pass the section, item name string, item value string - sets the value and returns pointer to the item changed
Definition at line 12 of file Config.cc. Referenced by readConfig(), and Controller::setConfig(). |
|
placeholder
Referenced by Config(). |
|
|
|
|
|
|
wirless information
Referenced by Config(), and setValue(). |
|
world model information
Referenced by Config(), and setValue(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:05 2004 by Doxygen 1.3.4 |