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