56 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
57 const std::map<SumoXMLAttr, std::string>& attrs);
81 void openTag(std::ostream& into,
const std::string& xmlElement);
100 bool closeTag(std::ostream& into,
const std::string& comment =
"");
112 void writePadding(std::ostream& into,
const std::string& val);
122 static void writeAttr(std::ostream& into,
const std::string& attr,
const T& val) {
123 into <<
" " << attr <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
135 into <<
" " <<
toString(attr) <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)