23 #ifndef Parameterised_h 24 #define Parameterised_h 61 Parameterised(
const std::map<std::string, std::string>& mapArg);
73 void addParameter(
const std::string& key,
const std::string& value);
79 void addParameter(
const std::map<std::string, std::string>& mapArg);
100 const std::string&
getParameter(
const std::string& key,
const std::string& defaultValue)
const;
111 const std::map<std::string, std::string>&
getMap()
const {
120 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.
Static storage of an output device and its base (abstract) implementation.
bool knowsParameter(const std::string &key) const
Returns whether the parameter is known.
void writeParams(OutputDevice &out) const
void clearParameter()
Clears the parameter map.