55 #ifdef CHECK_MEMORY_LEAKS 57 #endif // CHECK_MEMORY_LEAKS 66 oc.
addCallExample(
"-c <CONFIGURATION>",
"generate net with options read from file");
67 oc.
addCallExample(
"-n ./nodes.xml -e ./edges.xml -v -t ./owntypes.xml",
68 "generate net with given nodes, edges, and edge types doing verbose output");
133 if (oc.
getBool(
"ignore-errors")) {
147 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
153 }
catch (
const std::exception& e) {
154 if (std::string(e.what()) != std::string(
"")) {
168 std::cout <<
"Success." << std::endl;
static void init()
Initialises the xml-subsystem.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
static void insertRandOptions()
Initialises the given options container with random number options.
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.
static void getOptions(const bool commandLineOnly=false)
Parses the command line arguments and loads the configuration.
static void addReportOptions(OptionsCont &oc)
Adds reporting options to the given container.
static void setValidation(const std::string &validationScheme, const std::string &netValidationScheme)
Enables or disables validation.
void compute(OptionsCont &oc, const std::set< std::string > &explicitTurnarounds=std::set< std::string >(), bool removeElements=true)
Performs the network building steps.
void addCallExample(const std::string &example, const std::string &desc)
Add a call example.
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
static void fillOptions()
Inserts options used by the network importer and network building modules.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static void close()
Closes all of an applications subsystems.
static void addConfigurationOptions(OptionsCont &oc)
Adds configuration options to the given container.
int main(int argc, char **argv)
static void setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
static OptionsCont & getOptions()
Retrieves the options.
static void initRandGlobal(MTRand *which=0)
Reads the given random number options and initialises the random number generator in accordance...
void applyOptions(OptionsCont &oc)
Initialises the storage by applying given options.
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
static bool init(OptionsCont &oc)
Initialises the processing and the final instance using the given options.
void load(OptionsCont &oc)
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
static bool checkOptions()
Checks set options from the OptionsCont-singleton for being valid.
static void addProjectionOptions(OptionsCont &oc)
Adds projection options to the given container.
static void writeNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Writes the network stored in the given net builder.
Instance responsible for building networks.
void inform(std::string msg, bool addType=true)
adds a new error to the list
A storage for options typed value containers)
static void fillOptions(bool forNetgen)
Inserts options used by the network converter.
static void fillOptions(bool forNetgen)
Inserts options used by the network writer.
void clear()
Clears information whether an error occured previously.
static void initOutputOptions()
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.