 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef PlainXMLFormatter_h
19 #define PlainXMLFormatter_h
59 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
60 const std::map<SumoXMLAttr, std::string>& attrs);
84 void openTag(std::ostream& into,
const std::string& xmlElement);
103 bool closeTag(std::ostream& into,
const std::string& comment =
"");
115 void writePadding(std::ostream& into,
const std::string& val);
125 static void writeAttr(std::ostream& into,
const std::string& attr,
const T& val) {
126 into <<
" " << attr <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
138 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.