33 #ifdef CHECK_MEMORY_LEAKS 35 #endif // CHECK_MEMORY_LEAKS 60 for (std::map<std::string, std::string>::const_iterator i = mapArg.begin(); i != mapArg.end(); ++i) {
61 myMap[(*i).first] = (*i).second;
68 for (std::map<std::string, std::string>::const_iterator i = p.
myMap.begin(); i != p.
myMap.end(); ++i) {
69 myMap[(*i).first] = (*i).second;
82 std::map<std::string, std::string>::const_iterator i =
myMap.find(key);
83 if (i !=
myMap.end()) {
std::map< std::string, std::string > myMap
The key->value map.
bool knowsParameter(const std::string &key) const
Returns whether the parameter is known.
~Parameterised()
Destructor.
An upper class for objects with additional parameters.
void addParameter(const std::string &key, const std::string &value)
Adds a parameter.
const std::string & getParameter(const std::string &key, const std::string &defaultValue) const
Returns the value for a given key.
Parameterised()
Constructor.
void clearParameter()
Clears the parameter map.