42 oc.
addSynonyme(
"configuration-file",
"configuration");
43 oc.
addDescription(
"configuration-file",
"Configuration",
TL(
"Loads the named config on startup"));
47 oc.
addSynonyme(
"save-config",
"save-configuration");
48 oc.
addDescription(
"save-configuration",
"Configuration",
TL(
"Saves current configuration into FILE"));
51 oc.
addSynonyme(
"save-config.relative",
"save-configuration.relative");
52 oc.
addDescription(
"save-configuration.relative",
"Configuration",
TL(
"Enforce relative paths when saving the configuration"));
55 oc.
addDescription(
"save-template",
"Configuration",
TL(
"Saves a configuration template (empty) into FILE"));
58 oc.
addDescription(
"save-schema",
"Configuration",
TL(
"Saves the configuration schema into FILE"));
61 oc.
addSynonyme(
"save-commented",
"save-template.commented");
62 oc.
addDescription(
"save-commented",
"Configuration",
TL(
"Adds comments to saved template, configuration, or schema"));
74 oc.
addDescription(
"print-options",
"Report",
TL(
"Prints option values before processing"));
77 oc.
addDescription(
"help",
"Report",
TL(
"Prints this screen or selected topics"));
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",
TL(
"Disables output of warnings"));
100 oc.
addDescription(
"aggregate-warnings",
"Report",
TL(
"Aggregate warnings of the same type whenever more than INT occur"));
104 oc.
addDescription(
"log",
"Report",
TL(
"Writes all messages to FILE (implies verbose)"));
107 oc.
addDescription(
"message-log",
"Report",
TL(
"Writes all non-error messages to FILE (implies verbose)"));
110 oc.
addDescription(
"error-log",
"Report",
TL(
"Writes all warnings and errors to FILE"));
113 oc.
addDescription(
"log.timestamps",
"Report",
TL(
"Writes timestamps in front of all messages"));
116 oc.
addDescription(
"log.processid",
"Report",
TL(
"Writes process ID in front of all messages"));
122 oc.
addDescription(
"write-license",
"Output",
TL(
"Include license info into every output file"));
125 oc.
addDescription(
"output-prefix",
"Output",
TL(
"Prefix which is applied to all output files. The special string 'TIME' is replaced by the current time."));
128 oc.
addDescription(
"precision",
"Output",
TL(
"Defines the number of digits after the comma for floating point output"));
131 oc.
addDescription(
"precision.geo",
"Output",
TL(
"Defines the number of digits after the comma for lon,lat output"));
134 oc.
addDescription(
"human-readable-time",
"Output",
TL(
"Write time values as hour:minute:second or day:hour:minute:second rather than seconds"));
143 if (oc.
exists(
"weights.random-factor")) {
146 if (oc.
exists(
"persontrip.walk-opposite-factor")) {
149 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
std::string gLanguage
the language for GUI elements and messages
bool gIgnoreUnknownVClass
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.
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.
void doRegister(const std::string &name, Option *o)
Adds an option under the given name.
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 bool checkOptions(OptionsCont &oc)
checks shared options and sets StdDefs
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 void close()
Closes the xml-subsystem.