mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 08:26:28 +00:00
44 lines
959 B
C++
44 lines
959 B
C++
//
|
|
// MSA.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 03/10/2019.
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "../DiskImage.hpp"
|
|
#include "../../../FileHolder.hpp"
|
|
|
|
#include <vector>
|
|
|
|
namespace Storage::Disk {
|
|
|
|
/*!
|
|
Provides a @c DiskImage describing an Atari ST MSA disk image:
|
|
a track dump with some metadata and potentially patches of RLE compression.
|
|
*/
|
|
class MSA final: public DiskImage {
|
|
public:
|
|
MSA(const std::string &file_name);
|
|
|
|
// Implemented to satisfy @c DiskImage.
|
|
HeadPosition maximum_head_position() const;
|
|
int head_count() const;
|
|
std::unique_ptr<Track> track_at_position(Track::Address) const;
|
|
bool is_read_only() const { return false; }
|
|
bool represents(const std::string &) const;
|
|
|
|
private:
|
|
mutable FileHolder file_;
|
|
uint16_t sectors_per_track_;
|
|
uint16_t sides_;
|
|
uint16_t starting_track_;
|
|
uint16_t ending_track_;
|
|
|
|
std::vector<std::vector<uint8_t>> uncompressed_tracks_;
|
|
};
|
|
|
|
}
|