OpenASIP 2.2
Loading...
Searching...
No Matches
SimulatorEvent.cc
Go to the documentation of this file.
1/*
2 Copyright (c) 2002-2009 Tampere University.
3
4 This file is part of TTA-Based Codesign Environment (TCE).
5
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the "Software"),
8 to deal in the Software without restriction, including without limitation
9 the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 and/or sell copies of the Software, and to permit persons to whom the
11 Software is furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 DEALINGS IN THE SOFTWARE.
23 */
24/**
25 * @file SimulatorEvent.cc
26 *
27 * Implementation of SimulatorEvent class.
28 *
29 * @author Veli-Pekka Jääskeläinen 2005 (vjaaskel-no.spam-cs.tut.fi)
30 * @note rating: red
31 */
32
33#include "SimulatorEvent.hh"
34
35const wxEventType SimulatorEvent::EVT_SIMULATOR_TERMINATED = wxNewEventType();
36const wxEventType SimulatorEvent::EVT_SIMULATOR_START = wxNewEventType();
37const wxEventType SimulatorEvent::EVT_SIMULATOR_STOP = wxNewEventType();
38const wxEventType SimulatorEvent::EVT_SIMULATOR_RUN = wxNewEventType();
39const wxEventType SimulatorEvent::EVT_SIMULATOR_OUTPUT = wxNewEventType();
40const wxEventType SimulatorEvent::EVT_SIMULATOR_ERROR = wxNewEventType();
41const wxEventType SimulatorEvent::EVT_SIMULATOR_COMMAND = wxNewEventType();
43 wxNewEventType();
44
46 wxNewEventType();
48 wxNewEventType();
49
51 wxNewEventType();
53 wxNewEventType();
55 wxNewEventType();
57 wxNewEventType();
58const wxEventType SimulatorEvent::EVT_SIMULATOR_RESET = wxNewEventType();
59
60/**
61 * The Constructor.
62 *
63 * @param eventType Event type ID.
64 * @param data String data associated with the event.
65 */
66SimulatorEvent::SimulatorEvent(WXTYPE eventType, std::string data) :
67 wxEvent(0, eventType), data_(data) {
68
69}
70
71
72/**
73 * The Destructor.
74 */
77
78
79/**
80 * Returns string data of the event.
81 *
82 * @return String data associated with the event.
83 */
84std::string
86 return data_;
87}
static const wxEventType EVT_SIMULATOR_START
Simulation started.
static const wxEventType EVT_SIMULATOR_RESET
Sent before program,machine or memory model is destroyed.
static const wxEventType EVT_SIMULATOR_RUNTIME_WARNING
Runtime warning event.
static const wxEventType EVT_SIMULATOR_ERROR
Simulator error event.
static const wxEventType EVT_SIMULATOR_RUNTIME_ERROR
Runtime error event.
static const wxEventType EVT_SIMULATOR_TERMINATED
Simulator thread terminated.
static const wxEventType EVT_SIMULATOR_MACHINE_LOADED
Machine loaded event.
virtual ~SimulatorEvent()
SimulatorEvent(WXTYPE eventType, std::string data="")
static const wxEventType EVT_SIMULATOR_RUN
Simulation ran/resumed.
static const wxEventType EVT_SIMULATOR_PROGRAM_LOADED
Program loaded event.
static const wxEventType EVT_SIMULATOR_LOADING_MACHINE
Machine loading started.
std::string data_
static const wxEventType EVT_SIMULATOR_COMMAND_DONE
Command execution completed.
static const wxEventType EVT_SIMULATOR_COMMAND
Command received from the GUI.
std::string data() const
static const wxEventType EVT_SIMULATOR_OUTPUT
Textual output event from simulator interpreter.
static const wxEventType EVT_SIMULATOR_LOADING_PROGRAM
Program loading started.
static const wxEventType EVT_SIMULATOR_STOP
Simulation stopped.