2016-07-10 14:17:53 +00:00
|
|
|
//
|
|
|
|
// G64.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 10/07/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef G64_hpp
|
|
|
|
#define G64_hpp
|
|
|
|
|
|
|
|
#include "../Disk.hpp"
|
|
|
|
|
|
|
|
namespace Storage {
|
|
|
|
|
|
|
|
class G64: public Disk {
|
|
|
|
public:
|
|
|
|
G64(const char *file_name);
|
|
|
|
~G64();
|
|
|
|
|
|
|
|
enum {
|
|
|
|
ErrorNotGCR,
|
|
|
|
ErrorUnknownVersion
|
|
|
|
};
|
|
|
|
|
|
|
|
unsigned int get_head_position_count();
|
|
|
|
std::shared_ptr<Track> get_track_at_position(unsigned int position);
|
|
|
|
|
|
|
|
private:
|
|
|
|
FILE *_file;
|
|
|
|
|
|
|
|
uint8_t _number_of_tracks;
|
|
|
|
uint16_t _maximum_track_size;
|
2016-07-15 10:51:11 +00:00
|
|
|
|
|
|
|
Time length_of_a_bit_in_time_zone(unsigned int time_zone);
|
2016-07-10 14:17:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* G64_hpp */
|