55 #ifdef CHECK_MEMORY_LEAKS 67 main(
int argc,
char** argv) {
81 FXApp application(
"SUMO GUISimulation",
"DLR");
83 application.init(argc, argv);
85 if (!FXGLVisual::supported(&application, major, minor)) {
86 throw ProcessError(
"This system has no OpenGL support. Exiting.");
95 application.addSignal(SIGINT, window,
MID_QUIT);
103 ret = application.run();
105 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
111 }
catch (
const std::exception& e) {
112 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
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.
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.