OpenASIP
2.0
|
#include <SimulatorEvent.hh>
Public Member Functions | |
SimulatorEvent (WXTYPE eventType, std::string data="") | |
virtual | ~SimulatorEvent () |
virtual wxEvent * | Clone (void) const |
std::string | data () const |
Static Public Attributes | |
static const wxEventType | EVT_SIMULATOR_COMMAND = wxNewEventType() |
Command received from the GUI. More... | |
static const wxEventType | EVT_SIMULATOR_COMMAND_DONE |
Command execution completed. More... | |
static const wxEventType | EVT_SIMULATOR_TERMINATED = wxNewEventType() |
Simulator thread terminated. More... | |
static const wxEventType | EVT_SIMULATOR_OUTPUT = wxNewEventType() |
Textual output event from simulator interpreter. More... | |
static const wxEventType | EVT_SIMULATOR_ERROR = wxNewEventType() |
Simulator error event. More... | |
static const wxEventType | EVT_SIMULATOR_RUNTIME_ERROR |
Runtime error event. More... | |
static const wxEventType | EVT_SIMULATOR_RUNTIME_WARNING |
Runtime warning event. More... | |
static const wxEventType | EVT_SIMULATOR_START = wxNewEventType() |
Simulation started. More... | |
static const wxEventType | EVT_SIMULATOR_STOP = wxNewEventType() |
Simulation stopped. More... | |
static const wxEventType | EVT_SIMULATOR_RUN = wxNewEventType() |
Simulation ran/resumed. More... | |
static const wxEventType | EVT_SIMULATOR_LOADING_MACHINE |
Machine loading started. More... | |
static const wxEventType | EVT_SIMULATOR_MACHINE_LOADED |
Machine loaded event. More... | |
static const wxEventType | EVT_SIMULATOR_LOADING_PROGRAM |
Program loading started. More... | |
static const wxEventType | EVT_SIMULATOR_PROGRAM_LOADED |
Program loaded event. More... | |
static const wxEventType | EVT_SIMULATOR_RESET = wxNewEventType() |
Sent before program,machine or memory model is destroyed. More... | |
Private Attributes | |
std::string | data_ |
A custom wxEvent class for passing simulator events to Proxim windows.
Definition at line 42 of file SimulatorEvent.hh.
SimulatorEvent::SimulatorEvent | ( | WXTYPE | eventType, |
std::string | data = "" |
||
) |
The Constructor.
eventType | Event type ID. |
data | String data associated with the event. |
Definition at line 66 of file SimulatorEvent.cc.
Referenced by Clone().
|
virtual |
|
inlinevirtual |
Definition at line 46 of file SimulatorEvent.hh.
References SimulatorEvent().
std::string SimulatorEvent::data | ( | ) | const |
Returns string data of the event.
Definition at line 85 of file SimulatorEvent.cc.
References data_.
Referenced by ProximMainFrame::onSimulatorEvent().
|
private |
Definition at line 89 of file SimulatorEvent.hh.
Referenced by data().
|
static |
Command received from the GUI.
Definition at line 53 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::Entry(), and ProximMainFrame::onSimulatorEvent().
|
static |
Command execution completed.
Definition at line 55 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::Entry(), and ProximMainFrame::onSimulatorEvent().
|
static |
Simulator error event.
Definition at line 62 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::Entry().
|
static |
Machine loading started.
Definition at line 77 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::handleEvent(), and ProximMainFrame::onSimulatorEvent().
|
static |
Program loading started.
Definition at line 81 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::handleEvent(), and ProximMainFrame::onSimulatorEvent().
|
static |
Machine loaded event.
Definition at line 79 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::handleEvent(), and ProximMainFrame::onSimulatorEvent().
|
static |
Textual output event from simulator interpreter.
Definition at line 60 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::Entry(), and ProximLineReader::output().
|
static |
Program loaded event.
Definition at line 83 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::handleEvent(), and ProximMainFrame::onSimulatorEvent().
|
static |
Sent before program,machine or memory model is destroyed.
Definition at line 85 of file SimulatorEvent.hh.
Referenced by ProximMainFrame::reset().
|
static |
Simulation ran/resumed.
Definition at line 73 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::handleEvent(), and ProximMainFrame::onSimulatorEvent().
|
static |
Runtime error event.
Definition at line 64 of file SimulatorEvent.hh.
Referenced by ProximRuntimeErrorHandler::handleEvent(), and ProximMainFrame::onSimulatorEvent().
|
static |
Runtime warning event.
Definition at line 66 of file SimulatorEvent.hh.
Referenced by ProximRuntimeErrorHandler::handleEvent(), and ProximMainFrame::onSimulatorEvent().
|
static |
Simulation started.
Definition at line 69 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::handleEvent().
|
static |
Simulation stopped.
Definition at line 71 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::handleEvent(), ProximSimulationThread::killSimulation(), and ProximSimulationThread::requestStop().
|
static |
Simulator thread terminated.
Definition at line 57 of file SimulatorEvent.hh.
Referenced by ProximSimulationThread::Entry().