openMSX
StateChangeListener.hh
Go to the documentation of this file.
1 #ifndef STATECHANGELISTENER_HH
2 #define STATECHANGELISTENER_HH
3 
4 #include "EmuTime.hh"
5 #include <memory>
6 
7 namespace openmsx {
8 
9 class StateChange;
10 
12 {
13 public:
18  virtual void signalStateChange(
19  const std::shared_ptr<StateChange>& event) = 0;
20 
28  virtual void stopReplay(EmuTime::param time) = 0;
29 
30 protected:
31  StateChangeListener() = default;
32  ~StateChangeListener() = default;
33 };
34 
36 {
37 public:
38  virtual bool isReplaying() const = 0;
39 protected:
40  ~StateChangeRecorder() = default;
41 };
42 
43 } // namespace openmsx
44 
45 #endif
openmsx::StateChangeListener::stopReplay
virtual void stopReplay(EmuTime::param time)=0
This method gets called when we switch from replayed events to live events.
openmsx::StateChangeListener::~StateChangeListener
~StateChangeListener()=default
openmsx::StateChangeRecorder::~StateChangeRecorder
~StateChangeRecorder()=default
openmsx::StateChangeListener::signalStateChange
virtual void signalStateChange(const std::shared_ptr< StateChange > &event)=0
This method gets called when a StateChange event occurs.
openmsx::StateChangeRecorder::isReplaying
virtual bool isReplaying() const =0
EmuTime.hh
openmsx::StateChangeListener::StateChangeListener
StateChangeListener()=default
openmsx::StateChangeRecorder
Definition: StateChangeListener.hh:36
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::StateChangeListener
Definition: StateChangeListener.hh:12