42 oc.
addSynonyme(
"configuration-file",
"configuration");
43 oc.
addDescription(
"configuration-file",
"Configuration",
"Loads the named config on startup");
47 oc.
addSynonyme(
"save-config",
"save-configuration");
48 oc.
addDescription(
"save-configuration",
"Configuration",
"Saves current configuration into FILE");
51 oc.
addDescription(
"save-template",
"Configuration",
"Saves a configuration template (empty) into FILE");
54 oc.
addDescription(
"save-schema",
"Configuration",
"Saves the configuration schema into FILE");
57 oc.
addSynonyme(
"save-commented",
"save-template.commented");
58 oc.
addDescription(
"save-commented",
"Configuration",
"Adds comments to saved template, configuration, or schema");
67 oc.
addDescription(
"verbose",
"Report",
"Switches to verbose output");
70 oc.
addDescription(
"print-options",
"Report",
"Prints option values before processing");
73 oc.
addDescription(
"help",
"Report",
"Prints this screen or selected topics");
76 oc.
addDescription(
"version",
"Report",
"Prints the current version");
79 oc.
addDescription(
"xml-validation",
"Report",
"Set schema validation scheme of XML inputs (\"never\", \"auto\" or \"always\")");
81 if (oc.
exists(
"net-file")) {
83 oc.
addDescription(
"xml-validation.net",
"Report",
"Set schema validation scheme of SUMO network inputs (\"never\", \"auto\" or \"always\")");
86 if (oc.
exists(
"route-files")) {
88 oc.
addDescription(
"xml-validation.routes",
"Report",
"Set schema validation scheme of SUMO route inputs (\"never\", \"auto\" or \"always\")");
92 oc.
addSynonyme(
"no-warnings",
"suppress-warnings",
true);
93 oc.
addDescription(
"no-warnings",
"Report",
"Disables output of warnings");
96 oc.
addDescription(
"aggregate-warnings",
"Report",
"Aggregate warnings of the same type whenever more than INT occur");
100 oc.
addDescription(
"log",
"Report",
"Writes all messages to FILE (implies verbose)");
103 oc.
addDescription(
"message-log",
"Report",
"Writes all non-error messages to FILE (implies verbose)");
106 oc.
addDescription(
"error-log",
"Report",
"Writes all warnings and errors to FILE");
109 oc.
addDescription(
"write-license",
"Output",
"Include license info into every output file");
112 oc.
addDescription(
"output-prefix",
"Output",
"Prefix which is applied to all output files. The special string 'TIME' is replaced by the current time.");
115 oc.
addDescription(
"precision",
"Output",
"Defines the number of digits after the comma for floating point output");
118 oc.
addDescription(
"precision.geo",
"Output",
"Defines the number of digits after the comma for lon,lat output");
121 oc.
addDescription(
"human-readable-time",
"Output",
"Write time values as hour:minute:second or day:hour:minute:second rather than seconds");
131 if (oc.
exists(
"weights.random-factor")) {
134 if (oc.
exists(
"xml-validation.routes") && oc.
isDefault(
"xml-validation.routes") && !oc.
isDefault(
"xml-validation")) {
135 oc.
set(
"xml-validation.routes", oc.
getString(
"xml-validation"));
int gPrecision
the precision for floating point outputs
double gWeightsRandomFactor
static MsgHandler * getWarningInstance()
Returns the instance to add warnings to.
virtual void clear(bool resetInformed=true)
Clears information whether an error occurred previously and print aggregated message summary.
static void cleanupOnEnd()
Removes pending handler.
A storage for options typed value containers)
void addDescription(const std::string &name, const std::string &subtopic, const std::string &description)
Adds a description for an option.
void doRegister(const std::string &name, Option *v)
Adds an option under the given name.
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
int getInt(const std::string &name) const
Returns the int-value of the named option (only for Option_Integer)
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
void addSynonyme(const std::string &name1, const std::string &name2, bool isDeprecated=false)
Adds a synonyme for an options name (any order)
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
bool exists(const std::string &name) const
Returns the information whether the named option is known.
void clear()
Removes all information from the container.
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
void addXMLDefault(const std::string &name, const std::string &xmlRoot="")
Adds an XML root element to handle by default. The special root "" denotes the default handler.
static OptionsCont & getOptions()
Retrieves the options.
static void closeAll(bool keepErrorRetrievers=false)
static void close()
Closes all of an applications subsystems.
static void addConfigurationOptions(OptionsCont &oc)
Adds configuration options to the given container.
static void addReportOptions(OptionsCont &oc)
Adds reporting options to the given container.
static bool checkOptions()
checks shared options and sets StdDefs
static void close()
Closes the xml-subsystem.