27 [[nodiscard]]
const std::string&
getName()
const {
return name; }
33 template<
typename Archive>
34 void serialize(Archive& ar,
unsigned version);
41 SectorBuffer* buffers,
size_t startSector,
size_t num)
override;
42 void writeSectorImpl(
size_t sector,
const SectorBuffer& buf)
override;
43 [[nodiscard]]
size_t getNbSectorsImpl()
const override;
44 [[nodiscard]]
bool isWriteProtectedImpl()
const override;
49 [[nodiscard]] std::string_view getContainerName()
const override;
50 [[nodiscard]]
bool diskChanged()
override;
51 int insertDisk(
const std::string& newFilename)
override;
54 [[nodiscard]] uint8_t* getData(
size_t offset,
size_t size)
override;
55 [[nodiscard]]
bool isCacheStillValid(time_t& time)
override;
57 void showProgress(
size_t position,
size_t maxPosition);
62 std::unique_ptr<HDCommand> hdCommand;
63 std::unique_ptr<TigerTree> tigerTree;
69 static constexpr
unsigned MAX_HD = 26;
70 using HDInUse = std::bitset<MAX_HD>;
71 std::shared_ptr<HDInUse> hdInUse;
73 uint64_t lastProgressTime;
This class represents a filename.
const std::string & getName() const
void switchImage(const Filename &filename)
HD(const DeviceConfig &config)
std::string getTigerTreeHash()
MSXMotherBoard & getMotherBoard() const
const Filename & getImageName() 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)