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