openMSX
DSKDiskImage.hh
Go to the documentation of this file.
1 #ifndef DSKDISKIMAGE_HH
2 #define DSKDISKIMAGE_HH
3 
4 #include "SectorBasedDisk.hh"
5 #include <memory>
6 
7 namespace openmsx {
8 
9 class File;
10 
11 class DSKDiskImage final : public SectorBasedDisk
12 {
13 public:
14  explicit DSKDiskImage(const Filename& filename);
15  DSKDiskImage(const Filename& filename, const std::shared_ptr<File>& file);
16  ~DSKDiskImage();
17 
18 private:
19  void readSectorImpl (size_t sector, SectorBuffer& buf) override;
20  void writeSectorImpl(size_t sector, const SectorBuffer& buf) override;
21  bool isWriteProtectedImpl() const override;
22  Sha1Sum getSha1Sum() override;
23 
24  const std::shared_ptr<File> file;
25 };
26 
27 } // namespace openmsx
28 
29 #endif
Abstract class for disk images that only represent the logical sector information (so not the raw tra...
This class represents the result of a sha1 calculation (a 160-bit value).
Definition: sha1.hh:19
DSKDiskImage(const Filename &filename)
Definition: DSKDiskImage.cc:6
This class represents a filename.
Definition: Filename.hh:17
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:7