Go to the documentation of this file.
33 #ifndef TTA_SIMULATOR_EVENT_HH
34 #define TTA_SIMULATOR_EVENT_HH
47 std::string
data()
const;
94 #define EVT_SIMULATOR_TERMINATED(id, fn) \
95 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_TERMINATED, id, -1, \
96 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
100 #define EVT_SIMULATOR_START(id, fn) \
101 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_START, id, -1, \
102 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
106 #define EVT_SIMULATOR_STOP(id, fn) \
107 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_STOP, id, -1, \
108 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
113 #define EVT_SIMULATOR_OUTPUT(id, fn) \
114 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_OUTPUT, id, -1, \
115 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
120 #define EVT_SIMULATOR_COMMAND(id, fn) \
121 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_COMMAND, id, -1, \
122 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
127 #define EVT_SIMULATOR_COMMAND_DONE(id, fn) \
128 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_COMMAND_DONE, \
130 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
134 #define EVT_SIMULATOR_ERROR(id, fn) \
135 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_ERROR, id, -1, \
136 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
139 #define EVT_SIMULATOR_MACHINE_LOADED(id, fn) \
140 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_MACHINE_LOADED, \
142 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
145 #define EVT_SIMULATOR_LOADING_PROGRAM(id, fn) \
146 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_LOADING_PROGRAM, \
148 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
151 #define EVT_SIMULATOR_PROGRAM_LOADED(id, fn) \
152 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_PROGRAM_LOADED, \
154 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
157 #define EVT_SIMULATOR_LOADING_MACHINE(id, fn) \
158 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_LOADING_MACHINE, \
160 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
163 #define EVT_SIMULATOR_MACHINE_LOADED(id, fn) \
164 DECLARE_EVENT_TABLE_ENTRY(SimulatorEvent::EVT_SIMULATOR_MACHINE_LOADED, \
166 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
169 #define EVT_SIMULATOR_RUNTIME_ERROR(id, fn) \
170 DECLARE_EVENT_TABLE_ENTRY(\
171 SimulatorEvent::EVT_SIMULATOR_RUNTIME_ERROR, \
173 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
176 #define EVT_SIMULATOR_RUNTIME_WARNING(id, fn) \
177 DECLARE_EVENT_TABLE_ENTRY(\
178 SimulatorEvent::EVT_SIMULATOR_RUNTIME_WARNING, \
180 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
183 #define EVT_SIMULATOR_RUN(id, fn) \
184 DECLARE_EVENT_TABLE_ENTRY(\
185 SimulatorEvent::EVT_SIMULATOR_RUN, \
187 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
190 #define EVT_SIMULATOR_RESET(id, fn) \
191 DECLARE_EVENT_TABLE_ENTRY(\
192 SimulatorEvent::EVT_SIMULATOR_RESET, \
194 (wxObjectEventFunction)(wxEventFunction)(wxCommandEventFunction)&fn, \
static const wxEventType EVT_SIMULATOR_STOP
Simulation stopped.
virtual wxEvent * Clone(void) const
static const wxEventType EVT_SIMULATOR_RUNTIME_WARNING
Runtime warning event.
static const wxEventType EVT_SIMULATOR_OUTPUT
Textual output event from simulator interpreter.
static const wxEventType EVT_SIMULATOR_LOADING_MACHINE
Machine loading started.
static const wxEventType EVT_SIMULATOR_RESET
Sent before program,machine or memory model is destroyed.
virtual ~SimulatorEvent()
static const wxEventType EVT_SIMULATOR_RUNTIME_ERROR
Runtime error event.
static const wxEventType EVT_SIMULATOR_LOADING_PROGRAM
Program loading started.
static const wxEventType EVT_SIMULATOR_PROGRAM_LOADED
Program loaded event.
static const wxEventType EVT_SIMULATOR_TERMINATED
Simulator thread terminated.
static const wxEventType EVT_SIMULATOR_ERROR
Simulator error event.
static const wxEventType EVT_SIMULATOR_START
Simulation started.
SimulatorEvent(WXTYPE eventType, std::string data="")
static const wxEventType EVT_SIMULATOR_COMMAND
Command received from the GUI.
static const wxEventType EVT_SIMULATOR_RUN
Simulation ran/resumed.
static const wxEventType EVT_SIMULATOR_MACHINE_LOADED
Machine loaded event.
static const wxEventType EVT_SIMULATOR_COMMAND_DONE
Command execution completed.