53 std::function<
void(std::ostream&)> metadataWriter) {
70 bool writeXMLHeader(std::ostream& into,
const std::string& rootElement,
71 const std::map<SumoXMLAttr, std::string>& attrs,
bool includeConfig);
82 void openTag(std::ostream& into,
const std::string& xmlElement);
98 bool closeTag(std::ostream& into,
const std::string& comment =
"");
109 void writePadding(std::ostream& into,
const std::string& val);
119 static void writeAttr(std::ostream& into,
const std::string& attr,
const T& val,
const bool escape) {
121 into <<
" " << attr <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
134 into <<
" " <<
toString(attr) <<
"=\"" <<
toString(val, into.precision()) <<
"\"";
138 static void writeAttr(std::ostream& into,
const std::string& attr,
const std::string& val,
const bool escape);
139 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)