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
7namespace openmsx {
8
9class File;
10
11class DSKDiskImage final : public SectorBasedDisk
12{
13public:
14 explicit DSKDiskImage(const Filename& filename);
15 DSKDiskImage(const Filename& filename, std::shared_ptr<File> file);
16
17private:
18 void readSectorsImpl(
19 std::span<SectorBuffer> buffers, size_t startSector) override;
20 void writeSectorImpl(size_t sector, const SectorBuffer& buf) override;
21 [[nodiscard]] bool isWriteProtectedImpl() const override;
22 [[nodiscard]] Sha1Sum getSha1SumImpl(FilePool& filePool) override;
23
24private:
25 const std::shared_ptr<File> file;
26};
27
28} // namespace openmsx
29
30#endif
This class represents a filename.
Definition Filename.hh:20
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:24
This file implemented 3 utility functions:
Definition Autofire.cc:11