![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEEvent_FileLoaded.h>
Public Types | |
| enum class | Type { NETECFG , SUMOCFG , NETCCFG , NETWORK , OSM , CONSOLE , NEW , INVALID_TYPE , INVALID_OPTIONS , INVALID_PROJECTION , INVALID_CONFIG } |
| type of loaded element More... | |
Public Member Functions | |
| const std::string & | getFile () const |
| get the name of the loaded file | |
| GNENet * | getNet () const |
| get the loaded net | |
| GUIEventType | getOwnType () const |
| returns the event type | |
| const std::string & | getSettingsFile () const |
| get the name of the settings file to load | |
| GNEEvent_FileLoaded::Type | getType () const |
| get event type | |
| bool | getViewportFromRegistry () const |
| get whether loading viewport from registry | |
| GNEEvent_FileLoaded (GNEEvent_FileLoaded::Type type, GNENet *net, const std::string &file, const std::string &settingsFile, const bool viewportFromRegistry) | |
| constructor | |
| ~GNEEvent_FileLoaded () | |
| destructor | |
Protected Attributes | |
| std::string | myFile |
| the name of the loaded file | |
| GNENet * | myNet |
| the loaded net | |
| std::string | mySettingsFile |
| the name of the settings file to load | |
| GNEEvent_FileLoaded::Type | myType = GNEEvent_FileLoaded::Type::INVALID_TYPE |
| event type | |
| bool | myViewportFromRegistry |
| whether loading viewport from registry | |
Private Member Functions | |
| GNEEvent_FileLoaded (const GNEEvent_FileLoaded &)=delete | |
| Invalidated copy constructor. | |
| GNEEvent_FileLoaded & | operator= (const GNEEvent_FileLoaded &src)=delete |
| Invalidated assignment operator. | |
Definition at line 37 of file GNEEvent_FileLoaded.h.
|
strong |
type of loaded element
| Enumerator | |
|---|---|
| NETECFG | |
| SUMOCFG | |
| NETCCFG | |
| NETWORK | |
| OSM | |
| CONSOLE | |
| NEW | |
| INVALID_TYPE | |
| INVALID_OPTIONS | |
| INVALID_PROJECTION | |
| INVALID_CONFIG | |
Definition at line 41 of file GNEEvent_FileLoaded.h.
| GNEEvent_FileLoaded::GNEEvent_FileLoaded | ( | GNEEvent_FileLoaded::Type | type, |
| GNENet * | net, | ||
| const std::string & | file, | ||
| const std::string & | settingsFile, | ||
| const bool | viewportFromRegistry | ||
| ) |
constructor
Definition at line 27 of file GNEEvent_FileLoaded.cpp.
| GNEEvent_FileLoaded::~GNEEvent_FileLoaded | ( | ) |
destructor
Definition at line 38 of file GNEEvent_FileLoaded.cpp.
|
privatedelete |
Invalidated copy constructor.
| const std::string & GNEEvent_FileLoaded::getFile | ( | ) | const |
get the name of the loaded file
Definition at line 54 of file GNEEvent_FileLoaded.cpp.
References myFile.
Referenced by GNEApplicationWindow::handleEvent_FileLoaded().
| GNENet * GNEEvent_FileLoaded::getNet | ( | ) | const |
get the loaded net
Definition at line 48 of file GNEEvent_FileLoaded.cpp.
References myNet.
Referenced by GNEApplicationWindow::handleEvent_FileLoaded().
|
inlineinherited |
returns the event type
Definition at line 89 of file GUIEvent.h.
References GUIEvent::myType.
Referenced by GUIApplicationWindow::eventOccurred(), GNEApplicationWindow::eventOccurred(), GUIApplicationWindow::handleEvent_Message(), GNEApplicationWindow::handleEvent_Message(), GNERunDialog::onThreadEvent(), GNERunNetgenerateDialog::onThreadEvent(), and GNERunPythonToolDialog::onThreadEvent().
| const std::string & GNEEvent_FileLoaded::getSettingsFile | ( | ) | const |
get the name of the settings file to load
Definition at line 60 of file GNEEvent_FileLoaded.cpp.
References mySettingsFile.
Referenced by GNEApplicationWindow::handleEvent_FileLoaded().
| GNEEvent_FileLoaded::Type GNEEvent_FileLoaded::getType | ( | ) | const |
get event type
Definition at line 42 of file GNEEvent_FileLoaded.cpp.
References myType.
Referenced by GNEApplicationWindow::handleEvent_FileLoaded().
| bool GNEEvent_FileLoaded::getViewportFromRegistry | ( | ) | const |
get whether loading viewport from registry
Definition at line 66 of file GNEEvent_FileLoaded.cpp.
References myViewportFromRegistry.
Referenced by GNEApplicationWindow::handleEvent_FileLoaded().
|
privatedelete |
Invalidated assignment operator.
|
protected |
the name of the loaded file
Definition at line 85 of file GNEEvent_FileLoaded.h.
Referenced by getFile().
|
protected |
|
protected |
the name of the settings file to load
Definition at line 88 of file GNEEvent_FileLoaded.h.
Referenced by getSettingsFile().
|
protected |
|
protected |
whether loading viewport from registry
Definition at line 91 of file GNEEvent_FileLoaded.h.
Referenced by getViewportFromRegistry().