compact-disc.hpp 586 B

12345678910111213
  1. struct CompactDisc : Media {
  2. auto type() -> string override { return "Compact Disc"; }
  3. auto extensions() -> vector<string> override { return {"cue"}; }
  4. auto construct() -> void override;
  5. auto manifest(string location) -> string override;
  6. auto import(string filename) -> string override;
  7. virtual auto manifestSector() const -> uint = 0;
  8. virtual auto manifest(vector<uint8_t> sector, string location) -> string = 0;
  9. auto readDataSectorBCD(string filename, uint sectorID) -> vector<uint8_t>;
  10. auto readDataSectorCUE(string filename, uint sectorID) -> vector<uint8_t>;
  11. };