Eclipse SUMO - Simulation of Urban MObility
OptionsCont Class Reference

A storage for options typed value containers) More...

#include <OptionsCont.h>

Collaboration diagram for OptionsCont:
[legend]

Public Member Functions

void clear ()
 Removes all information from the container. More...
 
const std::string & getFullName () const
 
const std::vector< std::string > & getSubTopics () const
 return the list of subtopics More...
 
std::vector< std::string > getSubTopicsEntries (const std::string &subtopic) const
 return the list of entries for the given subtopic More...
 
std::string getTypeName (const std::string name)
 return the type name for the given option More...
 
 OptionsCont ()
 Constructor. More...
 
bool processMetaOptions (bool missingOptions)
 Checks for help and configuration output, returns whether we should exit. More...
 
void resetWritable ()
 Resets all options to be writeable. More...
 
 ~OptionsCont ()
 Destructor. More...
 
Methods setting and getting information about the appplication and currently set options
void setApplicationName (const std::string &appName, const std::string &fullName)
 Sets the application name. More...
 
void setApplicationDescription (const std::string &appDesc)
 Sets the application description. More...
 
void addCallExample (const std::string &example, const std::string &desc)
 Add a call example. More...
 
void setAdditionalHelpMessage (const std::string &add)
 Sets an additional message to be printed at the begin of the help screen. More...
 
void addCopyrightNotice (const std::string &copyrightLine)
 Adds a copyright notice to the help output. More...
 
void clearCopyrightNotices ()
 Removes all copyright information. More...
 
void addOptionSubTopic (const std::string &topic)
 Adds an option subtopic. More...
 
void printHelp (std::ostream &os)
 Prints the help. More...
 
void printHelpOnTopic (const std::string &topic, int tooLarge, int maxSize, std::ostream &os)
 Prints help on the given topic. More...
 
void writeConfiguration (std::ostream &os, const bool filled, const bool complete, const bool addComments, const std::string &relativeTo="", const bool forceRelative=false, const bool inComment=false) const
 Writes the configuration. More...
 
void writeSchema (std::ostream &os)
 Writes the xml schema for the configuration. More...
 
void writeXMLHeader (std::ostream &os, const bool includeConfig=true) const
 Writes a standard XML header, including the configuration. More...
 
Methods for registering options
void doRegister (const std::string &name, Option *v)
 Adds an option under the given name. More...
 
void doRegister (const std::string &name, char abbr, Option *v)
 Adds an option under the given name and the given abbreviation. More...
 
void addSynonyme (const std::string &name1, const std::string &name2, bool isDeprecated=false)
 Adds a synonyme for an options name (any order) More...
 
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. More...
 
void addDescription (const std::string &name, const std::string &subtopic, const std::string &description)
 Adds a description for an option. More...
 
Methods for retrieving information about options
bool exists (const std::string &name) const
 Returns the information whether the named option is known. More...
 
bool isSet (const std::string &name, bool failOnNonExistant=true) const
 Returns the information whether the named option is set. More...
 
bool isDefault (const std::string &name) const
 Returns the information whether the named option has still the default value. More...
 
bool isBool (const std::string &name) const
 Returns the information whether the option is a boolean option. More...
 
bool isUsableFileList (const std::string &name) const
 Checks whether the named option is usable as a file list (with at least a single file) More...
 
bool checkDependingSuboptions (const std::string &name, const std::string &prefix) const
 Checks whether an option is set, which has options with a prefix depending on it. More...
 
void relocateFiles (const std::string &configuration) const
 Modifies file name options according to the configuration path. More...
 
std::vector< std::string > getSynonymes (const std::string &name) const
 Returns the synonymes of an option name. More...
 
const std::string & getDescription (const std::string &name) const
 Returns the option description. More...
 
bool isWriteable (const std::string &name)
 Returns the information whether the named option may be set. More...
 
Methods for retrieving values from options
std::string getValueString (const std::string &name) const
 Returns the string-value of the named option (all options) More...
 
std::string getString (const std::string &name) const
 Returns the string-value of the named option (only for Option_String) More...
 
double getFloat (const std::string &name) const
 Returns the double-value of the named option (only for Option_Float) More...
 
int getInt (const std::string &name) const
 Returns the int-value of the named option (only for Option_Integer) More...
 
bool getBool (const std::string &name) const
 Returns the boolean-value of the named option (only for Option_Bool) More...
 
const IntVectorgetIntVector (const std::string &name) const
 Returns the list of integer-value of the named option (only for Option_IntVector) More...
 
const StringVectorgetStringVector (const std::string &name) const
 Returns the list of string-value of the named option (only for Option_StringVector) More...
 
bool isInStringVector (const std::string &optionName, const std::string &itemName) const
 Returns the named option is a list of string values containing the specified item. More...
 
Methods for setting values into options
bool set (const std::string &name, const std::string &value, const bool append=false)
 Sets the given value for the named option. More...
 
bool setDefault (const std::string &name, const std::string &value)
 Sets the given value for the named option as new default value. More...
 
bool setByRootElement (const std::string &name, const std::string &value)
 Sets the given value for the option which can handle the given XML root. More...
 

Static Public Member Functions

static OptionsContgetOptions ()
 Retrieves the options. More...
 

Private Types

typedef std::vector< Option * > ItemAddressContType
 
typedef std::map< std::string, Option * > KnownContType
 

Private Member Functions

std::string convertChar (char abbr) const
 Converts an abbreviation into a name. More...
 
OptiongetSecure (const std::string &name) const
 Returns the named option. More...
 
OptionsContoperator= (const OptionsCont &s)
 
 OptionsCont (const OptionsCont &s)
 
void reportDoubleSetting (const std::string &arg) const
 Reports an error that the option has already been set. More...
 
void splitLines (std::ostream &os, std::string what, int offset, int nextOffset)
 Writes the given string 'formatted'. More...
 

Private Attributes

std::string myAdditionalMessage
 
ItemAddressContType myAddresses
 
std::string myAppDescription
 
std::string myAppName
 some information on the application More...
 
std::vector< std::pair< std::string, std::string > > myCallExamples
 list of call examples More...
 
std::vector< std::string > myCopyrightNotices
 
std::map< std::string, bool > myDeprecatedSynonymes
 A map from deprecated options to a bool indicating whether we warned about deprecation. More...
 
std::string myFullName
 
std::map< std::string, std::vector< std::string > > mySubTopicEntries
 A map from subtopic to option. More...
 
std::vector< std::string > mySubTopics
 lists of option subtopics and copyright notices More...
 
KnownContType myValues
 
bool myWriteLicense
 Information whether we should always include license information in file headers. More...
 
std::map< std::string, std::string > myXMLDefaults
 A map from XML root element to option. More...
 

Static Private Attributes

static OptionsCont myOptions
 The static options container used. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const OptionsCont &oc)
 Output operator. More...
 

Detailed Description

A storage for options typed value containers)

This container stores options (typed value containers) by their names. In the case of command line tools, this container is the main interface between a user's definitions about what to do (command line options, configuration files) and the application.

At the begin, the application should initialise the container. Because the OptionsCont is also responsible for printing the help screen, one should name and describe the application, first. This means that the first usage of this container should look similar to this:

// give some application descriptions
oc.setApplicationDescription(<ONE_LINE_DESCRIPTION>);
oc.setApplicationName(<APPLICATION_NAME>, "SUMO <APPLICATION_NAME> Version " + (string)VERSION_STRING);
A storage for options typed value containers)
Definition: OptionsCont.h:89
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
static OptionsCont & getOptions()
Retrieves the options.
Definition: OptionsCont.cpp:59
See also
setApplicationDescription
setApplicationName

Then, you may also add some example calls using addCallExample.

See also
addCallExample

In the next step, option subtopics are registered. This is needed for the help screen and for writing the templates/saving configurations. A subtopic is added using addOptionSubTopic(<SUBTOPIC_NAME>).

See also
addOptionSubTopic

After this, you may add options to the container. This is done using doRegister. This method requires a long name for the option and the value container. The value container must be an instance of one of the classes derived from "Option". Do not use Option itself! This is a base class which is meant to supply a default behaviour, but this default behaviour throws exceptions only!

See also
Option
doRegister
addSynonyme

Once stored inside this container, options will not be visible to the world and are deleted by the container. Only values and stati of the options may be returned. While accessing the options, the programmer must assure that he asks for the right value (only Option_Bool is able to return a boolean value, other option types will throw exceptions). Further, options added to the container must not be deleted outside this container (the container becomes the owner).

For being printed in the help screen, a description together with the subtopic the option belongs to must be given to OptionsCont. This is done using addDescription(<OPTION_NAME>, <SUBTOPIC>, <DESCRIPTION>).

See also
addDescription

Definition at line 89 of file OptionsCont.h.

Member Typedef Documentation

◆ ItemAddressContType

typedef std::vector<Option*> OptionsCont::ItemAddressContType
private

definition of the type that stores the addresses of used options

Definition at line 717 of file OptionsCont.h.

◆ KnownContType

typedef std::map<std::string, Option*> OptionsCont::KnownContType
private

definition of the type that realises the access to options

Definition at line 720 of file OptionsCont.h.

Constructor & Destructor Documentation

◆ OptionsCont() [1/2]

OptionsCont::OptionsCont ( )

Constructor.

Definition at line 64 of file OptionsCont.cpp.

References myCopyrightNotices.

◆ ~OptionsCont()

OptionsCont::~OptionsCont ( )

Destructor.

Definition at line 70 of file OptionsCont.cpp.

References clear().

◆ OptionsCont() [2/2]

OptionsCont::OptionsCont ( const OptionsCont s)
private

invalid copy constructor

Member Function Documentation

◆ addCallExample()

void OptionsCont::addCallExample ( const std::string &  example,
const std::string &  desc 
)

Add a call example.

Parameters
[in]exampleA call example (without the app name)
[in]descA verbose description

Definition at line 500 of file OptionsCont.cpp.

References myCallExamples.

Referenced by AGFrame::fillOptions(), RODFFrame::fillOptions(), RODUAFrame::fillOptions(), ROJTRFrame::fillOptions(), ROMAFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), and GNELoadThread::fillOptions().

Here is the caller graph for this function:

◆ addCopyrightNotice()

void OptionsCont::addCopyrightNotice ( const std::string &  copyrightLine)

Adds a copyright notice to the help output.

Parameters
[in]copyrightLineThe line to put out as a copyright notice

Definition at line 512 of file OptionsCont.cpp.

References myCopyrightNotices.

Referenced by main().

Here is the caller graph for this function:

◆ addDescription()

void OptionsCont::addDescription ( const std::string &  name,
const std::string &  subtopic,
const std::string &  description 
)

Adds a description for an option.

Tries to retrieve the named option and to set the given description. Adds the name to the list of option names to be located in the named subtopic.

Throws an InvalidArgument if the option is not known or already has a description set.

Parameters
[in]nameThe option's name
[in]subtopicThe subtopic to locate the description within
[in]descriptionThe description
Exceptions
InvalidArgumentIf none of the synonymes or both synonymes with different options were registered before

Definition at line 474 of file OptionsCont.cpp.

References getSecure(), mySubTopicEntries, mySubTopics, and Option::setDescription().

