本文整理汇总了C++中OptionsCont::addOptionSubTopic方法的典型用法代码示例。如果您正苦于以下问题:C++ OptionsCont::addOptionSubTopic方法的具体用法?C++ OptionsCont::addOptionSubTopic怎么用?C++ OptionsCont::addOptionSubTopic使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OptionsCont
的用法示例。
在下文中一共展示了OptionsCont::addOptionSubTopic方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
GNELoadThread::fillOptions(OptionsCont& oc) {
oc.clear();
oc.addCallExample("", "start plain GUI with empty net");
oc.addCallExample("-c <CONFIGURATION>", "edit net with options read from file");
SystemFrame::addConfigurationOptions(oc); // this subtopic is filled here, too
oc.addOptionSubTopic("Input");
oc.addOptionSubTopic("Output");
GeoConvHelper::addProjectionOptions(oc);
oc.addOptionSubTopic("TLS Building");
oc.addOptionSubTopic("Ramp Guessing");
oc.addOptionSubTopic("Edge Removal");
oc.addOptionSubTopic("Unregulated Nodes");
oc.addOptionSubTopic("Processing");
oc.addOptionSubTopic("Building Defaults");
oc.addOptionSubTopic("Visualisation");
oc.doRegister("new", new Option_Bool(false)); // !!!
oc.addDescription("new", "Input", "Start with a new network");
oc.doRegister("sumo-additionals-file", new Option_String());
oc.addDescription("sumo-additionals-file", "Input", "file in which additionals are loaded");
oc.doRegister("additionals-output", new Option_String());
oc.addDescription("additionals-output", "Input", "file in which additionals must be saved");
oc.doRegister("disable-laneIcons", new Option_Bool(false));
oc.addDescription("disable-laneIcons", "Visualisation", "Disable icons of special lanes");
oc.doRegister("disable-textures", 'T', new Option_Bool(false)); // !!!
oc.addDescription("disable-textures", "Visualisation", "");
oc.doRegister("gui-settings-file", new Option_FileName());
oc.addDescription("gui-settings-file", "Visualisation", "Load visualisation settings from FILE");
oc.doRegister("registry-viewport", new Option_Bool(false));
oc.addDescription("registry-viewport", "Visualisation", "Load current viewport from registry");
oc.doRegister("window-size", new Option_String());
oc.addDescription("window-size", "Visualisation", "Create initial window with the given x,y size");
oc.doRegister("window-pos", new Option_String());
oc.addDescription("window-pos", "Visualisation", "Create initial window at the given x,y position");
oc.doRegister("gui-testing", new Option_Bool(false));
oc.addDescription("gui-testing", "Visualisation", "Enable ovelay for screen recognition");
SystemFrame::addReportOptions(oc); // this subtopic is filled here, too
NIFrame::fillOptions();
NBFrame::fillOptions(false);
NWFrame::fillOptions(false);
RandHelper::insertRandOptions();
}
示例2: zone
void
GeoConvHelper::addProjectionOptions(OptionsCont& oc) {
oc.addOptionSubTopic("Projection");
oc.doRegister("simple-projection", new Option_Bool(false));
oc.addSynonyme("simple-projection", "proj.simple", true);
oc.addDescription("simple-projection", "Projection", "Uses a simple method for projection");
oc.doRegister("proj.scale", new Option_Float(1.0));
oc.addDescription("proj.scale", "Projection", "Scaling factor for input coordinates");
oc.doRegister("proj.rotate", new Option_Float(0.0));
oc.addDescription("proj.rotate", "Projection", "Rotation (clockwise degrees) for input coordinates");
#ifdef PROJ_API_FILE
oc.doRegister("proj.utm", new Option_Bool(false));
oc.addDescription("proj.utm", "Projection", "Determine the UTM zone (for a universal transversal mercator projection based on the WGS84 ellipsoid)");
oc.doRegister("proj.dhdn", new Option_Bool(false));
oc.addDescription("proj.dhdn", "Projection", "Determine the DHDN zone (for a transversal mercator projection based on the bessel ellipsoid, \"Gauss-Krueger\")");
oc.doRegister("proj", new Option_String("!"));
oc.addDescription("proj", "Projection", "Uses STR as proj.4 definition for projection");
oc.doRegister("proj.inverse", new Option_Bool(false));
oc.addDescription("proj.inverse", "Projection", "Inverses projection");
oc.doRegister("proj.dhdnutm", new Option_Bool(false));
oc.addDescription("proj.dhdnutm", "Projection", "Convert from Gauss-Krueger to UTM");
#endif // PROJ_API_FILE
}
示例3: zone
void
GeoConvHelper::addProjectionOptions(OptionsCont& oc) {
oc.addOptionSubTopic("Projection");
oc.doRegister("simple-projection", new Option_Bool(false));
oc.addSynonyme("simple-projection", "proj.simple", true);
oc.addDescription("simple-projection", "Projection", "Uses a simple method for projection");
oc.doRegister("proj.scale", new Option_Integer(0));
oc.addSynonyme("proj.scale", "proj.shift", true);
oc.addDescription("proj.scale", "Projection", "Number of places to shift decimal point to right in geo-coordinates");
#ifdef HAVE_PROJ
oc.doRegister("proj.utm", new Option_Bool(false));
oc.addDescription("proj.utm", "Projection", "Determine the UTM zone (for a universal transversal mercator projection based on the WGS84 ellipsoid)");
oc.doRegister("proj.dhdn", new Option_Bool(false));
oc.addDescription("proj.dhdn", "Projection", "Determine the DHDN zone (for a transversal mercator projection based on the bessel ellipsoid, \"Gauss-Krueger\")");
oc.doRegister("proj", new Option_String("!"));
oc.addDescription("proj", "Projection", "Uses STR as proj.4 definition for projection");
oc.doRegister("proj.inverse", new Option_Bool(false));
oc.addDescription("proj.inverse", "Projection", "Inverses projection");
oc.doRegister("proj.dhdnutm", new Option_Bool(false));
oc.addDescription("proj.dhdnutm", "Projection", "Convert from Gauss-Krueger to UTM");
#endif // HAVE_PROJ
}
示例4: FILE
void
SystemFrame::addReportOptions(OptionsCont& oc) {
oc.addOptionSubTopic("Report");
oc.doRegister("verbose", 'v', new Option_Bool(false));
oc.addDescription("verbose", "Report", "Switches to verbose output");
oc.doRegister("print-options", 'p', new Option_Bool(false));
oc.addDescription("print-options", "Report", "Prints option values before processing");
oc.doRegister("help", '?', new Option_Bool(false));
oc.addDescription("help", "Report", "Prints this screen");
oc.doRegister("version", 'V', new Option_Bool(false));
oc.addDescription("version", "Report", "Prints the current version");
oc.doRegister("xml-validation", 'X', new Option_Bool(false));
oc.addDescription("xml-validation", "Report", "Enable schema validation of XML inputs");
oc.doRegister("no-warnings", 'W', new Option_Bool(false));
oc.addSynonyme("no-warnings", "suppress-warnings", true);
oc.addDescription("no-warnings", "Report", "Disables output of warnings");
oc.doRegister("log", 'l', new Option_FileName());
oc.addSynonyme("log", "log-file");
oc.addDescription("log", "Report", "Writes all messages to FILE (implies verbose)");
oc.doRegister("message-log", new Option_FileName());
oc.addDescription("message-log", "Report", "Writes all non-error messages to FILE (implies verbose)");
oc.doRegister("error-log", new Option_FileName());
oc.addDescription("error-log", "Report", "Writes all warnings and errors to FILE");
}
示例5: insertDefaultAssignmentOptions
// ===========================================================================
// method definitions
// ===========================================================================
// ---------------------------------------------------------------------------
// static initialisation methods
// ---------------------------------------------------------------------------
void
MSDevice_Routing::insertOptions(OptionsCont& oc) {
oc.addOptionSubTopic("Routing");
insertDefaultAssignmentOptions("rerouting", "Routing", oc);
oc.doRegister("device.rerouting.period", new Option_String("0", "TIME"));
oc.addSynonyme("device.rerouting.period", "device.routing.period", true);
oc.addDescription("device.rerouting.period", "Routing", "The period with which the vehicle shall be rerouted");
oc.doRegister("device.rerouting.pre-period", new Option_String("0", "TIME"));
oc.addSynonyme("device.rerouting.pre-period", "device.routing.pre-period", true);
oc.addDescription("device.rerouting.pre-period", "Routing", "The rerouting period before depart");
oc.doRegister("device.rerouting.adaptation-weight", new Option_Float(.5));
oc.addSynonyme("device.rerouting.adaptation-weight", "device.routing.adaptation-weight", true);
oc.addDescription("device.rerouting.adaptation-weight", "Routing", "The weight of prior edge weights");
oc.doRegister("device.rerouting.adaptation-interval", new Option_String("1", "TIME"));
oc.addSynonyme("device.rerouting.adaptation-interval", "device.routing.adaptation-interval", true);
oc.addDescription("device.rerouting.adaptation-interval", "Routing", "The interval for updating the edge weights");
oc.doRegister("device.rerouting.with-taz", new Option_Bool(false));
oc.addSynonyme("device.rerouting.with-taz", "device.routing.with-taz", true);
oc.addDescription("device.rerouting.with-taz", "Routing", "Use zones (districts) as routing end points");
oc.doRegister("device.rerouting.init-with-loaded-weights", new Option_Bool(false));
oc.addDescription("device.rerouting.init-with-loaded-weights", "Routing", "Use given weight files for initializing edge weights");
myEdgeWeightSettingCommand = 0;
myEdgeEfforts.clear();
}
示例6: insertDefaultAssignmentOptions
// ===========================================================================
// method definitions
// ===========================================================================
// ---------------------------------------------------------------------------
// static initialisation methods
// ---------------------------------------------------------------------------
void
MSDevice_FCD::insertOptions(OptionsCont& oc) {
oc.addOptionSubTopic("FCD Device");
insertDefaultAssignmentOptions("fcd", "FCD Device", oc);
oc.doRegister("device.fcd.period", new Option_String("0"));
oc.addDescription("device.fcd.period", "FCD Device", "Recording period for FCD-data");
}
示例7: insertDefaultAssignmentOptions
// ===========================================================================
// method definitions
// ===========================================================================
// ---------------------------------------------------------------------------
// static initialisation methods
// ---------------------------------------------------------------------------
void
MSDevice_Example::insertOptions(OptionsCont& oc) {
oc.addOptionSubTopic("Example Device");
insertDefaultAssignmentOptions("example", "Example Device", oc);
oc.doRegister("device.example.parameter", new Option_Float(0.0));
oc.addDescription("device.example.parameter", "Example Device", "An exemplary parameter which can be used by all instances of the example device");
}
示例8:
void
SystemFrame::addReportOptions(OptionsCont &oc) {
oc.addOptionSubTopic("Report");
oc.doRegister("verbose", 'v', new Option_Bool(false));
oc.addDescription("verbose", "Report", "Switches to verbose output");
oc.doRegister("print-options", 'p', new Option_Bool(false));
oc.addDescription("print-options", "Report", "Prints option values before processing");
oc.doRegister("help", '?', new Option_Bool(false));
oc.addDescription("help", "Report", "Prints this screen");
oc.doRegister("suppress-warnings", 'W', new Option_Bool(false));
oc.addDescription("suppress-warnings", "Report", "Disables output of warnings");
oc.doRegister("log-file", 'l', new Option_FileName());
oc.addDescription("log-file", "Report", "Writes all messages to FILE");
}
示例9: template
// ===========================================================================
// method definitions
// ===========================================================================
void
SystemFrame::addConfigurationOptions(OptionsCont& oc) {
oc.addOptionSubTopic("Configuration");
oc.doRegister("configuration-file", 'c', new Option_FileName());
oc.addSynonyme("configuration-file", "configuration");
oc.addDescription("configuration-file", "Configuration", "Loads the named config on startup");
oc.doRegister("save-configuration", new Option_FileName());
oc.addSynonyme("save-config", "save-configuration");
oc.addDescription("save-configuration", "Configuration", "Saves current configuration into FILE");
oc.doRegister("save-template", new Option_FileName());
oc.addDescription("save-template", "Configuration", "Saves a configuration template (empty) into FILE");
oc.doRegister("save-schema", new Option_FileName());
oc.addDescription("save-schema", "Configuration", "Saves the configuration schema into FILE");
oc.doRegister("save-commented", new Option_Bool(false));
oc.addSynonyme("save-commented", "save-template.commented");
oc.addDescription("save-commented", "Configuration", "Adds comments to saved template, configuration, or schema");
}
示例10: inputs
void
SystemFrame::addReportOptions(OptionsCont& oc) {
oc.addOptionSubTopic("Report");
oc.doRegister("verbose", 'v', new Option_Bool(false));
oc.addDescription("verbose", "Report", "Switches to verbose output");
oc.doRegister("print-options", new Option_Bool(false));
oc.addDescription("print-options", "Report", "Prints option values before processing");
oc.doRegister("help", '?', new Option_Bool(false));
oc.addDescription("help", "Report", "Prints this screen");
oc.doRegister("version", 'V', new Option_Bool(false));
oc.addDescription("version", "Report", "Prints the current version");
oc.doRegister("xml-validation", 'X', new Option_String("auto"));
oc.addDescription("xml-validation", "Report", "Set schema validation scheme of XML inputs (\"never\", \"auto\" or \"always\")");
oc.doRegister("xml-validation.net", new Option_String("never"));
oc.addDescription("xml-validation.net", "Report", "Set schema validation scheme of SUMO network inputs (\"never\", \"auto\" or \"always\")");
oc.doRegister("no-warnings", 'W', new Option_Bool(false));
oc.addSynonyme("no-warnings", "suppress-warnings", true);
oc.addDescription("no-warnings", "Report", "Disables output of warnings");
oc.doRegister("log", 'l', new Option_FileName());
oc.addSynonyme("log", "log-file");
oc.addDescription("log", "Report", "Writes all messages to FILE (implies verbose)");
oc.doRegister("message-log", new Option_FileName());
oc.addDescription("message-log", "Report", "Writes all non-error messages to FILE (implies verbose)");
oc.doRegister("error-log", new Option_FileName());
oc.addDescription("error-log", "Report", "Writes all warnings and errors to FILE");
oc.doRegister("output-prefix", new Option_String());
oc.addDescription("output-prefix", "Output", "Prefix which is applied to all output files. The special string 'TIME' is replaced by the current time.");
}
示例11: template
// ===========================================================================
// method definitions
// ===========================================================================
void
SystemFrame::addConfigurationOptions(OptionsCont &oc) {
oc.addOptionSubTopic("Configuration");
oc.doRegister("configuration-file", 'c', new Option_FileName());
oc.addSynonyme("configuration-file", "configuration");
oc.addDescription("configuration-file", "Configuration", "Loads the named config on startup");
oc.doRegister("save-configuration", new Option_FileName());
oc.addSynonyme("save-config", "save-configuration");
oc.addDescription("save-configuration", "Configuration", "Saves current configuration into FILE");
oc.doRegister("save-template", new Option_FileName());
oc.addDescription("save-template", "Configuration", "Saves a configuration template (empty) into FILE");
/*
oc.doRegister("save-template.mandatory-only", new Option_Bool(false));
oc.addDescription("save-template.mandatory-only", "Configuration", "Saves only mandatory values into template");
*/
oc.doRegister("save-template.commented", new Option_Bool(false));
oc.addDescription("save-template.commented", "Configuration", "Adds comments to saved template");
}