 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
54 main(
int argc,
char** argv) {
75 FXApp application(
"SUMO GUI",
"Eclipse");
77 application.init(argc, argv);
79 if (!FXGLVisual::supported(&application, major, minor)) {
80 throw ProcessError(
"This system has no OpenGL support. Exiting.");
96 ret = application.run();
98 if (std::string(e.what()) != std::string(
"Process Error") && std::string(e.what()) != std::string(
"")) {
104 }
catch (
const std::exception& e) {
105 if (std::string(e.what()) != std::string(
"")) {
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.
static void close()
Closes all of an applications subsystems.
virtual void inform(std::string msg, bool addType=true)
adds a new error to the list
static OptionsCont & getOptions()
Retrieves the options.
static void close()
request termination of connection
static MsgHandler * create(MsgType type)
static void setFactory(Factory func)
Sets the factory function to use for new MsgHandlers.
void setApplicationName(const std::string &appName, const std::string &fullName)
Sets the application name.
The main window of the SUMO-gui.
GUICompleteSchemeStorage gSchemeStorage
static void init()
Initialises the xml-subsystem.
A storage for options typed value containers)
@ MID_HOTKEY_CTRL_Q_CLOSE
Main window closes.
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 setArgs(int argc, char **argv)
Stores the command line arguments for later parsing.
int main(int argc, char **argv)
void init(FXApp *app, bool netedit=false)
Initialises the storage with some default settings.
static MsgHandler * getErrorInstance()
Returns the instance to add errors to.