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");
132 if (oc.
getBool(
"ignore-errors")) {
142 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
148 }
catch (
const std::exception& e) {
149 if (std::string(e.what()) != std::string(
"")) {
163 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 addReportOptions(OptionsCont &oc)
Adds reporting options to the given container.
static void getOptions(bool loadConfig, int argc=0, char **argv=0)
Parses the command line arguments and loads the configuration optionally.
void addCallExample(const std::string &example, const std::string &desc)
Add a call example.
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
static void fillOptions()
Inserts options used by the network importer and network building modules.
static void close()
Closes all of an applications subsystems.
static void addConfigurationOptions(OptionsCont &oc)
Adds configuration options to the given container.
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.
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
void compute(OptionsCont &oc, const std::set< std::string > &explicitTurnarounds=std::set< std::string >(), bool removeUnwishedNodes=true)
Performs the network building steps.
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.
static void setValidation(bool enableValidation)
Enables or disables validation.
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()
int main(int argc, char *argv[])
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.