Referenced by ROMAFrame::addAssignmentOptions(), SystemFrame::addConfigurationOptions(), RODUAFrame::addDUAOptions(), RODUAFrame::addImportOptions(), ROMAFrame::addImportOptions(), GeoConvHelper::addProjectionOptions(), SystemFrame::addReportOptions(), AGFrame::fillOptions(), RODFFrame::fillOptions(), ROJTRFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), NGFrame::fillOptions(), NIFrame::fillOptions(), NBFrame::fillOptions(), NWFrame::fillOptions(), GNELoadThread::fillOptions(), ROFrame::fillOptions(), MSDevice::insertDefaultAssignmentOptions(), MSDevice_Battery::insertOptions(), MSDevice_Bluelight::insertOptions(), MSVehicleDevice_BTreceiver::insertOptions(), MSDevice_DriverState::insertOptions(), MSDevice_Emissions::insertOptions(), MSDevice_Example::insertOptions(), MSDevice_FCD::insertOptions(), MSDevice_Friction::insertOptions(), MSDevice_GLOSA::insertOptions(), MSDevice_Routing::insertOptions(), MSDevice_SSM::insertOptions(), MSDevice_Taxi::insertOptions(), MSDevice_ToC::insertOptions(), MSTransportableDevice_FCD::insertOptions(), MSTransportableDevice_Routing::insertOptions(), RandHelper::insertRandOptions(), and main().

Here is the caller graph for this function:

◆ addOptionSubTopic()

void OptionsCont::addOptionSubTopic ( const std::string &  topic)

Adds an option subtopic.

Sub-topics are used to join several options into one thematic field. They are used on writing the help screen and the configuration. They have no further meaning besides making the outputs better readable.

Parameters
[in]topicThe options sub topic

Definition at line 524 of file OptionsCont.cpp.

References mySubTopicEntries, and mySubTopics.

Referenced by SystemFrame::addConfigurationOptions(), GeoConvHelper::addProjectionOptions(), SystemFrame::addReportOptions(), AGFrame::fillOptions(), RODFFrame::fillOptions(), RODUAFrame::fillOptions(), ROJTRFrame::fillOptions(), ROMAFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), GNELoadThread::fillOptions(), MSDevice_Bluelight::insertOptions(), MSDevice_DriverState::insertOptions(), MSDevice_ElecHybrid::insertOptions(), MSDevice_Example::insertOptions(), MSDevice_FCD::insertOptions(), MSDevice_Friction::insertOptions(), MSDevice_GLOSA::insertOptions(), MSDevice_SSM::insertOptions(), MSDevice_Taxi::insertOptions(), MSDevice_ToC::insertOptions(), MSDevice_Tripinfo::insertOptions(), MSDevice_Vehroutes::insertOptions(), RandHelper::insertRandOptions(), and main().

Here is the caller graph for this function:

◆ addSynonyme()

void OptionsCont::addSynonyme ( const std::string &  name1,
const std::string &  name2,
bool  isDeprecated = false 
)

Adds a synonyme for an options name (any order)

Tries to find one of the synonymes. If both are known and the option differs for both, an InvalidArgument exception is thrown. If none is known, also.

If one of the synonymes is known and the other not, the option from the known one is made accessible by the other.

In the case both synonymes are known and have the same option assigned, nothing is done.

Parameters
[in]name1The first synonyme
[in]name2The second synonyme
[in]isDeprecatedwhether the synonyme is considered deprecated
Exceptions
InvalidArgumentIf none of the synonymes or both synonymes with different options were registered before

Definition at line 97 of file OptionsCont.cpp.

References doRegister(), myDeprecatedSynonymes, and myValues.

Referenced by ROMAFrame::addAssignmentOptions(), SystemFrame::addConfigurationOptions(), RODUAFrame::addDUAOptions(), RODUAFrame::addImportOptions(), ROMAFrame::addImportOptions(), GeoConvHelper::addProjectionOptions(), SystemFrame::addReportOptions(), AGFrame::fillOptions(), RODFFrame::fillOptions(), ROJTRFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), NGFrame::fillOptions(), NIFrame::fillOptions(), NBFrame::fillOptions(), NWFrame::fillOptions(), GNELoadThread::fillOptions(), ROFrame::fillOptions(), MSDevice::insertDefaultAssignmentOptions(), MSDevice_Routing::insertOptions(), MSTransportableDevice_Routing::insertOptions(), RandHelper::insertRandOptions(), and main().

Here is the caller graph for this function:

◆ addXMLDefault()

void OptionsCont::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.

Parameters
[in]nameThe option name
[in]xmlRootThe name of the xml root element to handle

Definition at line 125 of file OptionsCont.cpp.

References myXMLDefaults.

Referenced by SystemFrame::addConfigurationOptions(), MSFrame::fillOptions(), and NIFrame::fillOptions().

Here is the caller graph for this function:

◆ checkDependingSuboptions()

bool OptionsCont::checkDependingSuboptions ( const std::string &  name,
const std::string &  prefix 
) const

Checks whether an option is set, which has options with a prefix depending on it.

The method returns true, if the named option is set or no option dependoing on it is set. Throws an InvalidArgument exception if the option is not known.

Parameters
[in]nameThe name of the option to check
[in]prefixThe prefix of depending options
Returns
Whether the dependencies are fulfilled
Exceptions
InvalidArgumentIf the option does not exist

Definition at line 390 of file OptionsCont.cpp.

References getSecure(), getSynonymes(), Option::isSet(), myValues, and WRITE_ERROR.

Referenced by NIFrame::checkOptions().

Here is the caller graph for this function:

◆ clear()

void OptionsCont::clear ( )

Removes all information from the container.

Definition at line 461 of file OptionsCont.cpp.

References myAddresses, mySubTopicEntries, mySubTopics, and myValues.

Referenced by SystemFrame::close(), GNELoadThread::fillOptions(), NLBuilder::init(), GUILoadThread::run(), GNELoadThread::run(), and ~OptionsCont().

Here is the caller graph for this function:

◆ clearCopyrightNotices()

void OptionsCont::clearCopyrightNotices ( )

Removes all copyright information.

Definition at line 518 of file OptionsCont.cpp.

References myCopyrightNotices.

◆ convertChar()

std::string OptionsCont::convertChar ( char  abbr) const
private

Converts an abbreviation into a name.

Build and returns the string which consists of the given character only.

Parameters
[in]abbrThe abbreviation to convert into a string
Returns
The abbreviation converted into a string

Definition at line 429 of file OptionsCont.cpp.

Referenced by doRegister().

Here is the caller graph for this function:

◆ doRegister() [1/2]

void OptionsCont::doRegister ( const std::string &  name,
char  abbr,
Option v 
)

Adds an option under the given name and the given abbreviation.

Adds the option under both names using void doRegister(const std::string &name, Option *v);

Parameters
[in]nameThe (long) name of the option
[in]abbrThe (short) name of the option
[in]vThe option (typed value storage)
Exceptions
InvalidArgumentIf one of the names is already used

Definition at line 90 of file OptionsCont.cpp.

References convertChar(), and doRegister().

◆ doRegister() [2/2]

void OptionsCont::doRegister ( const std::string &  name,
Option v 
)

Adds an option under the given name.

Parameters
[in]nameThe (long) name of the option
[in]vThe option (typed value storage)
Exceptions
InvalidArgumentIf the name is already used

Definition at line 76 of file OptionsCont.cpp.

References myAddresses, and myValues.

Referenced by ROMAFrame::addAssignmentOptions(), SystemFrame::addConfigurationOptions(), RODUAFrame::addDUAOptions(), RODUAFrame::addImportOptions(), ROMAFrame::addImportOptions(), GeoConvHelper::addProjectionOptions(), SystemFrame::addReportOptions(), addSynonyme(), doRegister(), AGFrame::fillOptions(), RODFFrame::fillOptions(), ROJTRFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), NGFrame::fillOptions(), NIFrame::fillOptions(), NBFrame::fillOptions(), NWFrame::fillOptions(), GNELoadThread::fillOptions(), ROFrame::fillOptions(), MSDevice::insertDefaultAssignmentOptions(), MSDevice_Battery::insertOptions(), MSDevice_Bluelight::insertOptions(), MSVehicleDevice_BTreceiver::insertOptions(), MSDevice_DriverState::insertOptions(), MSDevice_Emissions::insertOptions(), MSDevice_Example::insertOptions(), MSDevice_FCD::insertOptions(), MSDevice_Friction::insertOptions(), MSDevice_GLOSA::insertOptions(), MSDevice_Routing::insertOptions(), MSDevice_SSM::insertOptions(), MSDevice_Taxi::insertOptions(), MSDevice_ToC::insertOptions(), MSTransportableDevice_FCD::insertOptions(), MSTransportableDevice_Routing::insertOptions(), RandHelper::insertRandOptions(), and main().

Here is the caller graph for this function:

◆ exists()

bool OptionsCont::exists ( const std::string &  name) const

Returns the information whether the named option is known.

Returns
true if an option has been added before under the given name, false otherwise

Definition at line 131 of file OptionsCont.cpp.

References myValues.

Referenced by NBParkingCont::addEdges2Keep(), SystemFrame::addReportOptions(), NBEdgeCont::applyOptions(), NWFrame::checkOptions(), SystemFrame::checkOptions(), NBNetBuilder::compute(), NBNodeShapeComputer::computeNodeShapeDefault(), NIImporter_OpenDrive::computeShapes(), SUMOVehicleParameter::defaultOptionOverrides(), MSDevice::equippedByDefaultAssignmentOptions(), PollutantsInterface::Helper::getClassByName(), LIBSUMO_NAMESPACE::Simulation::getOption(), MSDevice::getStringParam(), NBNodeCont::guessTLs(), GeoConvHelper::init(), NBEdgeCont::insert(), NBNodeShapeComputer::joinSameDirectionEdges(), OptionsIO::loadConfiguration(), ROLoader::loadNet(), NILoader::loadXML(), RONet::openOutput(), RORouteDef::preComputeCurrentRoute(), processMetaOptions(), NBEdgeCont::recheckPostProcessConnections(), NBNodeCont::removeUnwishedNodes(), RouteCostCalculator< R, E, V >::RouteCostCalculator(), NBNetBuilder::runningNetedit(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), SUMOVTypeParameter::SUMOVTypeParameter(), SUMOVehicleParameter::write(), NWWriter_XML::writeEdgesAndConnections(), RONet::writeIntermodal(), NWWriter_XML::writeNetwork(), NWWriter_SUMO::writeNetwork(), and NWWriter_XML::writeNodes().

Here is the caller graph for this function:

◆ getBool()

bool OptionsCont::getBool ( const std::string &  name) const

Returns the boolean-value of the named option (only for Option_Bool)

This method returns the boolean-value of an existing boolean-option. If the named option does not exist or is not a boolean-option, an InvalidArgument is thrown.

Parameters
[in]nameThe name of the option to return the boolean-value of
Returns
The boolean-value of the named, existing boolean-option
Exceptions
InvalidArgumentIf the option does not exist or is not a boolean-option

Definition at line 217 of file OptionsCont.cpp.

References Option::getBool(), and getSecure().

