|
openMSX
|
#include <HD.hh>


Public Member Functions | |
| HD (const DeviceConfig &config) | |
| virtual | ~HD () |
| const std::string & | getName () const |
| const Filename & | getImageName () 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< Filename > | getPatches () 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 SectorAccessibleDisk * | getSectorAccessibleDisk ()=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 () | |
|
explicit |
Definition at line 25 of file HD.cc.
References openmsx::Filename, openmsx::DeviceConfig::getChildData(), openmsx::DeviceConfig::getChildDataAsInt(), openmsx::MSXMotherBoard::getCommandController(), openmsx::DeviceConfig::getFileContext(), openmsx::Reactor::getFilePool(), openmsx::Reactor::getGlobalSettings(), openmsx::MSXMotherBoard::getMSXCliComm(), openmsx::GlobalSettings::getPowerSetting(), openmsx::MSXMotherBoard::getReactor(), openmsx::MSXMotherBoard::getScheduler(), openmsx::MSXMotherBoard::getSharedStuff(), openmsx::MSXMotherBoard::getStateChangeDistributor(), openmsx::CliComm::HARDWARE, openmsx::FileContext::resolveCreate(), and openmsx::CliComm::update().
|
virtual |
Definition at line 76 of file HD.cc.
References openmsx::MSXMotherBoard::getMSXCliComm(), openmsx::MSXMotherBoard::getSharedStuff(), openmsx::CliComm::HARDWARE, and openmsx::CliComm::update().
| 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().
| void openmsx::HD::serialize | ( | Archive & | ar, |
| unsigned | version | ||
| ) |
Reimplemented from openmsx::DiskContainer.
Definition at line 226 of file HD.cc.
References openmsx::Sha1Sum::empty(), openmsx::Filename::empty(), openmsx::Filename, openmsx::SectorAccessibleDisk::forceWriteProtect(), openmsx::MSXMotherBoard::getMSXCliComm(), openmsx::Filename::getResolved(), getTigerTreeHash(), openmsx::CliComm::printWarning(), switchImage(), openmsx::Sha1Sum::toString(), and openmsx::Filename::updateAfterLoadState().
| void openmsx::HD::switchImage | ( | const Filename & | filename | ) |
Definition at line 127 of file HD.cc.
References openmsx::Reactor::getFilePool(), openmsx::MSXMotherBoard::getMSXCliComm(), getName(), openmsx::MSXMotherBoard::getReactor(), openmsx::CliComm::MEDIA, and openmsx::CliComm::update().
Referenced by openmsx::HDCommand::execute(), and serialize().
1.8.1.2