#include <Config.h>


Public Member Functions | |
| ~Config () | |
| Config () | |
| virtual void | reset () |
| void | load (const char *config_file, bool resetFirst=true) |
| const bool | has (const std::string ¶meter_name) const |
| void | set (const std::string ¶meter_name, const std::string ¶meter_value) |
| const std::string & | get (const std::string ¶meter_name) const |
| const std::string & | operator[] (const std::string &name) const |
| int | get_int (const std::string ¶meter_name) const |
| long | get_long (const std::string ¶meter_name) const |
| double | get_double (const std::string ¶meter_name) const |
| bool | get_bool (const std::string ¶meter_name) const |
| std::string | to_string () const |
Static Public Member Functions | |
| static Config * | createInstance (void) |
Protected Member Functions | |
| const std::string * | DEFAULT () |
Protected Attributes | |
| std::string | emptyString |
| std::map< std::string, std::string > | table |
Definition at line 39 of file Config.h.
| Config::Config | ( | ) |
| const std::string* opencog::Config::DEFAULT | ( | ) | [inline, protected] |
| Config * Config::createInstance | ( | void | ) | [static] |
| void Config::reset | ( | void | ) | [virtual] |
Reimplemented in AutomatedSystemTest::TestConfig, and Control::EmbodimentConfig.
Definition at line 69 of file Config.cc.
References DEFAULT(), and table.

| void Config::load | ( | const char * | config_file, | |
| bool | resetFirst = true | |||
| ) |
Definition at line 105 of file Config.cc.
References blank_chars, DEFAULT_CONFIG_FILENAME, DEFAULT_CONFIG_PATHS, opencog::exists(), reset(), strip(), table, and TRACE_INFO.

| const bool opencog::Config::has | ( | const std::string & | parameter_name | ) | const |
| void Config::set | ( | const std::string & | parameter_name, | |
| const std::string & | parameter_value | |||
| ) |
| const std::string& opencog::Config::get | ( | const std::string & | parameter_name | ) | const |

| const std::string& opencog::Config::operator[] | ( | const std::string & | name | ) | const |
| int opencog::Config::get_int | ( | const std::string & | parameter_name | ) | const |

| long opencog::Config::get_long | ( | const std::string & | parameter_name | ) | const |

| double opencog::Config::get_double | ( | const std::string & | parameter_name | ) | const |

| bool opencog::Config::get_bool | ( | const std::string & | parameter_name | ) | const |

std::string opencog::Config::emptyString [protected] |
std::map<std::string, std::string> opencog::Config::table [protected] |
1.5.6