Referenced by MSRoutingEngine::_initEdgeWeights(), NIImporter_SUMO::_loadNetwork(), NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), NLHandler::addDistrict(), NIXMLEdgesHandler::addEdge(), NIXMLEdgesHandler::addSplit(), NBEdge::append(), NIImporter_OpenStreetMap::applyLaneUseInformation(), NBEdgeCont::applyOptions(), NIImporter_OpenStreetMap::applyTurnSigns(), NLBuilder::build(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), buildNetwork(), MELoop::buildSegmentsFor(), MSDevice_Tripinfo::buildVehicleDevices(), RODUAFrame::checkOptions(), MSFrame::checkOptions(), NBFrame::checkOptions(), NGFrame::checkOptions(), NIFrame::checkOptions(), NWFrame::checkOptions(), checkOptions(), SystemFrame::checkOptions(), MSTransportableControl::checkWaiting(), RORouteHandler::closeFlow(), NBTrafficLightDefinition::collectEdges(), NBNetBuilder::compute(), computeAllPairs(), GNENet::computeAndUpdate(), NBOwnTLDef::computeLogicAndConts(), NBTrafficLightLogicCont::computeLogics(), NBNodeCont::computeLogics2(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeTypeComputer::computeNodeTypes(), NBRampsComputer::computeRamps(), computeRoutes(), NIImporter_OpenDrive::computeShapes(), NBOwnTLDef::correctConflicting(), GNENet::createRoundabout(), SUMOVehicleParameter::defaultOptionOverrides(), GNEViewNet::doPaintGL(), GNEEdge::drawDottedContourEdge(), NIImporter_OpenStreetMap::EdgesHandler::EdgesHandler(), MSDevice::equippedByDefaultAssignmentOptions(), MSTransportableControl::erase(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSDevice_Tripinfo::generateOutputForUnfinished(), GNEConnection::getAttribute(), HelpersPHEMlight::getClassByName(), HelpersPHEMlight5::getClassByName(), PollutantsInterface::Helper::getClassByName(), NBRequest::getFoesString(), NWWriter_OpenDrive::getLeftLaneBorder(), MSNet::getMesoType(), NWWriter_SUMO::getOppositeInternalID(), NBRequest::getResponseString(), NBNodeCont::guessTLs(), MSDevice_Vehroutes::init(), GeoConvHelper::init(), MSLane::initCollisionOptions(), MSAbstractLaneChangeModel::initGlobalOptions(), NBLoadedSUMOTLDef::initNeedsContRelation(), initNet(), MsgHandler::initOutputOptions(), RandHelper::initRandGlobal(), MSLane::initRNGs(), MSRoutingEngine::initRouter(), MSRoutingEngine::initWeightUpdate(), GUIDialog_Options::InputBool::InputBool(), NBEdgeCont::insert(), NIImporter_OpenStreetMap::insertEdge(), NBNodeCont::joinNodeCluster(), NBEdgeCont::joinTramEdges(), NIImporter_ArcView::load(), NIImporter_OpenStreetMap::load(), PCLoaderArcView::load(), PCLoaderVisum::load(), NILoader::load(), OptionsIO::loadConfiguration(), PCLoaderOSM::loadIfSet(), loadJTRDefinitions(), ROLoader::loadNet(), NIImporter_ArcView::loadNetwork(), NIImporter_DlrNavteq::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), NIImporter_VISUM::loadNetwork(), GNEApplicationWindow::loadOptionOnStartup(), PCLoaderDlrNavteq::loadPOIFile(), PCLoaderDlrNavteq::loadPolyFile(), main(), MSDevice_Battery::MSDevice_Battery(), MSNet::MSNet(), MSPModel_Striping::MSPModel_Striping(), MSRailSignal::MSRailSignal(), NBLoadedTLDef::myCompute(), PCLoaderXML::myStartElement(), PCTypeDefHandler::myStartElement(), GUIDialog_Options::InputBool::onCmdSetOption(), RONet::openOutput(), ROLoader::openRoutes(), ROLoader::openTypedRoutes(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), PCTypeMap::PCTypeMap(), RORouteDef::preComputeCurrentRoute(), processMetaOptions(), readDetectors(), NBEdgeCont::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NBEdgeCont::remapIDs(), NBNodeCont::remapIDs(), NBNodeCont::removeUnwishedNodes(), RORouteDef::repairCurrentRoute(), NIImporter_DlrNavteq::EdgesHandler::report(), MSDevice_SSM::requestsTrajectories(), RODFNet::RODFNet(), RouteCostCalculator< R, E, V >::RouteCostCalculator(), GUILoadThread::run(), GNELoadThread::run(), RONet::saveAndRemoveRoutesUntil(), ROPerson::PersonTrip::saveAsXML(), ROPerson::Ride::saveAsXML(), ROPerson::Walk::saveAsXML(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MSStateHandler::saveState(), GNEEdge::setGeometry(), MSFrame::setMSGlobals(), GNEStoppingPlace::setStoppingPlaceGeometry(), startComputation(), NGNet::toNB(), GNEBusStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), GNEParkingArea::updateGeometry(), MSDevice_SSM::useGeoCoords(), AGCity::workAllocation(), MSFCDExport::write(), MSEmissionExport::write(), ODMatrix::write(), writeConfiguration(), NWWriter_SUMO::writeConnection(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), NWWriter_SUMO::writeInternalConnections(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_SUMO::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSNet::writeOutput(), MSDevice_Vehroutes::writeOutput(), and MSDevice_SSM::writePositions().

◆ getDescription()

const std::string & OptionsCont::getDescription ( const std::string &  name) const

Returns the option description.

Parameters
[in]nameThe name of the option to return the description of
Returns
description
Exceptions
InvalidArgumentIf the named option does not exist

Definition at line 293 of file OptionsCont.cpp.

References Option::getDescription(), and getSecure().

Referenced by GUIDialog_Options::InputBool::InputBool(), GUIDialog_Options::InputFilename::InputFilename(), GUIDialog_Options::InputFloat::InputFloat(), GUIDialog_Options::InputInt::InputInt(), GUIDialog_Options::InputIntVector::InputIntVector(), GUIDialog_Options::InputString::InputString(), and GUIDialog_Options::InputStringVector::InputStringVector().

Here is the caller graph for this function:

◆ getFloat()

double OptionsCont::getFloat ( const std::string &  name) const

Returns the double-value of the named option (only for Option_Float)

This method returns the double-value of an existing double-option. If the named option does not exist or is not a double-option, an InvalidArgument is thrown.

Parameters
[in]nameThe name of the option to return the double-value of
Returns
The double-value of the named, existing double-option
Exceptions
InvalidArgumentIf the option does not exist or is not a double-option

Definition at line 203 of file OptionsCont.cpp.

References Option::getFloat(), and getSecure().

Referenced by MSRoutingEngine::_initEdgeWeights(), NIImporter_SUMO::_loadNetwork(), MSRouteHandler::addPersonTrip(), RORouteHandler::addPersonTrip(), NBEdgeCont::applyOptions(), NBNetBuilder::applyOptions(), NBNode::buildCrossings(), GNETLSEditorFrame::TLSPhases::buildDefaultPhase(), MSTransportableDevice_BTreceiver::buildDevices(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NGEdge::buildNBEdge(), buildNetwork(), MELoop::buildSegmentsFor(), MSDevice_Bluelight::buildVehicleDevices(), MSVehicleDevice_BTreceiver::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), NBNode::checkCrossing(), MSFrame::checkOptions(), NBFrame::checkOptions(), SystemFrame::checkOptions(), MSDevice_Routing::checkOptions(), NBTrafficLightDefinition::compute(), NBNetBuilder::compute(), NBOwnTLDef::computeLogicAndConts(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeTypeComputer::computeNodeTypes(), NBRampsComputer::computeRamps(), computeRoutes(), RODFNet::computeRoutesFor(), NIImporter_OpenDrive::computeShapes(), GNENet::createEdge(), GNENet::createRoundabout(), NIImporter_OpenStreetMap::EdgesHandler::EdgesHandler(), MSDevice::equippedByDefaultAssignmentOptions(), METriggeredCalibrator::execute(), NBEdge::expandableBy(), GNEAttributeCarrier::fillNetworkElements(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), NBPTLineCont::findWay(), GNEEdgeType::getAttribute(), RouteCostCalculator< R, E, V >::getCalculator(), HelpersPHEMlight5::getClassByName(), NBNodeShapeComputer::getDefaultRadius(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSNet::getMesoType(), GNEJunction::getPopUpMenu(), NIVissimDistrictConnection::getRealSpeed(), NBNodeCont::guessFringe(), NBNodeCont::guessTLs(), NBNode::indirectLeftShape(), GeoConvHelper::init(), MSLane::initCollisionOptions(), MSRoutingEngine::initRouter(), MSRoutingEngine::initWeightUpdate(), GUIDialog_Options::InputFloat::InputFloat(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::interpretTransportType(), NIImporter_ArcView::load(), NIImporter_OpenStreetMap::load(), NIImporter_Vissim::load(), PCLoaderArcView::load(), PCLoaderVisum::load(), PCLoaderOSM::loadIfSet(), ROLoader::loadNet(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), NIImporter_VISUM::loadNetwork(), PCLoaderDlrNavteq::loadPOIFile(), PCLoaderDlrNavteq::loadPolyFile(), main(), MSPModel_Striping::MSPModel_Striping(), MSVehicleControl::MSVehicleControl(), NIImporter_OpenDrive::myStartElement(), PCLoaderXML::myStartElement(), PCNetProjectionLoader::myStartElement(), PCTypeDefHandler::myStartElement(), NBRequest::oppositeLeftTurnConflict(), NIImporter_VISUM::parse_stopPoints(), PCTypeMap::PCTypeMap(), NIImporter_OpenStreetMap::reconstructLayerElevation(), GNENet::restrictLane(), RouteCostCalculator< R, E, V >::RouteCostCalculator(), MSStageTrip::routeOutput(), PCPolyContainer::save(), MSFrame::setMSGlobals(), GNEEdge::smoothShape(), startComputation(), SUMOVTypeParameter::SUMOVTypeParameter(), NGNet::toNB(), NBNetBuilder::transformCoordinates(), NIXMLEdgesHandler::tryGetShape(), NIImporter_OpenStreetMap::usableType(), MSFCDExport::write(), NWWriter_SUMO::writeConnection(), RODFDetectorCon::writeEmitters(), NWWriter_MATSim::writeNetwork(), NWWriter_OpenDrive::writeNetwork(), and NWWriter_SUMO::writeNetwork().

◆ getFullName()

const std::string & OptionsCont::getFullName ( ) const
inline

Definition at line 662 of file OptionsCont.h.

References myFullName.

◆ getInt()

int OptionsCont::getInt ( const std::string &  name) const

Returns the int-value of the named option (only for Option_Integer)

This method returns the int-value of an existing int-option. If the named option does not exist or is not a int-option, an InvalidArgument is thrown.

Parameters
[in]nameThe name of the option to return the int-value of
Returns
The int-value of the named, existing int-option
Exceptions
InvalidArgumentIf the option does not exist or is not a int-option

Definition at line 210 of file OptionsCont.cpp.

References Option::getInt(), and getSecure().

Referenced by MSRoutingEngine::_initEdgeWeights(), NBNetBuilder::applyOptions(), GNETLSEditorFrame::TLSPhases::buildDefaultPhase(), MSTransportableDevice_BTreceiver::buildDevices(), NBEdge::buildInnerEdges(), buildNetwork(), MSVehicleDevice_BTreceiver::buildVehicleDevices(), ROMAFrame::checkOptions(), MSFrame::checkOptions(), NBFrame::checkOptions(), SystemFrame::checkOptions(), MSDevice_Routing::checkOptions(), ROFrame::checkOptions(), NBTrafficLightDefinition::compute(), NBNetBuilder::compute(), NBOwnTLDef::computeLogicAndConts(), NBNodeShapeComputer::computeNodeShapeDefault(), computeRoutes(), NBNodeCont::createClusterId(), GNENet::createEdge(), GNEAttributeCarrier::fillNetworkElements(), MSDevice_Emissions::generateOutput(), HelpersPHEMlight5::getClassByName(), MSNet::getIntermodalRouter(), NLBuilder::init(), MsgHandler::initOutputOptions(), RandHelper::initRandGlobal(), MSLane::initRNGs(), MSRoutingEngine::initRouter(), GUIDialog_Options::InputInt::InputInt(), main(), MSNet::MSNet(), MSPModel_Striping::MSPModel_Striping(), RouteCostCalculator< R, E, V >::RouteCostCalculator(), RONet::saveAndRemoveRoutesUntil(), MSFrame::setMSGlobals(), MSNet::simulationStep(), GNEEdge::smoothShape(), startComputation(), NGNet::toNB(), NWWriter_SUMO::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSNet::writeOutput(), and NWWriter_DlrNavteq::writeTrafficSignals().

Here is the caller graph for this function:

◆ getIntVector()

const IntVector & OptionsCont::getIntVector ( const std::string &  name) const

Returns the list of integer-value of the named option (only for Option_IntVector)

This method returns the int-vector-value of an existing int-vector-option. If the named option does not exist or is not a int-vector-option, an InvalidArgument is thrown.

Parameters
[in]nameThe name of the option to return the int-vector-value of
Returns
The int-vector-value of the named, existing int-vector-option
Exceptions
InvalidArgumentIf the option does not exist or is not a int-vector-option

Definition at line 224 of file OptionsCont.cpp.

References Option::getIntVector(), and getSecure().

Referenced by GUIDialog_Options::InputIntVector::InputIntVector().

Here is the caller graph for this function:

◆ getOptions()

OptionsCont & OptionsCont::getOptions ( )
static

Retrieves the options.

Definition at line 59 of file OptionsCont.cpp.

References myOptions.

Referenced by MSRoutingEngine::_initEdgeWeights(), MSRoutingEngine::adaptEdgeEfforts(), MSNet::adaptIntermodalRouter(), RONet::adaptIntermodalRouter(), ODMatrix::add(), MSDetectorControl::add(), MSPModel_Striping::add(), ROMAFrame::addAssignmentOptions(), NBRailwayTopologyAnalyzer::addBidiEdgesForStops(), MSDetectorControl::addDetectorAndInterval(), NLHandler::addDistrict(), RODUAFrame::addDUAOptions(), NIImporter_SUMO::addEdge(), NLHandler::addEdgeLaneMeanData(), ROLoader::EdgeFloatTimeLineRetriever_EdgeWeight::addEdgeWeight(), ROLoader::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), RODUAFrame::addImportOptions(), ROMAFrame::addImportOptions(), NIXMLEdgesHandler::addLane(), NBOwnTLDef::addPedestrianPhases(), NBOwnTLDef::addPedestrianScramble(), MSRouteHandler::addPersonTrip(), RORouteHandler::addPersonTrip(), NLHandler::addPhase(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), MSRouteHandler::addRideOrTransport(), NIXMLEdgesHandler::addSplit(), NBNodeCont::analyzeCluster(), NBEdge::append(), NIImporter_OpenStreetMap::applyLaneUseInformation(), NIImporter_OpenStreetMap::applyTurnSigns(), SUMOVehicleParserHelper::beginVTypeParsing(), NLEdgeControlBuilder::build(), NIVisumTL::build(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NLBuilder::buildDefaultMeanData(), GNETLSEditorFrame::TLSPhases::buildDefaultPhase(), MSTransportableDevice_Routing::buildDevices(), MSTransportableDevice_BTreceiver::buildDevices(), MSTransportableDevice_BTsender::buildDevices(), MSTransportableDevice_FCD::buildDevices(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), NBOwnTLDef::buildNemaPhases(), buildNetwork(), MSDevice_FCD::buildShapeFilter(), MSFrame::buildStreams(), NLTriggerBuilder::buildVaporizer(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSVehicleDevice_BTreceiver::buildVehicleDevices(), MSVehicleDevice_BTsender::buildVehicleDevices(), MSDevice_DriverState::buildVehicleDevices(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice_FCD::buildVehicleDevices(), MSDevice_Friction::buildVehicleDevices(), MSDevice_GLOSA::buildVehicleDevices(), MSDevice_Routing::buildVehicleDevices(), MSDevice_SSM::buildVehicleDevices(), MSDevice_Taxi::buildVehicleDevices(), MSDevice_ToC::buildVehicleDevices(), MSDevice_Tripinfo::buildVehicleDevices(), MSDevice_Vehroutes::buildVehicleDevices(), GNEApplicationWindowHelper::ToolbarsGrip::buildViewParentToolbarsGrips(), GNEConnection::changeTLIndex(), MSVehicleType::check(), OptionsParser::check(), NBNode::checkCrossing(), MSStageMoving::checkDepartLane(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), ROMAFrame::checkOptions(), MSFrame::checkOptions(), NBFrame::checkOptions(), NGFrame::checkOptions(), NIFrame::checkOptions(), NWFrame::checkOptions(), checkOptions(), SystemFrame::checkOptions(), MSTransportableControl::checkWaiting(), TraCIServer::cleanup(), SystemFrame::close(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), RORouteHandler::closePersonFlow(), RORouteHandler::closeRoute(), MSNet::closeSimulation(), MSRouteHandler::closeTransportable(), MSRouteHandler::closeTransportableFlow(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVType(), NBTrafficLightDefinition::collectEdges(), GNENet::computeJunction(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), NBOwnTLDef::computeLogicAndConts(), GNENet::computeNetwork(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeTypeComputer::computeNodeTypes(), computeRoutes(), RODFNet::computeRoutesFor(), NIImporter_OpenDrive::computeShapes(), RODFDetector::computeSplitProbabilities(), NBOwnTLDef::correctConflicting(), GUIApplicationWindow::create(), GNEApplicationWindow::create(), NBNodeCont::createClusterId(), OutputDevice::createDeviceByOption(), GNENet::createEdge(), GNENet::createJunction(), GNENet::createRoundabout(), GNETLSEditorFrame::TLSDefinition::createTLS(), GNEApplicationWindow::dependentBuild(), MSDevice_Taxi::dispatchShared(), GNEViewNet::doPaintGL(), GNEEdge::drawDottedContourEdge(), NIImporter_OpenStreetMap::EdgesHandler::EdgesHandler(), MSDevice::equippedByDefaultAssignmentOptions(), MSTransportableControl::erase(), METriggeredCalibrator::execute(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), NBEdge::expandableBy(), GNEAttributeCarrier::fillDemandElements(), GNEAttributeCarrier::fillNetworkElements(), AGFrame::fillOptions(), RODFFrame::fillOptions(), RODUAFrame::fillOptions(), ROJTRFrame::fillOptions(), ROMAFrame::fillOptions(), MSFrame::fillOptions(), fillOptions(), NGFrame::fillOptions(), NIFrame::fillOptions(), NBFrame::fillOptions(), NWFrame::fillOptions(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), NBPTLineCont::findWay(), GNENetHelper::AttributeCarriers::generateAdditionalID(), GNENetHelper::AttributeCarriers::generateDemandElementID(), MSDevice_Emissions::generateOutput(), MSDevice_Tripinfo::generateOutputForUnfinished(), MSNet::generateStatistics(), GNEConnection::getAttribute(), GNEEdgeType::getAttribute(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), RouteCostCalculator< R, E, V >::getCalculator(), HelpersPHEMlight::getClassByName(), HelpersPHEMlight5::getClassByName(), PollutantsInterface::Helper::getClassByName(), MSDevice_SSM::getDetectionRange(), OutputDevice::getDevice(), OutputDevice::getDeviceByOption(), NGNet::getDistribution(), LIBSUMO_NAMESPACE::Simulation::getEndTime(), MSDevice_SSM::getExtraTime(), NBEdge::getFinalLength(), NBRequest::getFoesString(), MSNet::getIntermodalRouter(), NWWriter_OpenDrive::getLeftLaneBorder(), NBLoadedTLDef::getMaxIndex(), NBOwnTLDef::getMaxIndex(), MSDevice_SSM::getMeasuresAndThresholds(), MSNet::getMesoType(), MSPModel_Striping::getNextLane(), NWWriter_SUMO::getOppositeInternalID(), LIBSUMO_NAMESPACE::Simulation::getOption(), OptionsIO::getOptions(), MSDevice_SSM::getOutputFilename(), MSDevice_Taxi::getParameter(), GUINet::getParameterWindow(), GNEJunction::getPopUpMenu(), NIVissimDistrictConnection::getRealSpeed(), NBRequest::getResponseString(), MSNet::getRouterTT(), NIImporter_OpenDrive::getTLSSecure(), GNEChange_TLS::GNEChange_TLS(), NBNodeCont::guessFringe(), NBLoadedSUMOTLDef::guessMinMaxDuration(), NBEdgeCont::guessSpecialLanes(), NBNodeCont::guessTLs(), GUIDialog_Options::GUIDialog_Options(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIApplicationWindow::handleEvent_SimulationLoaded(), NBNode::indirectLeftShape(), MSDevice_Vehroutes::init(), MSStopOut::init(), NLBuilder::init(), GUIRunThread::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSDevice_SSM::initEdgeFilter(), NBLoadedSUMOTLDef::initNeedsContRelation(), MSDevice_FCD::initOnce(), GNELoadThread::initOptions(), MsgHandler::initOutputOptions(), RandHelper::initRandGlobal(), NLBuilder::initRandomness(), MSRoutingEngine::initRouter(), GNEViewNetHelper::TestingMode::initTestingMode(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), MSRoutingEngine::initWeightUpdate(), GUIDialog_Options::InputBool::InputBool(), GUIDialog_Options::InputFilename::InputFilename(), GUIDialog_Options::InputFloat::InputFloat(), GUIDialog_Options::InputInt::InputInt(), GUIDialog_Options::InputIntVector::InputIntVector(), GUIDialog_Options::InputString::InputString(), GUIDialog_Options::InputStringVector::InputStringVector(), NBEdgeCont::insert(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), RandHelper::insertRandOptions(), NIImporter_OpenStreetMap::interpretTransportType(), GNEConnection::isAttributeEnabled(), NBLoadedSUMOTLDef::joinLogic(), NBNodeCont::joinNodeCluster(), NBNodeShapeComputer::joinSameDirectionEdges(), NBEdgeCont::joinTramEdges(), NIImporter_ArcView::load(), NIImporter_OpenStreetMap::load(), LIBSUMO_NAMESPACE::Simulation::load(), PHEMCEPHandler::Load(), GNEApplicationWindowHelper::GNEConfigHandler::loadConfig(), OptionsIO::loadConfiguration(), GUINet::loadEdgeData(), PCLoaderOSM::loadIfSet(), loadNet(), NIImporter_OpenDrive::loadNetwork(), GNEApplicationWindow::loadOptionOnStartup(), PCLoaderDlrNavteq::loadPOIFile(), MSNet::loadState(), main(), NBRailwayTopologyAnalyzer::makeAllBidi(), GNEJunction::mirrorXLeftHand(), MSPModel_Striping::PState::moveToNextLane(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSDevice_Battery::MSDevice_Battery(), MSDevice_Taxi::MSDevice_Taxi(), MSDispatch::MSDispatch(), MSNet::MSNet(), MSRailSignal::MSRailSignal(), MSStateHandler::MSStateHandler(), MSTransportableControl::MSTransportableControl(), MSVehicleControl::MSVehicleControl(), NBLoadedTLDef::myCompute(), MSTriggeredRerouter::myEndElement(), SUMORouteHandler::myEndElement(), NIImporter_OpenDrive::myStartElement(), NIImporter_SUMO::myStartElement(), PCNetProjectionLoader::myStartElement(), NEMALogic::NEMALogic(), NIImporter_VISUM::NIImporter_VISUM(), MSDevice_GLOSA::notifyEnter(), GNEViewNet::onCmdEditCrossingShape(), GNEViewNet::onCmdEditJunctionShape(), GNEViewNet::onCmdEditWalkingAreaShape(), GUIApplicationWindow::onCmdNetedit(), GNEApplicationWindow::onCmdNewNetwork(), GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdOpenForeign(), GNEApplicationWindow::onCmdOpenSUMOGUI(), GNEApplicationWindow::onCmdReload(), GNEApplicationWindow::onCmdReloadAdditionals(), GNEApplicationWindow::onCmdReloadDataElements(), GNEApplicationWindow::onCmdReloadDemandElements(), GNEApplicationWindow::onCmdReloadEdgeTypes(), GNEApplicationWindow::onCmdReloadSUMOConfig(), GNEApplicationWindow::onCmdReloadTLSPrograms(), GNEApplicationWindow::onCmdSaveAdditionals(), GNEApplicationWindow::onCmdSaveAdditionalsAs(), GNEApplicationWindow::onCmdSaveAsNetwork(), GNEApplicationWindow::onCmdSaveAsPlainXML(), GUIApplicationWindow::onCmdSaveConfig(), GNEApplicationWindow::onCmdSaveDataElements(), GNEApplicationWindow::onCmdSaveDataElementsAs(), GNEApplicationWindow::onCmdSaveDemandElements(), GNEApplicationWindow::onCmdSaveDemandElementsAs(), GNEApplicationWindow::onCmdSaveEdgeTypes(), GNEApplicationWindow::onCmdSaveEdgeTypesAs(), GNEApplicationWindow::onCmdSaveJoined(), GNEApplicationWindow::onCmdSaveNetwork(), GNEApplicationWindow::onCmdSaveSUMOConfig(), GNEApplicationWindow::onCmdSaveSUMOConfigAs(), GNEApplicationWindow::onCmdSaveTLSPrograms(), GNEApplicationWindow::onCmdSaveTLSProgramsAs(), GUIDialog_Options::InputString::onCmdSetOption(), GUIDialog_Options::InputStringVector::onCmdSetOption(), GUIDialog_Options::InputBool::onCmdSetOption(), GUIDialog_Options::InputInt::onCmdSetOption(), GUIDialog_Options::InputIntVector::onCmdSetOption(), GUIDialog_Options::InputFloat::onCmdSetOption(), GUIDialog_Options::InputFilename::onCmdSetOption(), GNETAZFrame::TAZChildDefaultParameters::onCmdSetZeroFringeProbabilities(), GNEApplicationWindow::onUpdReload(), GNEApplicationWindow::onUpdReloadAdditionals(), GNEApplicationWindow::onUpdReloadDataElements(), GNEApplicationWindow::onUpdReloadDemandElements(), GNEApplicationWindow::onUpdReloadEdgeTypes(), GNEApplicationWindow::onUpdReloadSUMOConfig(), GNEApplicationWindow::onUpdReloadTLSPrograms(), TraCIServer::openSocket(), NBRequest::oppositeLeftTurnConflict(), NIImporter_VISUM::parse_Connectors_legacy(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Edges(), NIImporter_VISUM::parse_stopPoints(), NIImporter_VISUM::parse_Turns(), MSRouteHandler::parseFromViaTo(), RORouteHandler::parseFromViaTo(), NIXMLConnectionsHandler::parseLaneBound(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), NIImporter_Vissim::postLoadBuild(), RORouteDef::preComputeCurrentRoute(), MSDevice_Taxi::prepareStop(), MSPerson::MSPersonStage_Walking::proceed(), ROLoader::processRoutes(), NIXMLNodesHandler::processTrafficLightDefinitions(), MSNet::quickReload(), MSDevice_Routing::rebuildRerouteCommand(), NBNodeCont::recheckGuessedTLS(), NBEdgeCont::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBNodeCont::remapIDs(), MSVehicleControl::removePending(), NBNodeCont::removeUnwishedNodes(), RORouteDef::repairCurrentRoute(), NBRailwayTopologyAnalyzer::repairTopology(), NIImporter_DlrNavteq::NodesHandler::report(), NIImporter_DlrNavteq::EdgesHandler::report(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), MSDevice_SSM::requestsTrajectories(), GNENet::restrictLane(), RODFNet::RODFNet(), ROMARouteHandler::ROMARouteHandler(), RouteCostCalculator< R, E, V >::RouteCostCalculator(), MSStageDriving::routeOutput(), MSStageTranship::routeOutput(), MSStageTrip::routeOutput(), MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), GUILoadThread::run(), GNELoadThread::run(), NBNetBuilder::runningNetedit(), PCPolyContainer::save(), PCPolyContainer::saveDlrTDP(), MSStateHandler::saveState(), MSBaseVehicle::saveState(), MSInsertionControl::saveState(), MSRailSignalConstraint::saveState(), MSTransportable::saveState(), GNEApplicationWindowHelper::saveSUMOConfig(), GNEViewNet::saveVisualizationSettings(), GNEEdge::setAttribute(), GNEEdge::setGeometry(), NLHandler::setLocation(), MSFrame::setMSGlobals(), GNEStoppingPlace::setStoppingPlaceGeometry(), GUIMainWindow::setWindowSizeAndPos(), GUIDialog_EditViewport::show(), signalHandler(), MSNet::simulationStep(), GNEEdge::smoothElevation(), GNEEdge::smoothShape(), NBEdgeCont::splitAt(), GUILane::splitAtSegments(), SUMOVTypeParameter::SUMOVTypeParameter(), NGNet::toNB(), NBNetBuilder::transformCoordinates(), NIXMLEdgesHandler::tryGetShape(), GNEBusStop::updateGeometry(), GNEChargingStation::updateGeometry(), GNEContainerStop::updateGeometry(), GNEParkingArea::updateGeometry(), NIImporter_OpenStreetMap::usableType(), MSDevice_SSM::useGeoCoords(), NBNodeTypeComputer::validateRailCrossings(), AGCity::workAllocation(), MSQueueExport::write(), MSFCDExport::write(), MSEmissionExport::write(), ODMatrix::write(), GNECalibratorFlow::writeAdditional(), NWWriter_SUMO::writeConnection(), ODMatrix::writeDefaultAttrs(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNEVehicle::writeDemandElement(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitters(), PlainXMLFormatter::writeHeader(), NWWriter_SUMO::writeInternalConnections(), NWWriter_OpenDrive::writeInternalEdge(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), MSDevice_SSM::writeLanesPositions(), NBRequest::writeLogic(), NWWriter_SUMO::writeNetwork(), MSNet::writeOutput(), MSDevice_Vehroutes::writeOutput(), MSDevice_SSM::writePositions(), MSNet::writeStatistics(), MSNet::writeSubstationOutput(), MSNet::writeSummaryOutput(), and PlainXMLFormatter::writeXMLHeader().

◆ getSecure()

Option * OptionsCont::getSecure ( const std::string &  name) const
private

Returns the named option.

If the named option does not exist, an InvalidArgument is thrown.

Parameters
[in]nameThe name of the option to return
Returns
The named option

Definition at line 161 of file OptionsCont.cpp.

References myDeprecatedSynonymes, mySubTopicEntries, myValues, and WRITE_WARNING.

Referenced by addDescription(), checkDependingSuboptions(), getBool(), getDescription(), getFloat(), getInt(), getIntVector(), getString(), getStringVector(), getSynonymes(), getTypeName(), getValueString(), isBool(), isUsableFileList(), isWriteable(), printHelp(), printHelpOnTopic(), set(), setDefault(), writeConfiguration(), and writeSchema().

Here is the caller graph for this function:

◆ getString()

std::string OptionsCont::getString ( const std::string &  name) const

Returns the string-value of the named option (only for Option_String)

This method returns the string-value of an existing string-option. If the named option does not exist or is not a string-option, an InvalidArgument is thrown.

Parameters
[in]nameThe name of the option to return the string-value of
Returns
The string-value of the named, existing string-option
Exceptions
InvalidArgumentIf the option does not exist or is not a string-option

Definition at line 196 of file OptionsCont.cpp.

References getSecure(), and Option::getString().

Referenced by NIImporter_SUMO::_loadNetwork(), NIXMLEdgesHandler::addEdge(), MSRouteHandler::addPersonTrip(), MSRouteHandler::addRideOrTransport(), NBEdgeCont::applyOptions(), NBNetBuilder::applyOptions(), NLBuilder::build(), MSTransportableDevice_Routing::buildDevices(), NGNode::buildNBNode(), NLBuilder::buildNet(), NLBuilder::buildRouteLoaderControl(), MSDevice_Routing::buildVehicleDevices(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), ROMAFrame::checkOptions(), MSFrame::checkOptions(), NBFrame::checkOptions(), NGFrame::checkOptions(), NIFrame::checkOptions(), NWFrame::checkOptions(), checkOptions(), SystemFrame::checkOptions(), MSDevice_Routing::checkOptions(), MSNet::closeBuilding(), NBNetBuilder::compute(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), computeRoutes(), GNENet::createEdge(), GNENet::createJunction(), GNENetHelper::AttributeCarriers::generateAdditionalID(), GNENetHelper::AttributeCarriers::generateDemandElementID(), RouteCostCalculator< R, E, V >::getCalculator(), HelpersPHEMlight5::getClassByName(), OutputDevice::getDevice(), OutputDevice::getDeviceByOption(), NGNet::getDistribution(), MSNet::getIntermodalRouter(), MSDevice_SSM::getMeasuresAndThresholds(), MSNet::getMesoType(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSNet::getRouterTT(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GUIApplicationWindow::handleEvent_SimulationLoaded(), NLBuilder::init(), GeoConvHelper::init(), MSLane::initCollisionOptions(), MSDevice_Taxi::initDispatch(), MSDevice_SSM::initEdgeFilter(), initNet(), MSDevice_FCD::initOnce(), GNELoadThread::initOptions(), MsgHandler::initOutputOptions(), MSRoutingEngine::initRouter(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), MSRoutingEngine::initWeightUpdate(), GUIDialog_Options::InputFilename::InputFilename(), GUIDialog_Options::InputString::InputString(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_ArcView::load(), NIImporter_Vissim::load(), PCLoaderArcView::load(), PCLoaderVisum::load(), PHEMCEPHandler::Load(), OptionsIO::loadConfiguration(), PCLoaderVisum::loadIfSet(), ODMatrix::loadMatrix(), loadNet(), ROLoader::loadNet(), NIImporter_ArcView::loadNetwork(), NIImporter_DlrNavteq::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), NIImporter_VISUM::loadNetwork(), PCLoaderDlrNavteq::loadPOIFile(), PCLoaderDlrNavteq::loadPolyFile(), main(), NBRailwayTopologyAnalyzer::makeAllBidi(), MSNet::MSNet(), MSPModel_Striping::MSPModel_Striping(), MSTransportableControl::MSTransportableControl(), PCLoaderXML::myStartElement(), PCTypeDefHandler::myStartElement(), GUIApplicationWindow::onCmdNetedit(), GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdOpenSUMOGUI(), GNEApplicationWindow::onCmdReloadAdditionals(), GNEApplicationWindow::onCmdReloadDataElements(), GNEApplicationWindow::onCmdReloadDemandElements(), GNEApplicationWindow::onCmdReloadEdgeTypes(), GNEApplicationWindow::onCmdReloadSUMOConfig(), GNEApplicationWindow::onCmdReloadTLSPrograms(), GNEApplicationWindow::onCmdSaveAdditionals(), GNEApplicationWindow::onCmdSaveAdditionalsAs(), GNEApplicationWindow::onCmdSaveAsPlainXML(), GNEApplicationWindow::onCmdSaveDataElements(), GNEApplicationWindow::onCmdSaveDataElementsAs(), GNEApplicationWindow::onCmdSaveDemandElements(), GNEApplicationWindow::onCmdSaveDemandElementsAs(), GNEApplicationWindow::onCmdSaveEdgeTypes(), GNEApplicationWindow::onCmdSaveEdgeTypesAs(), GNEApplicationWindow::onCmdSaveJoined(), GNEApplicationWindow::onCmdSaveNetwork(), GNEApplicationWindow::onCmdSaveSUMOConfig(), GNEApplicationWindow::onCmdSaveSUMOConfigAs(), GNEApplicationWindow::onCmdSaveTLSPrograms(), GNEApplicationWindow::onCmdSaveTLSProgramsAs(), RONet::openOutput(), ROLoader::openRoutes(), PCTypeMap::PCTypeMap(), processMetaOptions(), NIXMLNodesHandler::processTrafficLightDefinitions(), MSNet::quickReload(), readDetectorFlows(), NBNodeCont::removeUnwishedNodes(), MSStageTrip::routeOutput(), GUILoadThread::run(), GNELoadThread::run(), GNEApplicationWindowHelper::saveSUMOConfig(), GNEViewNet::saveVisualizationSettings(), MSFrame::setMSGlobals(), startComputation(), SUMOVTypeParameter::SUMOVTypeParameter(), NGNet::toNB(), SUMOVehicleParameter::write(), MSFCDExport::write(), MSEmissionExport::write(), ODMatrix::write(), NWWriter_DlrNavteq::writeConnectedLanes(), ODMatrix::writeDefaultAttrs(), NWWriter_XML::writeDistricts(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitters(), RONet::writeIntermodal(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_XML::writeNetwork(), NWFrame::writeNetwork(), NWWriter_Amitran::writeNetwork(), NWWriter_MATSim::writeNetwork(), NWWriter_OpenDrive::writeNetwork(), NWWriter_SUMO::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSNet::writeOutput(), NWWriter_XML::writeParkingAreas(), NWWriter_DlrNavteq::writeProhibitedManoeuvres(), NWWriter_XML::writePTLines(), NWWriter_XML::writePTStops(), NWWriter_XML::writeStreetSigns(), MSNet::writeSummaryOutput(), and NWWriter_DlrNavteq::writeTrafficSignals().

◆ getStringVector()

const StringVector & OptionsCont::getStringVector ( const std::string &  name) const

Returns the list of string-value of the named option (only for Option_StringVector)

This method returns the string-vector-value of an existing string-vector-option. If the named option does not exist or is not a string-vector-option, an InvalidArgument is thrown.

If the legacy-divider ';' is found within the string, a warning is generated. The retrieved string is only splitted at ','.

Parameters
[in]nameThe name of the option to return the string-vector-value of
Returns
The string-vector-value of the named, existing string-vector-option
Exceptions
InvalidArgumentIf the option does not exist or is not a string-vector-option
Todo:
Is it possible to retrieve a const-reference of the string?
See also
getString()

Definition at line 230 of file OptionsCont.cpp.

References getSecure(), and Option::getStringVector().

Referenced by NIImporter_SUMO::_loadNetwork(), NBEdgeCont::applyOptions(), NBTrafficLightLogicCont::applyOptions(), NLBuilder::build(), NLBuilder::buildNet(), NLBuilder::buildRouteLoaderControl(), MSDevice_FCD::buildShapeFilter(), MSFrame::checkOptions(), RORouteHandler::closeVType(), NBNetBuilder::compute(), NBRampsComputer::computeRamps(), computeRoutes(), NIImporter_OpenStreetMap::EdgesHandler::EdgesHandler(), MSDevice::equippedByDefaultAssignmentOptions(), MSNet::getIntermodalRouter(), getTurningDefaults(), NBEdgeCont::guessSpecialLanes(), NBNodeCont::guessTLs(), GNEApplicationWindow::handleEvent_NetworkLoaded(), MSDevice_FCD::initOnce(), GNEViewNetHelper::TestingMode::initTestingMode(), GUIDialog_Options::InputStringVector::InputStringVector(), isInStringVector(), isUsableFileList(), NIImporter_ArcView::load(), NIImporter_OpenStreetMap::load(), PCLoaderArcView::load(), NLBuilder::load(), NILoader::load(), NBHeightMapper::loadIfSet(), PCLoaderArcView::loadIfSet(), PCLoaderOSM::loadIfSet(), PCLoaderVisum::loadIfSet(), PCLoaderXML::loadIfSet(), loadJTRDefinitions(), ODMatrix::loadMatrix(), ROLoader::loadNet(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), PCLoaderDlrNavteq::loadPOIFiles(), PCLoaderDlrNavteq::loadPolyFiles(), ODMatrix::loadRoutes(), ROLoader::loadWeights(), NILoader::loadXML(), main(), MSStateHandler::MSStateHandler(), ROLoader::openTypedRoutes(), MSNet::quickReload(), readDetectorFlows(), readDetectors(), NBNodeCont::removeUnwishedNodes(), RODFNet::RODFNet(), ROMARouteHandler::ROMARouteHandler(), GUILoadThread::run(), GUIMainWindow::setWindowSizeAndPos(), and MSFCDExport::write().

◆ getSubTopics()

const std::vector< std::string > & OptionsCont::getSubTopics ( ) const
inline

return the list of subtopics

Definition at line 641 of file OptionsCont.h.

References mySubTopics.

Referenced by GUIDialog_Options::GUIDialog_Options().

Here is the caller graph for this function:

◆ getSubTopicsEntries()

std::vector< std::string > OptionsCont::getSubTopicsEntries ( const std::string &  subtopic) const
inline

return the list of entries for the given subtopic

Definition at line 647 of file OptionsCont.h.

References mySubTopicEntries.

Referenced by GUIDialog_Options::GUIDialog_Options().

Here is the caller graph for this function:

◆ getSynonymes()

std::vector< std::string > OptionsCont::getSynonymes ( const std::string &  name) const

Returns the synonymes of an option name.

The named option is extracted, first. An InvalidArgument is thrown if it does not exist. Otherwise, other names for the named option are searched and returned (the original name is not in the list).

Parameters
[in]nameThe name of the option to return synonymes of
Returns
List of existing synonymes
Exceptions
InvalidArgumentIf the named option does not exist

Definition at line 280 of file OptionsCont.cpp.

References getSecure(), and myValues.

Referenced by checkDependingSuboptions(), printHelp(), printHelpOnTopic(), reportDoubleSetting(), and writeConfiguration().

Here is the caller graph for this function:

◆ getTypeName()

std::string OptionsCont::getTypeName ( const std::string  name)
inline

return the type name for the given option

Definition at line 657 of file OptionsCont.h.

References getSecure(), and Option::getTypeName().

Referenced by GUIDialog_Options::GUIDialog_Options().

Here is the caller graph for this function:

◆ getValueString()

std::string OptionsCont::getValueString ( const std::string &  name) const

Returns the string-value of the named option (all options)

This method returns the string-value of an existing option. If the named option does not exist, an InvalidArgument is thrown.

Parameters
[in]nameThe name of the option to return the string-value of
Returns
The string-value of the named, existing option
Exceptions
InvalidArgumentIf the option does not exist

Definition at line 189 of file OptionsCont.cpp.

References getSecure(), and Option::getValueString().

Referenced by NBEdgeCont::applyOptions(), NBFrame::checkOptions(), MSNet::getIntermodalRouter(), LIBSUMO_NAMESPACE::Simulation::getOption(), MSDevice::getStringParam(), and printHelp().

Here is the caller graph for this function:

◆ isBool()

bool OptionsCont::isBool ( const std::string &  name) const

Returns the information whether the option is a boolean option.

The option is retrieved from the container, first, what may cause an InvalidArgument exception if it is not known. Otherwise, this option's isBool-method is called.

Parameters
[in]nameThe name of the option to check
Returns
Whether the existing named option is a bool option
Exceptions
InvalidArgumentIf the option does not exist

Definition at line 439 of file OptionsCont.cpp.

References getSecure(), and Option::isBool().

Referenced by OptionsParser::check().

Here is the caller graph for this function:

◆ isDefault()

bool OptionsCont::isDefault ( const std::string &  name) const

Returns the information whether the named option has still the default value.

The named option is tried to be retrieved from the container. If it does not exist, an InvalidArgument is thrown. If it could be retrieved, the information whether the option still has the default value is returned.

An option "is default" if no value has been set from the command line / the configuration file.

Returns
true if the option still has the default value
Exceptions
InvalidArgumentIf the named option is not known

Definition at line 151 of file OptionsCont.cpp.

References myValues.

Referenced by MSRoutingEngine::_initEdgeWeights(), NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NLBuilder::build(), GNETLSEditorFrame::TLSPhases::buildDefaultPhase(), buildNetwork(), MSDevice_Routing::buildVehicleDevices(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), MSFrame::checkOptions(), NBFrame::checkOptions(), NIFrame::checkOptions(), NWFrame::checkOptions(), SystemFrame::checkOptions(), MSDevice_Routing::checkOptions(), NBTrafficLightDefinition::compute(), NBNetBuilder::compute(), computeRoutes(), NIImporter_OpenDrive::computeShapes(), MSDevice_Emissions::generateOutput(), HelpersPHEMlight5::getClassByName(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), GUIApplicationWindow::handleEvent_SimulationLoaded(), NLBuilder::init(), GeoConvHelper::init(), NIImporter_DlrNavteq::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), main(), GNEApplicationWindow::onCmdSaveNetwork(), ROLoader::processRoutes(), NBEdgeCont::remapIDs(), NBNodeCont::remapIDs(), MSDevice_SSM::requestsTrajectories(), GUILoadThread::run(), GNELoadThread::run(), MSFrame::setMSGlobals(), MSDevice_SSM::useGeoCoords(), RODFDetectorCon::writeEmitters(), MSDevice_SSM::writeLanesPositions(), NWWriter_SUMO::writeNetwork(), MSDevice_Vehroutes::writeOutput(), and MSDevice_SSM::writePositions().

Here is the caller graph for this function:

◆ isInStringVector()

bool OptionsCont::isInStringVector ( const std::string &  optionName,
const std::string &  itemName 
) const

Returns the named option is a list of string values containing the specified item.

If the named option is not set, false is returned. Otherwise, the string-vector of this option is retrieved using getStringVector what may throw an InvalidArgument exception if the named option is not a string option or not existing at all.

The given itemName is searched in the obtained string-vector and the method returns whether it is stored in the list or not.

Parameters
[in]optionNameThe name of the option to evaluate entries of
[in]itemNameThe item to be searched for in the entries of the named option
Returns
Whether the named item is set in the named string-option
Exceptions
InvalidArgumentIf the option does not exist or is not a string-option
See also
getStringVector()
Todo:
Try to optimize - at each call, the vector is rebuilt

Definition at line 950 of file OptionsCont.cpp.

References getStringVector(), and isSet().

Referenced by NBNodeTypeComputer::computeNodeTypes(), PCLoaderOSM::loadIfSet(), and PCLoaderXML::myStartElement().

Here is the caller graph for this function:

◆ isSet()

bool OptionsCont::isSet ( const std::string &  name,
bool  failOnNonExistant = true 
) const

Returns the information whether the named option is set.

The named option is tried to be retrieved from the container. If it does not exist, an InvalidArgument is thrown. If it could be retrieved, the information whether the option has a value stored is returned.

An option "is set" if a default value was supplied or a value has been set from the command line / the configuration file.

Parameters
[in]nameThe name of the option to check
[in]failOnNonExistantWhether asking for an unregistered option should trigger an exception
Returns
true if the option has a valid value, false otherwise
Exceptions
InvalidArgumentIf the named option is not known

Definition at line 137 of file OptionsCont.cpp.

References myValues.

Referenced by MSRoutingEngine::adaptEdgeEfforts(), NBParkingCont::addEdges2Keep(), NBEdgeCont::applyOptions(), NBTrafficLightLogicCont::applyOptions(), NLBuilder::build(), MSTransportableDevice_FCD::buildDevices(), NGNode::buildNBNode(), NLBuilder::buildNet(), NLBuilder::buildRouteLoaderControl(), MSDevice_FCD::buildShapeFilter(), MSDevice_Emissions::buildVehicleDevices(), MSDevice_FCD::buildVehicleDevices(), MSDevice_Tripinfo::buildVehicleDevices(), MSDevice_Vehroutes::buildVehicleDevices(), RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), ROMAFrame::checkOptions(), MSFrame::checkOptions(), NBFrame::checkOptions(), NGFrame::checkOptions(), NIFrame::checkOptions(), NWFrame::checkOptions(), checkOptions(), ROFrame::checkOptions(), MSTransportableControl::checkWaiting(), NBNetBuilder::compute(), GNENet::computeAndUpdate(), NBNodeShapeComputer::computeNodeShapeDefault(), NBRampsComputer::computeRamps(), computeRoutes(), SUMOVehicleParameter::defaultOptionOverrides(), MSDevice::equippedByDefaultAssignmentOptions(), MSTransportableControl::erase(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSDevice_Tripinfo::generateOutputForUnfinished(), OutputDevice::getDevice(), MSDevice::getStringParam(), NBNodeCont::guessTLs(), GNEApplicationWindow::handleEvent_NetworkLoaded(), MSDevice_Vehroutes::init(), MSAbstractLaneChangeModel::initGlobalOptions(), initNet(), MSDevice_FCD::initOnce(), GNELoadThread::initOptions(), MsgHandler::initOutputOptions(), MSRoutingEngine::initRouter(), NIImporter_OpenStreetMap::insertEdge(), isInStringVector(), NBNodeShapeComputer::joinSameDirectionEdges(), NIImporter_ArcView::load(), NIImporter_OpenStreetMap::load(), NILoader::load(), OptionsIO::loadConfiguration(), NBHeightMapper::loadIfSet(), PCLoaderArcView::loadIfSet(), PCLoaderDlrNavteq::loadIfSet(), PCLoaderOSM::loadIfSet(), PCLoaderVisum::loadIfSet(), PCLoaderXML::loadIfSet(), loadJTRDefinitions(), ROLoader::loadNet(), NIImporter_ArcView::loadNetwork(), NIImporter_DlrNavteq::loadNetwork(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), NIImporter_VISUM::loadNetwork(), NIImporter_Vissim::loadNetwork(), main(), MSTransportableControl::MSTransportableControl(), GUIDialog_Options::InputBool::onCmdSetOption(), RONet::openOutput(), ROLoader::openTypedRoutes(), processMetaOptions(), readDetectorFlows(), readDetectors(), MSVehicleControl::removePending(), NBNodeCont::removeUnwishedNodes(), GUILoadThread::run(), GNELoadThread::run(), MSFrame::setMSGlobals(), GUIMainWindow::setWindowSizeAndPos(), startComputation(), SUMOVehicleParameter::write(), MSFCDExport::write(), ODMatrix::write(), ODMatrix::writeDefaultAttrs(), RODFDetector::writeEmitterDefinition(), RONet::writeIntermodal(), NWWriter_XML::writeNetwork(), NWFrame::writeNetwork(), NWWriter_Amitran::writeNetwork(), NWWriter_DlrNavteq::writeNetwork(), NWWriter_MATSim::writeNetwork(), NWWriter_OpenDrive::writeNetwork(), NWWriter_SUMO::writeNetwork(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSNet::writeOutput(), NWWriter_DlrNavteq::writeProhibitedManoeuvres(), and MSNet::writeSummaryOutput().

◆ isUsableFileList()

bool OptionsCont::isUsableFileList ( const std::string &  name) const

Checks whether the named option is usable as a file list (with at least a single file)

The method returns true, if the named option is set with entries containing names of accessable files.

Throw an InvalidArgument exception if the option is not known. If the option is not set, false is returned. Also, if the list is empty (conatins delimiters only) or if one of the named files (obtained using getStringVector) does not exist, false is returned. Additionally, an error is sent to MsgHandler in both cases.

In the case two delimiters were placed in the option value directly after each other, a warning is generated.

Parameters
[in]nameThe name of the option to check
Returns
Whether the option contains names of files which can be accessed (for reading)
Exceptions
InvalidArgumentIf the option does not exist or is not a string-option

Definition at line 363 of file OptionsCont.cpp.

References getSecure(), getStringVector(), FileHelpers::isReadable(), Option::isSet(), strict_fstream::strerror(), TL, WRITE_ERROR, and WRITE_WARNING.

Referenced by NIImporter_SUMO::_loadNetwork(), NLBuilder::build(), MSFrame::checkOptions(), NLBuilder::load(), NIImporter_OpenDrive::loadNetwork(), ROLoader::loadWeights(), main(), ROLoader::openTypedRoutes(), and GUILoadThread::run().

Here is the caller graph for this function:

◆ isWriteable()

bool OptionsCont::isWriteable ( const std::string &  name)

Returns the information whether the named option may be set.

An option is writable after initialisation, but as soon as it gets set, it is no longer writeable. This method returns whether the named option is writeable. If the named option is not known, an InvalidArgument is thrown.

Parameters
[in]nameThe name of the option to check
Returns
Whether the value can be set
Exceptions
InvalidArgumentIf the option does not exist

Definition at line 454 of file OptionsCont.cpp.

References getSecure(), and Option::isWriteable().

Referenced by NIImporter_SUMO::_loadNetwork(), NIFrame::checkOptions(), and OptionsLoader::setSecure().

Here is the caller graph for this function:

◆ operator=()

OptionsCont & OptionsCont::operator= ( const OptionsCont s)
private

invalid assignment operator

◆ printHelp()

void OptionsCont::printHelp ( std::ostream &  os)

Prints the help.

Parameters
[in]osThe stream to write the help into

Definition at line 669 of file OptionsCont.cpp.

References getSecure(), getSynonymes(), Option::getTypeName(), getValueString(), Option::isBool(), myAdditionalMessage, myAppDescription, myAppName, myCallExamples, myDeprecatedSynonymes, mySubTopicEntries, mySubTopics, printHelpOnTopic(), splitLines(), and StringUtils::to_lower_case().

Referenced by processMetaOptions().

Here is the caller graph for this function:

◆ printHelpOnTopic()

void OptionsCont::printHelpOnTopic ( const std::string &  topic,
int  tooLarge,
int  maxSize,
std::ostream &  os 
)

Prints help on the given topic.

Parameters
[in]topicThe topic name
[in]osThe stream to write the help into

Definition at line 749 of file OptionsCont.cpp.

References Option::getDescription(), getSecure(), getSynonymes(), Option::getTypeName(), Option::isBool(), myDeprecatedSynonymes, mySubTopicEntries, and splitLines().

Referenced by printHelp().

Here is the caller graph for this function:

◆ processMetaOptions()

bool OptionsCont::processMetaOptions ( bool  missingOptions)

Checks for help and configuration output, returns whether we should exit.

Returns false if no error was detected and the application may be executed (at least from this point of view). If missingOptions is true, the user is informed that they should be supplied (returns true). Otherwise it is checked whether help shall be printed what is done if so, returning true. Also, it is checked whether the set options shall be printed and the configuration template or the current configuration shall be written.

This method throws a ProcessError if the configuration should be saved, but the file is not accessable. An error message is supplied.

Parameters
[in]missingOptionsWhether no options have been given
Returns
Whether the application shall stop
Exceptions
ProcessErrorIf the configuration file could not be saved

Definition at line 562 of file OptionsCont.cpp.

References exists(), getBool(), getString(), isSet(), myCopyrightNotices, myFullName, myWriteLicense, printHelp(), StringUtils::transcodeToLocal(), WRITE_MESSAGE, writeConfiguration(), and writeSchema().

Referenced by NLBuilder::init(), and main().

Here is the caller graph for this function:

◆ relocateFiles()

void OptionsCont::relocateFiles ( const std::string &  configuration) const

Modifies file name options according to the configuration path.

If the configuration path given is a relative one all filenames inside are adapted such that they refer to the correct location.

Parameters
[in]configurationThe path to the configuration file

Definition at line 333 of file OptionsCont.cpp.

References FileHelpers::checkForRelativity(), StringTokenizer::getVector(), joinToString(), myAddresses, toString(), StringUtils::urlDecode(), and WRITE_WARNING.

Referenced by OptionsIO::loadConfiguration().

Here is the caller graph for this function:

◆ reportDoubleSetting()

void OptionsCont::reportDoubleSetting ( const std::string &  arg) const
private

Reports an error that the option has already been set.

Using the given option name, an error string is generated and reported to MsgHandler-error instance.

Parameters
[in]nameThe name of the option that was already set

Definition at line 413 of file OptionsCont.cpp.

References getSynonymes(), and WRITE_ERROR.

Referenced by set().

Here is the caller graph for this function:

◆ resetWritable()

void OptionsCont::resetWritable ( )

Resets all options to be writeable.

An option is writable after initialisation, but as soon as it gets set, it is no longer writeable. This method resets the writable-flag of all known options.

Definition at line 446 of file OptionsCont.cpp.

References myAddresses.

Referenced by NBNetBuilder::compute(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GNELoadThread::initOptions(), GNEApplicationWindowHelper::GNEConfigHandler::loadConfig(), OptionsIO::loadConfiguration(), main(), GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdSaveAdditionals(), GNEApplicationWindow::onCmdSaveAdditionalsAs(), GNEApplicationWindow::onCmdSaveAsNetwork(), GNEApplicationWindow::onCmdSaveDataElements(), GNEApplicationWindow::onCmdSaveDataElementsAs(), GNEApplicationWindow::onCmdSaveDemandElements(), GNEApplicationWindow::onCmdSaveDemandElementsAs(), GNEApplicationWindow::onCmdSaveEdgeTypes(), GNEApplicationWindow::onCmdSaveSUMOConfig(), GNEApplicationWindow::onCmdSaveSUMOConfigAs(), GNEApplicationWindow::onCmdSaveTLSPrograms(), GNEApplicationWindow::onCmdSaveTLSProgramsAs(), GUIDialog_Options::InputString::onCmdSetOption(), GUIDialog_Options::InputStringVector::onCmdSetOption(), GUIDialog_Options::InputBool::onCmdSetOption(), GUIDialog_Options::InputInt::onCmdSetOption(), GUIDialog_Options::InputIntVector::onCmdSetOption(), GUIDialog_Options::InputFloat::onCmdSetOption(), GUIDialog_Options::InputFilename::onCmdSetOption(), GUILoadThread::run(), GNEEdge::setAttribute(), GNELoadThread::setDefaultOptions(), and NWWriter_SUMO::writeNetwork().

Here is the caller graph for this function:

◆ set()

bool OptionsCont::set ( const std::string &  name,
const std::string &  value,
const bool  append = false 
)

Sets the given value for the named option.

The option is retrieved from the container, first, what yields in a InvalidArgument exception for not known options.

If the option is not writable (was set before), an error is generated using reportDoubleSetting, and false is returned. Otherwise, the option is told to set the given value using Option::set. Possible problems herein are caught and reported to the error-handler, yielding in returning false.

If the new value could be set, true is returned.

Parameters
[in]nameThe name of the option to set
[in]valueThe value to set
Returns
Whether the value could be set
Exceptions
InvalidArgumentIf the option does not exist
See also
reportDoubleSetting
Option::set(const std::string &)

Definition at line 237 of file OptionsCont.cpp.

References OptionsIO::getLoadTime(), getSecure(), Option::isWriteable(), reportDoubleSetting(), Option::set(), StringUtils::substituteEnvironment(), and WRITE_ERROR.

Referenced by NIImporter_SUMO::_loadNetwork(), NIImporter_SUMO::addEdge(), NIXMLEdgesHandler::addEdge(), NLBuilder::build(), OptionsParser::check(), RODUAFrame::checkOptions(), NBFrame::checkOptions(), NIFrame::checkOptions(), NBNetBuilder::compute(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNEApplicationWindow::handleEvent_NetworkLoaded(), GNELoadThread::initOptions(), GNEApplicationWindowHelper::GNEConfigHandler::loadConfig(), GNEApplicationWindow::loadOptionOnStartup(), main(), GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEApplicationWindow::onCmdOpenForeign(), GNEApplicationWindow::onCmdSaveAdditionals(), GNEApplicationWindow::onCmdSaveAdditionalsAs(), GNEApplicationWindow::onCmdSaveAsNetwork(), GNEApplicationWindow::onCmdSaveDataElements(), GNEApplicationWindow::onCmdSaveDataElementsAs(), GNEApplicationWindow::onCmdSaveDemandElements(), GNEApplicationWindow::onCmdSaveDemandElementsAs(), GNEApplicationWindow::onCmdSaveEdgeTypes(), GNEApplicationWindow::onCmdSaveEdgeTypesAs(), GNEApplicationWindow::onCmdSaveSUMOConfig(), GNEApplicationWindow::onCmdSaveSUMOConfigAs(), GNEApplicationWindow::onCmdSaveTLSPrograms(), GNEApplicationWindow::onCmdSaveTLSProgramsAs(), GUIDialog_Options::InputString::onCmdSetOption(), GUIDialog_Options::InputStringVector::onCmdSetOption(), GUIDialog_Options::InputBool::onCmdSetOption(), GUIDialog_Options::InputInt::onCmdSetOption(), GUIDialog_Options::InputIntVector::onCmdSetOption(), GUIDialog_Options::InputFloat::onCmdSetOption(), GUIDialog_Options::InputFilename::onCmdSetOption(), OptionsParser::processNonBooleanSingleSwitch(), GNEEdge::setAttribute(), setByRootElement(), setDefault(), GNELoadThread::setDefaultOptions(), OptionsLoader::setSecure(), and NWWriter_SUMO::writeNetwork().

Here is the caller graph for this function:

◆ setAdditionalHelpMessage()

void OptionsCont::setAdditionalHelpMessage ( const std::string &  add)

Sets an additional message to be printed at the begin of the help screen.

Parameters
[in]exampleSome additional information about how to use the application

Definition at line 506 of file OptionsCont.cpp.

References myAdditionalMessage.

Referenced by fillOptions().

Here is the caller graph for this function:

◆ setApplicationDescription()

void OptionsCont::setApplicationDescription ( const std::string &  appDesc)

Sets the application description.

Parameters
[in]appDescA description of the application

Definition at line 494 of file OptionsCont.cpp.

References myAppDescription.

Referenced by main().

Here is the caller graph for this function:

◆ setApplicationName()

void OptionsCont::setApplicationName ( const std::string &  appName,
const std::string &  fullName 
)

Sets the application name.

Parameters
[in]nameThe name of the excutable
[in]vThe name of the executable with version information

Definition at line 486 of file OptionsCont.cpp.

References myAppName, and myFullName.

Referenced by LIBSUMO_NAMESPACE::Simulation::load(), and main().

Here is the caller graph for this function:

◆ setByRootElement()

bool OptionsCont::setByRootElement ( const std::string &  name,
const std::string &  value 
)

Sets the given value for the option which can handle the given XML root.

The option is retrieved from the container, which yields in an InvalidArgument exception if no option is registered for the XML root. Then it uses the standard set method.

Parameters
[in]rootThe name of the XML root element to look for
[in]valueThe value to set
Returns
Whether the value could be set
Exceptions
InvalidArgumentIf the root element was not registered or the value could not be set
See also
OptionsCont::set(const std::string &, const std::string &)

Definition at line 268 of file OptionsCont.cpp.

References myXMLDefaults, and set().

Referenced by GUILoadThread::run().

Here is the caller graph for this function:

◆ setDefault()

bool OptionsCont::setDefault ( const std::string &  name,
const std::string &  value 
)

Sets the given value for the named option as new default value.

The option is retrieved from the container, first, what yields in a InvalidArgument exception for not known options.

If the option is not writable (was set before), an error is generated using reportDoubleSetting, and false is returned. Otherwise, the option is told to set the given value using Option::set. Possible problems herein are caught and reported to the error-handler, yielding in returning false.

If the new value could be set, true is returned.

Parameters
[in]nameThe name of the option to set
[in]valueThe value to set
Returns
Whether the value could be set
Exceptions
InvalidArgumentIf the option does not exist
See also
reportDoubleSetting
Option::set(const std::string &)

Definition at line 257 of file OptionsCont.cpp.

References getSecure(), Option::isWriteable(), Option::resetDefault(), and set().

Referenced by RODUAFrame::checkOptions(), ROJTRFrame::checkOptions(), MSFrame::checkOptions(), NBFrame::checkOptions(), NIFrame::checkOptions(), NWFrame::checkOptions(), SystemFrame::checkOptions(), main(), GUILoadThread::run(), and GNELoadThread::run().

Here is the caller graph for this function:

◆ splitLines()

void OptionsCont::splitLines ( std::ostream &  os,
std::string  what,
int  offset,
int  nextOffset 
)
private

Writes the given string 'formatted'.

The given string is split so that no word-wrapping occurs at line ends. The text is wrapped at ';' or ' '.

Parameters
[in]osThe stream to write the text into
[in]whatThe text to write
[in]offset?
[in]nextOffset?
Todo:
Describe parameter

Definition at line 531 of file OptionsCont.cpp.

Referenced by printHelp(), and printHelpOnTopic().

Here is the caller graph for this function:

◆ writeConfiguration()

void OptionsCont::writeConfiguration ( std::ostream &  os,
const bool  filled,
const bool  complete,
const bool  addComments,
const std::string &  relativeTo = "",
const bool  forceRelative = false,
const bool  inComment = false 
) const

Writes the configuration.

The configuration is written as XML into the given stream, allowing to reload it on a next run.

Parameters
[in]osThe stream to write the configuration into
[in]filledWhether only set (and not default) options shall be written
[in]completeWhether all options shall be written
[in]addCommentsWhether comments (option descriptions) shall be written
[in]inCommentWhether – in input shall be converted to &#45;&#45; (semantically equivalent but allowed in XML comments)

Definition at line 789 of file OptionsCont.cpp.

References StringUtils::escapeXML(), FileHelpers::fixRelative(), getBool(), Option::getDescription(), getSecure(), getSynonymes(), Option::getTypeName(), Option::getValueString(), StringTokenizer::getVector(), Option::isDefault(), Option::isFileName(), Option::isSet(), joinToString(), myAppName, mySubTopicEntries, mySubTopics, StringUtils::to_lower_case(), StringUtils::urlEncode(), and writeXMLHeader().

Referenced by GUIApplicationWindow::onCmdSaveConfig(), processMetaOptions(), PCPolyContainer::writeDlrTDPHeader(), NWWriter_DlrNavteq::writeHeader(), and writeXMLHeader().

Here is the caller graph for this function:

◆ writeSchema()

void OptionsCont::writeSchema ( std::ostream &  os)

Writes the xml schema for the configuration.

The schema for the configuration is written as XML into the given stream, allowing to validate the configuration against.

Parameters
[in]osThe stream to write the schema into

Definition at line 874 of file OptionsCont.cpp.

References getSecure(), Option::getTypeName(), mySubTopicEntries, mySubTopics, StringUtils::to_lower_case(), and writeXMLHeader().

Referenced by processMetaOptions().

Here is the caller graph for this function:

◆ writeXMLHeader()

void OptionsCont::writeXMLHeader ( std::ostream &  os,
const bool  includeConfig = true 
) const

Writes a standard XML header, including the configuration.

The header consists of the xml-declaration with encoding as defined by SUMOSAXAttributes::ENCODING, followed by a note which contains the current date and time and the application configuration (set values).

Parameters
[in]osThe stream to write the header into

Definition at line 922 of file OptionsCont.cpp.

References SUMOSAXAttributes::ENCODING, myFullName, myWriteLicense, and writeConfiguration().

Referenced by writeConfiguration(), PlainXMLFormatter::writeHeader(), writeSchema(), and PlainXMLFormatter::writeXMLHeader().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const OptionsCont oc 
)
friend

Output operator.

Generates the output used when current option values shall be printed.

Parameters
[in]osThe stream to write into
[in]ocThe options to print
Returns
The stream to write into

Definition at line 298 of file OptionsCont.cpp.

Field Documentation

◆ myAdditionalMessage

std::string OptionsCont::myAdditionalMessage
private

Definition at line 729 of file OptionsCont.h.

Referenced by printHelp(), and setAdditionalHelpMessage().

◆ myAddresses

ItemAddressContType OptionsCont::myAddresses
private

storage for option-addresses

Definition at line 723 of file OptionsCont.h.

Referenced by clear(), doRegister(), relocateFiles(), and resetWritable().

◆ myAppDescription

std::string OptionsCont::myAppDescription
private

Definition at line 729 of file OptionsCont.h.

Referenced by printHelp(), and setApplicationDescription().

◆ myAppName

std::string OptionsCont::myAppName
private

some information on the application

Definition at line 729 of file OptionsCont.h.

Referenced by printHelp(), setApplicationName(), and writeConfiguration().

◆ myCallExamples

std::vector< std::pair<std::string, std::string> > OptionsCont::myCallExamples
private

list of call examples

Definition at line 732 of file OptionsCont.h.

Referenced by addCallExample(), and printHelp().

◆ myCopyrightNotices

std::vector<std::string> OptionsCont::myCopyrightNotices
private

◆ myDeprecatedSynonymes

std::map<std::string, bool> OptionsCont::myDeprecatedSynonymes
mutableprivate

A map from deprecated options to a bool indicating whether we warned about deprecation.

Definition at line 744 of file OptionsCont.h.

Referenced by addSynonyme(), getSecure(), printHelp(), and printHelpOnTopic().

◆ myFullName

std::string OptionsCont::myFullName
private

Definition at line 729 of file OptionsCont.h.

Referenced by getFullName(), processMetaOptions(), setApplicationName(), and writeXMLHeader().

◆ myOptions

OptionsCont OptionsCont::myOptions
staticprivate

The static options container used.

Definition at line 714 of file OptionsCont.h.

Referenced by getOptions().

◆ mySubTopicEntries

std::map<std::string, std::vector<std::string> > OptionsCont::mySubTopicEntries
private

◆ mySubTopics

std::vector<std::string> OptionsCont::mySubTopics
private

lists of option subtopics and copyright notices

Definition at line 735 of file OptionsCont.h.

Referenced by addDescription(), addOptionSubTopic(), clear(), getSubTopics(), printHelp(), writeConfiguration(), and writeSchema().

◆ myValues

KnownContType OptionsCont::myValues
private

access map of options

Definition at line 726 of file OptionsCont.h.

Referenced by addSynonyme(), checkDependingSuboptions(), clear(), doRegister(), exists(), getSecure(), getSynonymes(), isDefault(), and isSet().

◆ myWriteLicense

bool OptionsCont::myWriteLicense
private

Information whether we should always include license information in file headers.

Definition at line 747 of file OptionsCont.h.

Referenced by processMetaOptions(), and writeXMLHeader().

◆ myXMLDefaults

std::map<std::string, std::string> OptionsCont::myXMLDefaults
private

A map from XML root element to option.

Definition at line 741 of file OptionsCont.h.

Referenced by addXMLDefault(), and setByRootElement().


The documentation for this class was generated from the following files: