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
7namespace openmsx {
8
10{
11public:
12 Debuggable(const Debuggable&) = delete;
14 Debuggable& operator=(const Debuggable&) = delete;
16
17 [[nodiscard]] virtual unsigned getSize() const = 0;
18 [[nodiscard]] virtual std::string_view getDescription() const = 0;
19 [[nodiscard]] virtual byte read(unsigned address) = 0;
20 virtual void write(unsigned address, byte value) = 0;
21
22protected:
23 Debuggable() = default;
24 ~Debuggable() = default;
25};
26
27} // namespace openmsx
28
29#endif
Debuggable & operator=(Debuggable &&)=delete
Debuggable(Debuggable &&)=delete
Debuggable & operator=(const Debuggable &)=delete
Debuggable(const Debuggable &)=delete
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:11