opencog::Config Class Reference

#include <Config.h>

Inheritance diagram for opencog::Config:

Inheritance graph
[legend]
Collaboration diagram for opencog::Config:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~Config ()
 Config ()
virtual void reset ()
void load (const char *config_file, bool resetFirst=true)
const bool has (const std::string &parameter_name) const
void set (const std::string &parameter_name, const std::string &parameter_value)
const std::string & get (const std::string &parameter_name) const
const std::string & operator[] (const std::string &name) const
int get_int (const std::string &parameter_name) const
long get_long (const std::string &parameter_name) const
double get_double (const std::string &parameter_name) const
bool get_bool (const std::string &parameter_name) const
std::string to_string () const

Static Public Member Functions

static ConfigcreateInstance (void)

Protected Member Functions

const std::string * DEFAULT ()

Protected Attributes

std::string emptyString
std::map< std::string,
std::string > 
table


Detailed Description

Definition at line 39 of file Config.h.


Constructor & Destructor Documentation

Config::~Config (  ) 

Definition at line 60 of file Config.cc.

Config::Config (  ) 

Definition at line 64 of file Config.cc.

References reset().

Here is the caller graph for this function:


Member Function Documentation

const std::string* opencog::Config::DEFAULT (  )  [inline, protected]

Definition at line 44 of file Config.h.

Here is the caller graph for this function:

Config * Config::createInstance ( void   )  [static]

Definition at line 55 of file Config.cc.

References Config().

void Config::reset ( void   )  [virtual]

Reimplemented in AutomatedSystemTest::TestConfig, and Control::EmbodimentConfig.

Definition at line 69 of file Config.cc.

References DEFAULT(), and table.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

const bool opencog::Config::has ( const std::string &  parameter_name  )  const

void Config::set ( const std::string &  parameter_name,
const std::string &  parameter_value 
)

Definition at line 203 of file Config.cc.

References table.

Here is the caller graph for this function:

const std::string& opencog::Config::get ( const std::string &  parameter_name  )  const

Here is the caller graph for this function:

const std::string& opencog::Config::operator[] ( const std::string &  name  )  const

int opencog::Config::get_int ( const std::string &  parameter_name  )  const

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

std::string Config::to_string (  )  const

Definition at line 266 of file Config.cc.

References table.


Member Data Documentation

std::string opencog::Config::emptyString [protected]

Definition at line 67 of file Config.h.

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

Definition at line 68 of file Config.h.


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

Generated on Fri Dec 4 23:24:43 2009 for OpenCog Framework by  doxygen 1.5.6