58 for (std::map<std::string, std::string>::const_iterator i = mapArg.begin(); i != mapArg.end(); ++i) {
59 myMap[(*i).first] = (*i).second;
66 for (std::map<std::string, std::string>::const_iterator i = p.
myMap.begin(); i != p.
myMap.end(); ++i) {
67 myMap[(*i).first] = (*i).second;
80 std::map<std::string, std::string>::const_iterator i =
myMap.find(key);
81 if (i !=
myMap.end()) {
90 std::map<std::string, std::string>::const_iterator i =
myMap.find(key);
91 if (i !=
myMap.end()) {
105 for (std::map<std::string, std::string>::const_iterator j =
myMap.begin(); j !=
myMap.end(); ++j) {
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
std::map< std::string, std::string > myMap
The key->value map.
void writeParams(OutputDevice &out) const
bool knowsParameter(const std::string &key) const
Returns whether the parameter is known.
parameter associated to a certain key
~Parameterised()
Destructor.
An upper class for objects with additional parameters.
double getDouble(const std::string &key, const double defaultValue) const
Returns the value for a given key converted to a double.
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.
static double _2double(const E *const data)
converts a char-type array into the double value described by it
Parameterised()
Constructor.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
void clearParameter()
Clears the parameter map.