![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEExternalRunner.h>
Public Member Functions | |
| void | abort () |
| abort running | |
| bool | errorOccurred () const |
| check if during execution an error was Occurred | |
| GNEExternalRunner (GNEApplicationWindow *applicationWindow) | |
| Constructor. | |
| bool | isRunning () const |
| check if is running | |
| void | runTool (GNERunDialog *runDialog) |
| run tool called from dialog | |
| ~GNEExternalRunner () | |
| destructor | |
Protected Types | |
| enum | { ID_THREAD_EVENT } |
| FOX declaration. More... | |
Protected Member Functions | |
| long | onThreadEvent (FXObject *, FXSelector, void *) |
| long | onThreadSignal (FXObject *, FXSelector, void *) |
| void | signal () |
| void | signal (FXuint seltype) |
Static Protected Member Functions | |
| static void | sleep (long ms) |
Protected Attributes | |
| FXApp * | myApp = nullptr |
| pointer to APP | |
| MFXInterThreadEventClient * | myClient = nullptr |
| thread client | |
| bool | myErrorOccurred = false |
| flag for check if during execution an error was Occurred | |
| GNERunDialog * | myRunDialog = nullptr |
| pointer to current run dialog | |
| bool | myRunning = false |
| flag for check if we have a running process | |
Private Member Functions | |
| GNEExternalRunner (const GNEExternalRunner &)=delete | |
| Invalidated copy constructor. | |
| GNEExternalRunner & | operator= (const GNEExternalRunner &)=delete |
| Invalidated assignment operator. | |
| FXint | run () |
| starts the thread. The thread ends after the tool is finished | |
Private Attributes | |
| FXEX::MFXThreadEventHandle | event |
| event | |
| FILE * | myPipe = nullptr |
| pipe file | |
Definition at line 35 of file GNEExternalRunner.h.
|
inherited |
| GNEExternalRunner::GNEExternalRunner | ( | GNEApplicationWindow * | applicationWindow | ) |
Constructor.
Definition at line 53 of file GNEExternalRunner.cpp.
References GNEApplicationWindow::setExternalRunner().
| GNEExternalRunner::~GNEExternalRunner | ( | ) |
destructor
Definition at line 60 of file GNEExternalRunner.cpp.
|
privatedelete |
Invalidated copy constructor.
| void GNEExternalRunner::abort | ( | ) |
abort running
Definition at line 78 of file GNEExternalRunner.cpp.
References GNERunDialog::addEvent(), ERROR_OCCURRED, myErrorOccurred, myRunDialog, myRunning, and TL.
Referenced by GNERunDialog::onCmdAbort(), GNERunNetgenerateDialog::onCmdAccept(), GNERunDialog::onCmdRun(), and runTool().
| bool GNEExternalRunner::errorOccurred | ( | ) | const |
check if during execution an error was Occurred
Definition at line 98 of file GNEExternalRunner.cpp.
References myErrorOccurred.
| bool GNEExternalRunner::isRunning | ( | ) | const |
check if is running
Definition at line 92 of file GNEExternalRunner.cpp.
References myRunning.
Referenced by GNERunDialog::onCmdRun(), and GNERunDialog::updateDialogButtons().
|
inherited |
Definition at line 128 of file MFXSingleEventThread.cpp.
References MFXInterThreadEventClient::eventOccurred(), and MFXSingleEventThread::myClient.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 113 of file MFXSingleEventThread.cpp.
References MFXSingleEventThread::event, PIPE_READ, FXEX::SEL_THREAD, and UNUSED_PARAMETER.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
privatevirtual |
starts the thread. The thread ends after the tool is finished
Reimplemented from MFXSingleEventThread.
Definition at line 104 of file GNEExternalRunner.cpp.
References GNERunDialog::addEvent(), ERROR_OCCURRED, GNERunDialog::getRunCommand(), MESSAGE_OCCURRED, myErrorOccurred, myPipe, myRunDialog, myRunning, OUTPUT_OCCURRED, TL, TOOL_ENDED, and StringUtils::transcodeToLocal().
| void GNEExternalRunner::runTool | ( | GNERunDialog * | runDialog | ) |
run tool called from dialog
Definition at line 64 of file GNEExternalRunner.cpp.
References abort(), myErrorOccurred, myRunDialog, and myRunning.
Referenced by GNERunNetgenerateDialog::GNERunNetgenerateDialog(), GNERunPythonToolDialog::GNERunPythonToolDialog(), and GNERunDialog::onCmdRun().
|
inherited |
Definition at line 89 of file MFXSingleEventThread.cpp.
References MFXSingleEventThread::event, PIPE_WRITE, FXEX::SEL_THREAD, and UNUSED_PARAMETER.
|
inherited |
Definition at line 101 of file MFXSingleEventThread.cpp.
References MFXSingleEventThread::event, PIPE_WRITE, and UNUSED_PARAMETER.
|
staticinherited |
Definition at line 142 of file MFXSingleEventThread.cpp.
Referenced by GUIRunThread::deleteSim(), GUIApplicationWindow::loadOnStartup(), GUISUMOAbstractView::makeSnapshot(), and GUIRunThread::tryStep().
|
privateinherited |
event
Definition at line 72 of file MFXSingleEventThread.h.
Referenced by MFXSingleEventThread::onThreadSignal(), MFXSingleEventThread::signal(), MFXSingleEventThread::signal(), and MFXSingleEventThread::~MFXSingleEventThread().
|
protectedinherited |
pointer to APP
Definition at line 65 of file MFXSingleEventThread.h.
Referenced by GUIRunThread::run(), and MFXSingleEventThread::~MFXSingleEventThread().
|
protectedinherited |
thread client
Definition at line 68 of file MFXSingleEventThread.h.
Referenced by MFXSingleEventThread::onThreadEvent().
|
protected |
flag for check if during execution an error was Occurred
Definition at line 64 of file GNEExternalRunner.h.
Referenced by abort(), errorOccurred(), run(), and runTool().
|
private |
|
protected |
pointer to current run dialog
Definition at line 58 of file GNEExternalRunner.h.
|
protected |
flag for check if we have a running process
Definition at line 61 of file GNEExternalRunner.h.
Referenced by abort(), isRunning(), run(), and runTool().