OpenASIP 2.2
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
SimulationEventHandler Class Reference

#include <SimulationEventHandler.hh>

Inheritance diagram for SimulationEventHandler:
Inheritance graph
Collaboration diagram for SimulationEventHandler:
Collaboration graph

Public Types

enum  {
  SE_NEW_INSTRUCTION = 0 , SE_CYCLE_END , SE_RUNTIME_ERROR , SE_SIMULATION_STOPPED ,
  SE_MEMORY_ACCESS
}
 simulation specific event codes More...
 

Public Member Functions

 SimulationEventHandler ()
 
virtual ~SimulationEventHandler ()
 
- Public Member Functions inherited from Informer
 Informer ()
 
virtual ~Informer ()
 
void handleEvent (int event)
 
virtual bool registerListener (int event, Listener *listener)
 
virtual bool unregisterListener (int event, Listener *listener)
 

Public Attributes

enum SimulationEventHandler:: { ... }  SimulationEvent
 simulation specific event codes
 

Detailed Description

The informer of the simulation specific events.

Definition at line 41 of file SimulationEventHandler.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

simulation specific event codes

Enumerator
SE_NEW_INSTRUCTION 

Generated before executing a new instructon.

SE_CYCLE_END 

Generated before advancing the simulator clock at the end of a simulation cycle.

SE_RUNTIME_ERROR 

Sent when a runtime error is detected in the simulated program.

SE_SIMULATION_STOPPED 

Generated after simulation has stopped, temporarily or permantently, and control is being returned to user interface.

SE_MEMORY_ACCESS 

Genereated when memory read or write is initiated.

Definition at line 47 of file SimulationEventHandler.hh.

47 {
49 ///< Generated before executing a new instructon.
50 SE_CYCLE_END, ///< Generated before advancing the simulator
51 ///< clock at the end of a simulation cycle.
52 SE_RUNTIME_ERROR, ///< Sent when a runtime error is detected in
53 ///< the simulated program.
54 SE_SIMULATION_STOPPED, ///< Generated after simulation has stopped,
55 ///< temporarily or permantently, and control
56 ///< is being returned to user interface.
57 SE_MEMORY_ACCESS ///< Genereated when memory read or write is
58 ///< initiated.
59
@ SE_NEW_INSTRUCTION
Generated before executing a new instructon.
@ SE_MEMORY_ACCESS
Genereated when memory read or write is initiated.
@ SE_RUNTIME_ERROR
Sent when a runtime error is detected in the simulated program.
@ SE_CYCLE_END
Generated before advancing the simulator clock at the end of a simulation cycle.
@ SE_SIMULATION_STOPPED
Generated after simulation has stopped, temporarily or permantently, and control is being returned to...
enum SimulationEventHandler::@2 SimulationEvent
simulation specific event codes

Constructor & Destructor Documentation

◆ SimulationEventHandler()

SimulationEventHandler::SimulationEventHandler ( )

Constructor.

Definition at line 38 of file SimulationEventHandler.cc.

38 {
39}

◆ ~SimulationEventHandler()

SimulationEventHandler::~SimulationEventHandler ( )
virtual

Destructor.

Definition at line 44 of file SimulationEventHandler.cc.

44 {
45}

Member Data Documentation

◆ []

enum { ... } SimulationEventHandler::SimulationEvent

simulation specific event codes


The documentation for this class was generated from the following files: