Public Member Functions | List of all members
openmsx::HD Class Reference

#include <HD.hh>

Inheritance diagram for openmsx::HD:
Inheritance graph
Collaboration diagram for openmsx::HD:
Collaboration graph

Public Member Functions

 HD (const DeviceConfig &config)
 ~HD () override
const std::string & getName () const
const FilenamegetImageName () const
void switchImage (const Filename &filename)
std::string getTigerTreeHash ()
template<typename Archive >
void serialize (Archive &ar, unsigned version)
MSXMotherBoardgetMotherBoard () const
- 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)
- Public Member Functions inherited from openmsx::DiskContainer
 DiskContainer (const DiskContainer &)=delete
DiskContaineroperator= (const DiskContainer &)=delete
 DiskContainer ()=default
virtual ~DiskContainer ()=default
virtual SectorAccessibleDiskgetSectorAccessibleDisk ()=0
virtual std::string_view getContainerName () const =0
virtual bool diskChanged ()=0
virtual int insertDisk (const std::string &filename)=0
bool isRomdisk () const
template<typename Archive >
void serialize (Archive &, unsigned)
virtual uint8_t * getData (size_t offset, size_t size)=0
 Return the requested portion of the to-be-hashed data block. More...
virtual bool isCacheStillValid (time_t &time)=0
 Because TTH calculation of a large file takes some time (a few 1/10s for a harddisk image) we try to cache previous calculations. More...

Additional Inherited Members

- Static Public Attributes inherited from openmsx::SectorAccessibleDisk
static constexpr size_t SECTOR_SIZE = sizeof(SectorBuffer)
- 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)
- Protected Member Functions inherited from openmsx::TTData
 ~TTData ()=default

Detailed Description

Definition at line 20 of file HD.hh.

Constructor & Destructor Documentation

◆ HD()

openmsx::HD::HD ( const DeviceConfig config)

◆ ~HD()

openmsx::HD::~HD ( )

Member Function Documentation

◆ getImageName()

const Filename & openmsx::HD::getImageName ( ) const

Definition at line 28 of file HD.hh.

Referenced by openmsx::HDCommand::execute().

◆ getMotherBoard()

MSXMotherBoard & openmsx::HD::getMotherBoard ( ) const

Definition at line 36 of file HD.hh.

◆ getName()

const std::string & openmsx::HD::getName ( ) const

Definition at line 27 of file HD.hh.

Referenced by openmsx::HDCommand::execute(), openmsx::HDCommand::help(), and switchImage().

◆ getTigerTreeHash()

std::string openmsx::HD::getTigerTreeHash ( )

Definition at line 143 of file

References openmsx::Timer::getTime(), and t.

Referenced by serialize().

◆ serialize()

template<typename Archive >
void openmsx::HD::serialize ( Archive &  ar,
unsigned  version 

◆ switchImage()

void openmsx::HD::switchImage ( const Filename filename)

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