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

#include <HD.hh>

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

Public Member Functions

 HD (const DeviceConfig &config)
virtual ~HD ()
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)
- Public Member Functions inherited from openmsx::SectorAccessibleDisk
virtual ~SectorAccessibleDisk ()
void readSector (size_t sector, byte *buf)
void writeSector (size_t sector, const byte *buf)
size_t getNbSectors () const
bool isWriteProtected () const
void forceWriteProtect ()
virtual bool isDummyDisk () const
void applyPatch (const Filename &patchFile)
std::vector< FilenamegetPatches () const
bool hasPatches () const
virtual Sha1Sum getSha1Sum ()
 Calculate SHA1 of the content of this disk.
int readSectors (byte *buffer, size_t startSector, size_t nbSectors)
int writeSectors (const byte *buffer, size_t startSector, size_t nbSectors)
- Public Member Functions inherited from openmsx::DiskContainer
virtual ~DiskContainer ()
virtual SectorAccessibleDiskgetSectorAccessibleDisk ()=0
virtual const std::string & getContainerName () const =0
virtual bool diskChanged ()=0
virtual int insertDisk (const std::string &filename)=0
bool isRomdisk () const
- Public Member Functions inherited from openmsx::TTData
virtual uint8_t * getData (size_t offset, size_t size)=0
 Return the requested portion of the to-be-hashed data block.

Additional Inherited Members

- Static Public Attributes inherited from openmsx::SectorAccessibleDisk
static const size_t SECTOR_SIZE = 512
- Protected Member Functions inherited from openmsx::SectorAccessibleDisk
 SectorAccessibleDisk ()
void setPeekMode (bool peek)
bool isPeekMode () const
virtual void checkCaches ()
virtual void flushCaches ()
- Protected Member Functions inherited from openmsx::TTData
 ~TTData ()

Detailed Description

Definition at line 20 of file HD.hh.

Constructor & Destructor Documentation

openmsx::HD::HD ( const DeviceConfig config)
explicit
openmsx::HD::~HD ( )
virtual

Member Function Documentation

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

Definition at line 101 of file HD.cc.

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

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

Definition at line 96 of file HD.cc.

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

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

Definition at line 174 of file HD.cc.

Referenced by serialize().

template<typename Archive >
void openmsx::HD::serialize ( Archive &  ar,
unsigned  version 
)
void openmsx::HD::switchImage ( const Filename filename)

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