56 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
57 const std::map<SumoXMLAttr, std::string>& attrs,
58 bool includeConfig =
true);
82 void openTag(std::ostream& into,
const std::string& xmlElement);
101 bool closeTag(std::ostream& into,
const std::string& comment =
"");
113 void writePadding(std::ostream& into,
const std::string& val);
123 static void writeAttr(std::ostream& into,
const std::string& attr,
const T& val) {
124 into <<
" " << attr <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
136 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)