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 "openmsx.hh"
6 #include <vector>
7 
8 namespace openmsx {
9 
11 {
12 public:
13  virtual ~PatchInterface() = default;
14 
15  virtual void copyBlock(size_t src, byte* dst, size_t num) const = 0;
16  [[nodiscard]] virtual size_t getSize() const = 0;
17  [[nodiscard]] virtual std::vector<Filename> getFilenames() const = 0;
18  [[nodiscard]] virtual bool isEmptyPatch() const { return false; }
19 };
20 
21 } // namespace openmsx
22 
23 #endif
virtual bool isEmptyPatch() const
virtual ~PatchInterface()=default
virtual size_t getSize() const =0
virtual std::vector< Filename > getFilenames() const =0
virtual void copyBlock(size_t src, byte *dst, size_t num) const =0
This file implemented 3 utility functions:
Definition: Autofire.cc:9