56 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
57 const std::map<SumoXMLAttr, std::string>& attrs,
bool writeMetadata,
69 void openTag(std::ostream& into,
const std::string& xmlElement);
85 bool closeTag(std::ostream& into,
const std::string& comment =
"");
96 void writePadding(std::ostream& into,
const std::string& val);
106 static void writeAttr(std::ostream& into,
const std::string& attr,
const T& val,
const bool escape) {
108 into <<
" " << attr <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
121 into <<
" " <<
toString(attr) <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
125 static void writeAttr(std::ostream& into,
const std::string& attr,
const std::string& val,
const bool escape);
126 static void writeAttr(std::ostream& into,
const SumoXMLAttr attr,
const std::string& val,
const bool escape);
std::string time2string(SUMOTime t, bool humanReadable)
convert SUMOTime to string (independently of global format setting)
SumoXMLTag
Numbers representing SUMO-XML - element names.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
#define UNUSED_PARAMETER(x)