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