 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef PlainXMLFormatter_h
18 #define PlainXMLFormatter_h
58 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
59 const std::map<SumoXMLAttr, std::string>& attrs);
83 void openTag(std::ostream& into,
const std::string& xmlElement);
102 bool closeTag(std::ostream& into,
const std::string& comment =
"");
114 void writePadding(std::ostream& into,
const std::string& val);
124 static void writeAttr(std::ostream& into,
const std::string& attr,
const T& val) {
125 into <<
" " << attr <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
137 into <<
" " <<
toString(attr) <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.