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:
19  virtual void signalStateChange(
20  const std::shared_ptr<StateChange>& event) = 0;
21 
29  virtual void stopReplay(EmuTime::param time) noexcept = 0;
30 
31 protected:
32  StateChangeListener() = default;
33  ~StateChangeListener() = default;
34 };
35 
37 {
38 public:
39  [[nodiscard]] virtual bool isReplaying() const = 0;
40 protected:
41  ~StateChangeRecorder() = default;
42 };
43 
44 } // namespace openmsx
45 
46 #endif
virtual void stopReplay(EmuTime::param time) noexcept=0
This method gets called when we switch from replayed events to live events.
virtual void signalStateChange(const std::shared_ptr< StateChange > &event)=0
This method gets called when a StateChange event occurs.
virtual bool isReplaying() const =0
This file implemented 3 utility functions:
Definition: Autofire.cc:5