mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 18:31:53 +00:00
31 lines
645 B
C++
31 lines
645 B
C++
//
|
|
// 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 {
|
|
|
|
/*!
|
|
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<std::size_t, Sector> sectors_from_segment(const Disk::PCMSegment &&segment, bool is_double_density);
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /* SegmentParser_hpp */
|