45 const std::map<SumoXMLAttr, std::string>& attrs,
52 for (std::map<SumoXMLAttr, std::string>::const_iterator it = attrs.begin(); it != attrs.end(); ++it) {
53 writeAttr(into, it->first, it->second,
false);
87 into <<
"/>" << comment <<
"\n";
91 into << indent <<
"</" <<
myXMLStack.back() <<
">" << comment <<
"\n";
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
static std::string escapeXML(const std::string &orig, const bool maskDoubleHyphen=false)
Replaces the standard escapes by their XML entities.