openMSX
Debuggable.hh
Go to the documentation of this file.
1 #ifndef DEBUGGABLE_HH
2 #define DEBUGGABLE_HH
3 
4 #include "openmsx.hh"
5 #include <string_view>
6 
7 namespace openmsx {
8 
9 class Debuggable
10 {
11 public:
12  [[nodiscard]] virtual unsigned getSize() const = 0;
13  [[nodiscard]] virtual std::string_view getDescription() const = 0;
14  [[nodiscard]] virtual byte read(unsigned address) = 0;
15  virtual void write(unsigned address, byte value) = 0;
16 
17 protected:
18  Debuggable() = default;
19  ~Debuggable() = default;
20 };
21 
22 } // namespace openmsx
23 
24 #endif
virtual byte read(unsigned address)=0
virtual void write(unsigned address, byte value)=0
virtual unsigned getSize() const =0
virtual std::string_view getDescription() const =0
This file implemented 3 utility functions:
Definition: Autofire.cc:5