openMSX
Classes | Public Types | Public Member Functions | Friends | List of all members
openmsx::DirAsDSK Class Referencefinal

#include <DirAsDSK.hh>

Inheritance diagram for openmsx::DirAsDSK:
Inheritance graph
[legend]
Collaboration diagram for openmsx::DirAsDSK:
Collaboration graph
[legend]

Public Types

enum  SyncMode { SYNC_READONLY, SYNC_FULL }
 
enum  BootSectorType { BOOTSECTOR_DOS1, BOOTSECTOR_DOS2 }
 

Public Member Functions

 DirAsDSK (DiskChanger &diskChanger, CliComm &cliComm, const Filename &hostDir, SyncMode syncMode, BootSectorType bootSectorType)
 
void readSectorImpl (size_t sector, SectorBuffer &buf) override
 
void writeSectorImpl (size_t sector, const SectorBuffer &buf) override
 
bool isWriteProtectedImpl () const override
 
void checkCaches () override
 
- Public Member Functions inherited from openmsx::Disk
virtual ~Disk ()
 
const DiskNamegetName () const
 
void writeTrack (byte track, byte side, const RawTrack &input)
 Replace a full track in this image with the given track. 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)
 
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...
 
int readSectors (SectorBuffer *buffers, size_t startSector, size_t nbSectors)
 
int writeSectors (const SectorBuffer *buffers, size_t startSector, size_t nbSectors)
 

Friends

struct NullScanner
 
struct DirScanner
 
struct IsDirSector
 
struct DirEntryForCluster
 
struct UnmapHostFiles
 

Additional Inherited Members

- Static Public Attributes inherited from openmsx::SectorAccessibleDisk
static const size_t SECTOR_SIZE = sizeof(SectorBuffer)
 
- Protected Member Functions inherited from openmsx::SectorBasedDisk
 SectorBasedDisk (DiskName name)
 
void detectGeometry () override
 
void flushCaches () override
 
void setNbSectors (size_t num)
 
 ~SectorBasedDisk ()=default
 
- Protected Member Functions inherited from openmsx::Disk
 Disk (DiskName name)
 
size_t physToLog (byte track, byte side, byte sector)
 
void logToPhys (size_t log, byte &track, byte &side, byte &sector)
 
virtual void detectGeometryFallback ()
 
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 Sha1Sum getSha1SumImpl (FilePool &filepool)
 

Detailed Description

Definition at line 15 of file DirAsDSK.hh.

Member Enumeration Documentation

◆ BootSectorType

Enumerator
BOOTSECTOR_DOS1 
BOOTSECTOR_DOS2 

Definition at line 19 of file DirAsDSK.hh.

◆ SyncMode

Enumerator
SYNC_READONLY 
SYNC_FULL 

Definition at line 18 of file DirAsDSK.hh.

Constructor & Destructor Documentation

◆ DirAsDSK()

openmsx::DirAsDSK::DirAsDSK ( DiskChanger diskChanger,
CliComm cliComm,
const Filename hostDir,
SyncMode  syncMode,
BootSectorType  bootSectorType 
)

Member Function Documentation

◆ checkCaches()

void openmsx::DirAsDSK::checkCaches ( )
overridevirtual

◆ isWriteProtectedImpl()

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

Implements openmsx::SectorAccessibleDisk.

Definition at line 326 of file DirAsDSK.cc.

References SYNC_READONLY.

◆ readSectorImpl()

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

◆ writeSectorImpl()

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

Friends And Related Function Documentation

◆ DirEntryForCluster

friend struct DirEntryForCluster
friend

Definition at line 106 of file DirAsDSK.hh.

◆ DirScanner

friend struct DirScanner
friend

Definition at line 104 of file DirAsDSK.hh.

◆ IsDirSector

friend struct IsDirSector
friend

Definition at line 105 of file DirAsDSK.hh.

◆ NullScanner

friend struct NullScanner
friend

Definition at line 103 of file DirAsDSK.hh.

◆ UnmapHostFiles

friend struct UnmapHostFiles
friend

Definition at line 107 of file DirAsDSK.hh.


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