21 #ifndef PlainXMLFormatter_h 22 #define PlainXMLFormatter_h 66 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
67 const std::map<SumoXMLAttr, std::string>& attrs);
91 void openTag(std::ostream& into,
const std::string& xmlElement);
128 static void writeAttr(std::ostream& into,
const std::string& attr,
const T& val) {
129 into <<
" " << attr <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
141 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)