23 #ifndef Parameterised_h
24 #define Parameterised_h
57 Parameterised(
const std::map<std::string, std::string>& mapArg);
69 void addParameter(
const std::string& key,
const std::string& value);
75 void addParameter(
const std::map<std::string, std::string>& mapArg);
96 const std::string&
getParameter(
const std::string& key,
const std::string& defaultValue)
const;
107 const std::map<std::string, std::string>&
getMap()
const {
114 std::map<std::string, std::string>
myMap;
std::map< std::string, std::string > myMap
The key->value map.
const std::map< std::string, std::string > & getMap() const
Returns the inner key/value map.
const std::string & getParameter(const std::string &key, const std::string &defaultValue) const
Returns the value for a given key.
~Parameterised()
Destructor.
An upper class for objects with additional parameters.
void addParameter(const std::string &key, const std::string &value)
Adds a parameter.
Parameterised()
Constructor.
bool knowsParameter(const std::string &key) const
Returns whether the parameter is known.
void clearParameter()
Clears the parameter map.