2018-05-05 03:11:12 +00:00
|
|
|
//
|
|
|
|
// SegmentParser.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 04/05/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-05-05 03:11:12 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef TrackParser_hpp
|
|
|
|
#define TrackParser_hpp
|
|
|
|
|
|
|
|
#include "Sector.hpp"
|
|
|
|
#include "../../Track/PCMSegment.hpp"
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace Storage {
|
|
|
|
namespace Encodings {
|
|
|
|
namespace AppleGCR {
|
|
|
|
|
|
|
|
/*!
|
|
|
|
Scans @c segment for all included sectors, returning a set that maps from location within
|
|
|
|
the segment (counted in bits from the beginning) to sector.
|
|
|
|
*/
|
2019-07-11 20:28:52 +00:00
|
|
|
std::map<std::size_t, Sector> sectors_from_segment(const Disk::PCMSegment &segment);
|
2018-05-05 03:11:12 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* TrackParser_hpp */
|