本文整理汇总了C++中OptionsCont::clear方法的典型用法代码示例。如果您正苦于以下问题:C++ OptionsCont::clear方法的具体用法?C++ OptionsCont::clear怎么用?C++ OptionsCont::clear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OptionsCont
的用法示例。
在下文中一共展示了OptionsCont::clear方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}