55 #ifdef CHECK_MEMORY_LEAKS 64 main(
int argc,
char** argv) {
85 FXApp application(
"SUMO GUISimulation",
"DLR");
87 application.init(argc, argv);
89 if (!FXGLVisual::supported(&application, major, minor)) {
90 throw ProcessError(
"This system has no OpenGL support. Exiting.");
99 application.addSignal(SIGINT, window,
MID_QUIT);
100 application.create();
106 ret = application.run();
108 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
114 }
catch (
const std::exception& e) {
115 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(const bool commandLineOnly=false)
Parses the command line arguments and loads the configuration.
void setApplicationDescription(const std::string &appDesc)
Sets the application description.
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 void setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
static OptionsCont & getOptions()
Retrieves the options.
static void fillOptions()
Inserts options used by the simulation into the OptionsCont-singleton.
bool processMetaOptions(bool missingOptions)
Checks for help and configuration output, returns whether we should exit.
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.
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.