22 #ifndef Parameterised_h
23 #define Parameterised_h
56 Parameterised(
const std::map<std::string, std::string>& mapArg);
68 void addParameter(
const std::string& key,
const std::string& value);
74 void addParameter(
const std::map<std::string, std::string>& mapArg);
95 const std::string&
getParameter(
const std::string& key,
const std::string& defaultValue)
const;
106 const std::map<std::string, std::string>&
getMap()
const {
113 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.