21 #ifndef PlainXMLFormatter_h
22 #define PlainXMLFormatter_h
68 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
69 const std::string& attrs =
"",
70 const std::string& comment =
"");
94 void openTag(std::ostream& into,
const std::string& xmlElement);
131 static void writeAttr(std::ostream& into,
const std::string& attr,
const T& val) {
132 into <<
" " << attr <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
144 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=OUTPUT_ACCURACY)