34 #ifdef CHECK_MEMORY_LEAKS 36 #endif // CHECK_MEMORY_LEAKS 61 for (std::map<std::string, std::string>::const_iterator i = mapArg.begin(); i != mapArg.end(); ++i) {
62 myMap[(*i).first] = (*i).second;
69 for (std::map<std::string, std::string>::const_iterator i = p.
myMap.begin(); i != p.
myMap.end(); ++i) {
70 myMap[(*i).first] = (*i).second;
83 std::map<std::string, std::string>::const_iterator i =
myMap.find(key);
84 if (i !=
myMap.end()) {
98 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.
const std::string & getParameter(const std::string &key, const std::string &defaultValue) const
Returns the value for a given key.
parameter associated to a certain 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 closeTag()
Closes the most recently opened tag.
bool knowsParameter(const std::string &key) const
Returns whether the parameter is known.
void writeParams(OutputDevice &out) const
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
void clearParameter()
Clears the parameter map.