64 for (std::map<std::string, std::string>::const_iterator i = mapArg.begin(); i != mapArg.end(); ++i) {
65 myMap[(*i).first] = (*i).second;
78 std::map<std::string, std::string>::const_iterator i =
myMap.find(key);
79 if (i !=
myMap.end()) {
88 std::map<std::string, std::string>::const_iterator i =
myMap.find(key);
89 if (i !=
myMap.end()) {
103 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 unsetParameter(const std::string &key)
Removes a parameter.
void writeParams(OutputDevice &out) const
bool knowsParameter(const std::string &key) const
Returns whether the parameter is known.
void updateParameter(const std::map< std::string, std::string > &mapArg)
Adds or updates all given parameters from the map.
parameter associated to a certain key
~Parameterised()
Destructor.
void setParameter(const std::string &key, const std::string &value)
Sets a parameter.
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.
double getDouble(const std::string &key, const double defaultValue) const
Returns the value for a given key converted to a double.
static double _2double(const E *const data)
converts a char-type array into the double value described by it
const std::string getParameter(const std::string &key, const std::string &defaultValue="") const
Returns the value for a given key.
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.