openMSX
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
[legend]
Collaboration diagram for openmsx::DMKDiskImage:
Collaboration graph
[legend]

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 void readTrack (byte track, byte side, RawTrack &output)=0
 Read a full track from this disk image. 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)
 
virtual void readSectorImpl (size_t sector, SectorBuffer &buf)
 

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 ()
 
virtual void detectGeometryFallback ()
 
void setSectorsPerTrack (unsigned num)
 
unsigned getSectorsPerTrack ()
 
void setNbSides (unsigned num)
 
virtual void writeTrackImpl (byte track, byte side, const RawTrack &input)=0
 
- Protected Member Functions inherited from openmsx::SectorAccessibleDisk
 SectorAccessibleDisk ()
 
 ~SectorAccessibleDisk ()
 
void setPeekMode (bool peek)
 
bool isPeekMode () const
 
virtual void checkCaches ()
 
virtual void flushCaches ()
 
virtual Sha1Sum getSha1SumImpl (FilePool &filepool)
 

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: http://www.trs-80.com/wordpress/dsk-and-dmk-image-utilities/ (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 42 of file DMKDiskImage.cc.

Member Function Documentation

◆ getNbSectorsImpl()

size_t openmsx::DMKDiskImage::getNbSectorsImpl ( ) const
overridevirtual

Implements openmsx::SectorAccessibleDisk.

Definition at line 204 of file DMKDiskImage.cc.

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

◆ getSha1SumImpl()

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

Reimplemented from openmsx::SectorAccessibleDisk.

Definition at line 215 of file DMKDiskImage.cc.

References openmsx::FilePool::getSha1Sum().

◆ isWriteProtectedImpl()

bool openmsx::DMKDiskImage::isWriteProtectedImpl ( ) const
overridevirtual

Implements openmsx::SectorAccessibleDisk.

Definition at line 210 of file DMKDiskImage.cc.

◆ readSectorImpl()

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

◆ readTrack()

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

◆ writeSectorImpl()

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

◆ writeTrackImpl()

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

Implements openmsx::Disk.

Definition at line 121 of file DMKDiskImage.cc.


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