Public Member Functions | List of all members
openmsx::DMKDiskImage Class Referencefinal

DMK disk image. More...

#include <DMKDiskImage.hh>

Inheritance diagram for openmsx::DMKDiskImage:
Inheritance graph
Collaboration diagram for openmsx::DMKDiskImage:
Collaboration graph

Public Member Functions

 DMKDiskImage (Filename filename, std::shared_ptr< File > file)
void readTrack (byte track, byte side, RawTrack &output) override
 Read a full track from this disk image. More...
void writeTrackImpl (byte track, byte side, const RawTrack &input) override
void readSectorImpl (size_t sector, SectorBuffer &buf) override
void writeSectorImpl (size_t sector, const SectorBuffer &buf) override
size_t getNbSectorsImpl () const override
bool isWriteProtectedImpl () const override
Sha1Sum getSha1SumImpl (FilePool &filepool) override
- Public Member Functions inherited from openmsx::Disk
virtual ~Disk ()=default
const DiskNamegetName () const
void writeTrack (byte track, byte side, const RawTrack &input)
 Replace a full track in this image with the given track. More...
virtual bool hasChanged () const
 Has the content of this disk changed, by some other means than the MSX writing to the disk. More...
bool isDoubleSided ()
- Public Member Functions inherited from openmsx::SectorAccessibleDisk
void readSector (size_t sector, SectorBuffer &buf)
void writeSector (size_t sector, const SectorBuffer &buf)
void readSectors (SectorBuffer *buffers, size_t startSector, size_t nbSectors)
void writeSectors (const SectorBuffer *buffers, size_t startSector, size_t nbSectors)
size_t getNbSectors () const
bool isWriteProtected () const
void forceWriteProtect ()
virtual bool isDummyDisk () const
void applyPatch (Filename patchFile)
std::vector< FilenamegetPatches () const
bool hasPatches () const
Sha1Sum getSha1Sum (FilePool &filepool)
 Calculate SHA1 of the content of this disk. More...
virtual void readSectorsImpl (SectorBuffer *buffers, size_t startSector, size_t nbSectors)

Additional Inherited Members

- Static Public Attributes inherited from openmsx::SectorAccessibleDisk
static constexpr size_t SECTOR_SIZE = sizeof(SectorBuffer)
- Protected Member Functions inherited from openmsx::Disk
 Disk (DiskName name)
size_t physToLog (byte track, byte side, byte sector)
TSS logToPhys (size_t log)
virtual void detectGeometry ()
void setSectorsPerTrack (unsigned num)
unsigned getSectorsPerTrack ()
void setNbSides (unsigned num)
- Protected Member Functions inherited from openmsx::SectorAccessibleDisk
 SectorAccessibleDisk ()
 ~SectorAccessibleDisk ()
void setPeekMode (bool peek)
bool isPeekMode () const
virtual void checkCaches ()
virtual void flushCaches ()

Detailed Description

DMK disk image.

A description of the file format can be found in doc/DMK-Format-Details.txt or at the original site: (at the bottom of the page)

Definition at line 16 of file DMKDiskImage.hh.

Constructor & Destructor Documentation

◆ DMKDiskImage()

openmsx::DMKDiskImage::DMKDiskImage ( Filename  filename,
std::shared_ptr< File file 

Definition at line 43 of file

Member Function Documentation

◆ getNbSectorsImpl()

size_t openmsx::DMKDiskImage::getNbSectorsImpl ( ) const

Implements openmsx::SectorAccessibleDisk.

Definition at line 205 of file

References openmsx::Disk::getSectorsPerTrack(), and t.

◆ getSha1SumImpl()

Sha1Sum openmsx::DMKDiskImage::getSha1SumImpl ( FilePool filepool)

Reimplemented from openmsx::SectorAccessibleDisk.

Definition at line 216 of file

References openmsx::FilePool::getSha1Sum().

◆ isWriteProtectedImpl()

bool openmsx::DMKDiskImage::isWriteProtectedImpl ( ) const

Implements openmsx::SectorAccessibleDisk.

Definition at line 211 of file

◆ readSectorImpl()

void openmsx::DMKDiskImage::readSectorImpl ( size_t  sector,
SectorBuffer buf 

◆ readTrack()

void openmsx::DMKDiskImage::readTrack ( byte  track,
byte  side,
RawTrack output 

◆ writeSectorImpl()

void openmsx::DMKDiskImage::writeSectorImpl ( size_t  sector,
const SectorBuffer buf 

◆ writeTrackImpl()

void openmsx::DMKDiskImage::writeTrackImpl ( byte  track,
byte  side,
const RawTrack input 

Implements openmsx::Disk.

Definition at line 122 of file

References unlikely.

The documentation for this class was generated from the following files: