 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
17 #ifndef GNELoadThread_h
18 #define GNELoadThread_h
62 void loadConfigOrNet(
const std::string& file,
bool isNet,
bool useStartupOptions,
bool newNet =
false);
OutputDevice * myErrorRetriever
The instances of message retriever encapsulations Needed to be deleted from the handler later on.
Static storage of an output device and its base (abstract) implementation.
FXint run()
starts the thread. The thread ends after the net has been loaded
bool myLoadNet
Information whether only the network shall be loaded.
A NBNetBuilder extended by visualisation and editing capabilities.
void retrieveMessage(const MsgHandler::MsgType type, const std::string &msg)
Retrieves messages from the loading module.
OutputDevice * myGLDebugRetriever
OutputDevice * myWarningRetriever
FXEX::FXThreadEvent & myEventThrow
event throw
virtual ~GNELoadThread()
destructor
MFXInterThreadEventClient * myParent
the parent window to inform about the loading
bool initOptions()
init options
OutputDevice * myMessageRetriever
A storage for options typed value containers)
void loadConfigOrNet(const std::string &file, bool isNet, bool useStartupOptions, bool newNet=false)
begins the loading of a netconvert configuration or a a network
void submitEndAndCleanup(GNENet *net, const std::string &guiSettingsFile="", const bool viewportFromRegistry=false)
Closes the loading process.
static void setDefaultOptions(OptionsCont &oc)
sets required options for proper functioning
static void fillOptions(OptionsCont &oc)
clears and initializes the OptionsCont
bool myNewNet
if true, a new net is created
GNELoadThread(FXApp *app, MFXInterThreadEventClient *mw, FXSynchQue< GUIEvent * > &eq, FXEX::FXThreadEvent &ev)
constructor
OutputDevice * myDebugRetriever
FXSynchQue< GUIEvent * > & myEventQue
event Queue
std::string myFile
the path to load the network from