presage
0.9.2~beta
|
#include <configuration.h>
Classes | |
class | ConfigurationException |
Public Member Functions | |
Configuration () | |
~Configuration () | |
Variable * | find (const std::string &variable) const |
void | insert (const std::string &variable, const std::string &value) |
void | remove (const std::string &variable) |
Variable * | operator[] (const std::string &variable) const |
void | print () const |
std::map< std::string, Variable * >::const_iterator | begin () const |
std::map< std::string, Variable * >::const_iterator | end () const |
Private Attributes | |
std::map< std::string, Variable * > * | configuration |
Configuration allows to query and modify all presage runtime configuration variables.
Definition at line 36 of file configuration.h.
Configuration::Configuration | ( | ) |
Definition at line 29 of file configuration.cpp.
References configuration.
Configuration::~Configuration | ( | ) |
Definition at line 34 of file configuration.cpp.
References configuration.
std::map< std::string, Variable * >::const_iterator Configuration::begin | ( | ) | const |
Definition at line 109 of file configuration.cpp.
References configuration.
Referenced by Profile::read_from_configuration().
std::map< std::string, Variable * >::const_iterator Configuration::end | ( | ) | const |
Definition at line 114 of file configuration.cpp.
References configuration.
Referenced by Profile::read_from_configuration().
Variable * Configuration::find | ( | const std::string & | variable | ) | const |
Definition at line 46 of file configuration.cpp.
References configuration, and PRESAGE_CONFIG_VARIABLE_ERROR.
Referenced by PredictorRegistry::addPredictor(), operator[](), PredictorActivator::PredictorActivator(), PredictorRegistry::PredictorRegistry(), ProfileManager::refresh_config(), Selector::Selector(), and ProfileManager::~ProfileManager().
void Configuration::insert | ( | const std::string & | variable, |
const std::string & | value | ||
) |
Definition at line 66 of file configuration.cpp.
References configuration, and Variable::set_value().
Referenced by Profile::visit_node().
Variable * Configuration::operator[] | ( | const std::string & | variable | ) | const |
Definition at line 61 of file configuration.cpp.
References find().
void Configuration::print | ( | ) | const |
Definition at line 94 of file configuration.cpp.
References configuration, and endl().
void Configuration::remove | ( | const std::string & | variable | ) |
Definition at line 85 of file configuration.cpp.
References configuration.
|
private |
Definition at line 63 of file configuration.h.
Referenced by begin(), Configuration(), end(), find(), insert(), print(), remove(), and ~Configuration().