openMSX
fdc
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, std::shared_ptr<File> file);
16
17
private
:
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
24
private
:
25
const
std::shared_ptr<File> file;
26
};
27
28
}
// namespace openmsx
29
30
#endif
SectorBasedDisk.hh
openmsx::DSKDiskImage
Definition
DSKDiskImage.hh:12
openmsx::FilePool
Definition
FilePool.hh:20
openmsx::Filename
This class represents a filename.
Definition
Filename.hh:20
openmsx::SectorBasedDisk
Abstract class for disk images that only represent the logical sector information (so not the raw tra...
Definition
SectorBasedDisk.hh:14
openmsx::Sha1Sum
This class represents the result of a sha1 calculation (a 160-bit value).
Definition
sha1.hh:24
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
openmsx::SectorBuffer
Definition
DiskImageUtils.hh:139
Generated on Sat Dec 21 2024 14:13:51 for openMSX by
1.9.8