 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
54 oc.
addCallExample(
"-c <CONFIGURATION>",
"generate net with options read from file");
55 oc.
addCallExample(
"-n ./nodes.xml -e ./edges.xml -v -t ./owntypes.xml",
56 "generate net with given nodes, edges, and edge types doing verbose output");
97 main(
int argc,
char** argv) {
113 if (oc.
isDefault(
"aggregate-warnings")) {
114 oc.
set(
"aggregate-warnings",
"5");
130 if (oc.
getBool(
"ignore-errors")) {
144 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
150 }
catch (
const std::exception& e) {
151 if (std::string(e.what()) != std::string(
"")) {
165 std::cout <<
"Success." << std::endl;
static void clear()
delete all stored distributions
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
static void addConfigurationOptions(OptionsCont &oc)
Adds configuration options to the given container.
static void close()
Closes all of an applications subsystems.
static void initOutputOptions()
init output options
Instance responsible for building networks.
bool set(const std::string &name, const std::string &value)
Sets the given value for the named option.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static OptionsCont & getOptions()
Retrieves the options.
static void fillOptions(bool forNetgen)
Inserts options used by the network writer.
static bool init(OptionsCont &oc)
Initialises the processing and the final instance using the given options.
static void addReportOptions(OptionsCont &oc)
Adds reporting options to the given container.
virtual void clear()
Clears information whether an error occurred previously.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network stored in the given net builder.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.
static void setValidation(const std::string &validationScheme, const std::string &netValidationScheme)
Enables or disables validation.
static void fillOptions(bool forNetedit=false)
Inserts options used by the network importer and network building modules.
static void addProjectionOptions(OptionsCont &oc)
Adds projection options to the given container.
void applyOptions(OptionsCont &oc)
Initialises the storage by applying given options.
static void init()
Initialises the xml-subsystem.
A storage for options typed value containers)
static void fillOptions(bool forNetgen)
Inserts options used by the network converter.
bool isDefault(const std::string &name) const
Returns the information whether the named option has still the default value.
void load(OptionsCont &oc)
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
static void initRandGlobal(std::mt19937 *which=0)
Reads the given random number options and initialises the random number generator in accordance.
static void getOptions(const bool commandLineOnly=false)
Parses the command line arguments and loads the configuration.
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
void addCallExample(const std::string &example, const std::string &desc)
Add a call example.
static void setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
void compute(OptionsCont &oc, const std::set< std::string > &explicitTurnarounds=std::set< std::string >(), bool mayAddOrRemove=true)
Performs the network building steps.
static void insertRandOptions()
Initialises the given options container with random number options.
static bool checkOptions()
checks shared options and sets StdDefs
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
int main(int argc, char **argv)