1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00
CLK/Storage/Disk/SingleTrackDisk/SingleTrackDisk.hpp
2017-09-22 22:39:23 -04:00

35 lines
725 B
C++

//
// SingleTrackDisk.hpp
// Clock Signal
//
// Created by Thomas Harte on 10/09/2017.
// Copyright © 2017 Thomas Harte. All rights reserved.
//
#ifndef SingleTrackDisk_hpp
#define SingleTrackDisk_hpp
#include "DiskImage.hpp"
namespace Storage {
namespace Disk {
/*!
Provides a disk that has houses a single track.
*/
class SingleTrackDiskImage: public DiskImage {
public:
/// Constructs a single-track disk with the track @c track.
SingleTrackDiskImage(const std::shared_ptr<Track> &track);
unsigned int get_head_position_count();
std::shared_ptr<Track> get_track_at_position(unsigned int head, unsigned int position);
private:
std::shared_ptr<Track> track_;
};
}
}
#endif /* SingleTrackDisk_hpp */