55 #ifdef CHECK_MEMORY_LEAKS
67 main(
int argc,
char** argv) {
88 FXApp application(
"SUMO GUISimulation",
"DLR");
90 application.init(argc, argv);
92 if (!FXGLVisual::supported(&application, major, minor)) {
93 throw ProcessError(
"This system has no OpenGL support. Exiting.");
102 application.addSignal(SIGINT, window,
MID_QUIT);
103 application.create();
105 if (oc.
isSet(
"configuration-file") || oc.
isSet(
"net-file")) {
109 ret = application.run();
111 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
117 }
catch (
const std::exception& e) {
118 if (std::string(e.what()) != std::string(
"")) {
static void init()
Initialises the xml-subsystem.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.
GUICompleteSchemeStorage gSchemeStorage
static void getOptions(bool loadConfig, int argc=0, char **argv=0)
Parses the command line arguments and loads the configuration optionally.
static void setValidation(const std::string &validationScheme, const std::string &netValidationScheme)
Enables or disables validation.
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 assignLock(AbstractMutex *lock)
Sets the lock to use The lock will not be deleted.
static void close()
Closes all of an applications subsystems.
static OptionsCont & getOptions()
Retrieves the options.
static void fillOptions()
Inserts options used by the simulation into the OptionsCont-singleton.
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.
void dependentBuild(bool game)
void inform(std::string msg, bool addType=true)
adds a new error to the list
A storage for options typed value containers)
void init(FXApp *app)
Initialises the storage with some default settings.
bool isSet(const std::string &name, bool failOnNonExistant=true) const
Returns the information whether the named option is set.
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.
int main(int argc, char **argv)
The main window of the SUMO-gui.