Bug fix: check if vm exists
[avr-sim.git] / SimulationObject.h
blob0e86144c126bcb60fcd2a0efac1a33b3fa2d711d
1 #ifndef AVR_SIMULATIONOBJECT_H
2 #define AVR_SIMULATIONOBJECT_H
4 #include "SimulationClock.h"
6 namespace avr {
8 class SimulationObject {
9 public:
10 SimulationObject(SimulationClock & clock) : clock(clock) {}
11 virtual ~SimulationObject() {};
13 public:
14 virtual void step() = 0;
16 protected:
17 SimulationClock & clock;
22 #endif /*AVR_SIMULATIONOBJECT_H*/