openMSX
EmptyDiskPatch.hh
Go to the documentation of this file.
1 #ifndef EMPTYDISKPATCH_HH
2 #define EMPTYDISKPATCH_HH
3 
4 #include "PatchInterface.hh"
5 
6 namespace openmsx {
7 
8 class SectorAccessibleDisk;
9 
10 class EmptyDiskPatch final : public PatchInterface
11 {
12 public:
13  explicit EmptyDiskPatch(SectorAccessibleDisk& disk);
14 
15  void copyBlock(size_t src, byte* dst, size_t num) const override;
16  [[nodiscard]] size_t getSize() const override;
17  [[nodiscard]] std::vector<Filename> getFilenames() const override;
18  [[nodiscard]] bool isEmptyPatch() const override { return true; }
19 
20 private:
22 };
23 
24 } // namespace openmsx
25 
26 #endif
openmsx::SectorAccessibleDisk
Definition: SectorAccessibleDisk.hh:16
openmsx::PatchInterface
Definition: PatchInterface.hh:11
openmsx::EmptyDiskPatch::copyBlock
void copyBlock(size_t src, byte *dst, size_t num) const override
Definition: EmptyDiskPatch.cc:12
PatchInterface.hh
openmsx::EmptyDiskPatch::getFilenames
std::vector< Filename > getFilenames() const override
Definition: EmptyDiskPatch.cc:26
openmsx::EmptyDiskPatch::isEmptyPatch
bool isEmptyPatch() const override
Definition: EmptyDiskPatch.hh:18
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::EmptyDiskPatch::EmptyDiskPatch
EmptyDiskPatch(SectorAccessibleDisk &disk)
Definition: EmptyDiskPatch.cc:7
openmsx::EmptyDiskPatch::getSize
size_t getSize() const override
Definition: EmptyDiskPatch.cc:21
openmsx::EmptyDiskPatch
Definition: EmptyDiskPatch.hh:11