27 [[nodiscard]]
const std::string&
getName()
const {
return name; }
36 template<
typename Archive>
37 void serialize(Archive& ar,
unsigned version);
44 std::span<SectorBuffer> buffers,
size_t startSector)
override;
45 void writeSectorImpl(
size_t sector,
const SectorBuffer& buf)
override;
46 [[nodiscard]]
size_t getNbSectorsImpl()
const override;
47 [[nodiscard]]
bool isWriteProtectedImpl()
const override;
52 [[nodiscard]] std::string_view getContainerName()
const override;
53 [[nodiscard]]
bool diskChanged()
override;
54 int insertDisk(
const std::string& newFilename)
override;
57 [[nodiscard]] uint8_t* getData(
size_t offset,
size_t size)
override;
58 [[nodiscard]]
bool isCacheStillValid(time_t& time)
override;
60 void showProgress(
size_t position,
size_t maxPosition);
65 std::optional<HDCommand> hdCommand;
66 std::optional<TigerTree> tigerTree;
72 static constexpr unsigned MAX_HD = 26;
73 using HDInUse = std::bitset<MAX_HD>;
74 std::shared_ptr<HDInUse> hdInUse;
76 uint64_t lastProgressTime;
This class represents a filename.
const Filename & getImageName() const
void switchImage(const Filename &filename)
HD(const DeviceConfig &config)
std::string getTigerTreeHash()
void getMediaInfo(TclObject &result) override
This method gets called when information is required on the media inserted in the media slot of the p...
MSXMotherBoard & getMotherBoard() const
const std::string & getName() const
void serialize(Archive &ar, unsigned version)
This class represents the result of a sha1 calculation (a 160-bit value).
The TigerTree class will query the to-be-hashed data via this abstract interface.
This file implemented 3 utility functions:
SERIALIZE_CLASS_VERSION(CassettePlayer, 2)
REGISTER_BASE_CLASS(Connector, "Connector")
size_t size(std::string_view utf8)