openMSX
PatchInterface.hh
Go to the documentation of this file.
1#ifndef PATCHINTERFACE_HH
2#define PATCHINTERFACE_HH
3
4#include "Filename.hh"
5#include <cstdint>
6#include <span>
7#include <vector>
8
9namespace openmsx {
10
12{
13public:
14 virtual ~PatchInterface() = default;
15
16 virtual void copyBlock(size_t src, std::span<uint8_t> dst) const = 0;
17 [[nodiscard]] virtual size_t getSize() const = 0;
18 [[nodiscard]] virtual std::vector<Filename> getFilenames() const = 0;
19 [[nodiscard]] virtual bool isEmptyPatch() const { return false; }
20};
21
22} // namespace openmsx
23
24#endif
virtual bool isEmptyPatch() const
virtual void copyBlock(size_t src, std::span< uint8_t > dst) const =0
virtual ~PatchInterface()=default
virtual size_t getSize() const =0
virtual std::vector< Filename > getFilenames() const =0
This file implemented 3 utility functions:
Definition Autofire.cc:11