2017-09-25 02:41:16 +00:00
|
|
|
//
|
|
|
|
// SegmentParser.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 24/09/2017.
|
|
|
|
// Copyright © 2017 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef SegmentParser_hpp
|
|
|
|
#define SegmentParser_hpp
|
|
|
|
|
|
|
|
#include "Sector.hpp"
|
|
|
|
#include "../../Track/PCMSegment.hpp"
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace Storage {
|
|
|
|
namespace Encodings {
|
|
|
|
namespace MFM {
|
|
|
|
|
2017-09-25 23:57:11 +00:00
|
|
|
/*!
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
std::map<size_t, Sector> SectorsFromSegment(const Disk::PCMSegment &&segment, bool is_double_density);
|
2017-09-25 02:41:16 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* SegmentParser_hpp */
|