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.
addSynonyme(
"save-config.relative",
"save-configuration.relative");
52 oc.
addDescription(
"save-configuration.relative",
"Configuration",
"Enforce relative paths when saving the configuration");
55 oc.
addDescription(
"save-template",
"Configuration",
"Saves a configuration template (empty) into FILE");
58 oc.
addDescription(
"save-schema",
"Configuration",
"Saves the configuration schema into FILE");
61 oc.
addSynonyme(
"save-commented",
"save-template.commented");
62 oc.
addDescription(
"save-commented",
"Configuration",
"Adds comments to saved template, configuration, or schema");
71 oc.
addDescription(
"verbose",
"Report",
"Switches to verbose output");
74 oc.
addDescription(
"print-options",
"Report",
"Prints option values before processing");
77 oc.
addDescription(
"help",
"Report",
"Prints this screen or selected topics");
80 oc.
addDescription(
"version",
"Report",
"Prints the current version");
83 oc.
addDescription(
"xml-validation",
"Report",
"Set schema validation scheme of XML inputs (\"never\", \"local\", \"auto\" or \"always\")");
85 if (oc.
exists(
"net-file")) {
87 oc.
addDescription(
"xml-validation.net",
"Report",
"Set schema validation scheme of SUMO network inputs (\"never\", \"local\", \"auto\" or \"always\")");
90 if (oc.
exists(
"route-files")) {
92 oc.
addDescription(
"xml-validation.routes",
"Report",
"Set schema validation scheme of SUMO route inputs (\"never\", \"local\", \"auto\" or \"always\")");
96 oc.
addSynonyme(
"no-warnings",
"suppress-warnings",
true);
97 oc.
addDescription(
"no-warnings",
"Report",
"Disables output of warnings");
100 oc.
addDescription(
"aggregate-warnings",
"Report",
"Aggregate warnings of the same type whenever more than INT occur");
104 oc.
addDescription(
"log",
"Report",
"Writes all messages to FILE (implies verbose)");
107 oc.
addDescription(
"message-log",
"Report",
"Writes all non-error messages to FILE (implies verbose)");
110 oc.
addDescription(
"error-log",
"Report",
"Writes all warnings and errors to FILE");
113 oc.
addDescription(
"write-license",
"Output",
"Include license info into every output file");
116 oc.
addDescription(
"output-prefix",
"Output",
"Prefix which is applied to all output files. The special string 'TIME' is replaced by the current time.");
119 oc.
addDescription(
"precision",
"Output",
"Defines the number of digits after the comma for floating point output");
122 oc.
addDescription(
"precision.geo",
"Output",
"Defines the number of digits after the comma for lon,lat output");
125 oc.
addDescription(
"human-readable-time",
"Output",
"Write time values as hour:minute:second or day:hour:minute:second rather than seconds");
135 if (oc.
exists(
"weights.random-factor")) {
138 if (oc.
exists(
"persontrip.walk-opposite-factor")) {
141 if (oc.
exists(
"xml-validation.routes") && oc.
isDefault(
"xml-validation.routes") && !oc.
isDefault(
"xml-validation")) {
int gPrecision
the precision for floating point outputs
double gWeightsRandomFactor
double gWeightsWalkOppositeFactor
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)
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 setDefault(const std::string &name, const std::string &value)
Sets the given value for the named option as new 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.