38 const std::map<SumoXMLAttr, std::string>& attrs,
39 bool writeMetadata,
bool includeConfig) {
44 for (std::map<SumoXMLAttr, std::string>::const_iterator it = attrs.begin(); it != attrs.end(); ++it) {
51 into <<
" </metadata>\n";
81 into <<
"/>" << comment <<
"\n";
85 into << indent <<
"</" <<
myXMLStack.back() <<
">" << comment <<
"\n";
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
A storage for options typed value containers)
void writeConfiguration(std::ostream &os, const bool filled, const bool complete, const bool addComments, const std::string &relativeTo="", const bool forceRelative=false, const bool inComment=false, const std::string &indent="") const
Writes the configuration.
void writeXMLHeader(std::ostream &os, const bool includeConfig=true) const
Writes a standard XML header, including the configuration.
const std::string & getFullName() const
get options full name
static OptionsCont & getOptions()
Retrieves the options.
static std::string isoTimeString(const std::chrono::time_point< std::chrono::system_clock > *const timeRef=nullptr)
Returns an ISO8601 formatted time string with microsecond precision.