36 for (std::map<std::string, Variable*>::iterator it =
configuration->begin();
48 std::map<std::string, Variable*>::const_iterator it =
configuration->find (variable);
51 std::string message =
"[Configuration] Cannot find variable " + variable;
63 return find(variable);
67 const std::string& value)
69 std::map<std::string, Variable*>::const_iterator it =
configuration->find (variable);
71 it->second->set_value (value);
77 configuration->insert (std::pair<std::string, Variable*> (variable, var));
87 std::map<std::string, Variable*>::iterator it =
configuration->find (variable);
97 for (std::map<std::string, Variable*>::const_iterator map_it =
configuration->begin ();
102 std::cout << map_it->first;
105 std::cout <<
" = " << map_it->second->get_value () <<
std::endl;
void insert(const std::string &variable, const std::string &value)
Variable * operator[](const std::string &variable) const
std::map< std::string, Variable * >::const_iterator end() const
std::map< std::string, Variable * > * configuration
Variable * find(const std::string &variable) const
void set_value(std::string value)
void remove(const std::string &variable)
std::map< std::string, Variable * >::const_iterator begin() const
const Logger< _charT, _Traits > & endl(const Logger< _charT, _Traits > &lgr)