Split the Layout class.

This commit is contained in:
David Given
2022-09-16 00:07:22 +02:00
parent 82f61eee12
commit 4a565b5ea0
24 changed files with 70 additions and 67 deletions

View File

@@ -61,7 +61,7 @@ std::unique_ptr<Decoder> Decoder::create(const DecoderProto& config)
}
std::shared_ptr<TrackDataFlux> Decoder::decodeToSectors(
std::shared_ptr<const Fluxmap> fluxmap, std::shared_ptr<const Layout>& layout)
std::shared_ptr<const Fluxmap> fluxmap, std::shared_ptr<const Track>& layout)
{
_trackdata = std::make_shared<TrackDataFlux>();
_trackdata->fluxmap = fluxmap;
@@ -222,7 +222,7 @@ uint64_t Decoder::readRaw64()
}
std::set<LogicalLocation> Decoder::requiredSectors(
std::shared_ptr<const Layout>& layout) const
std::shared_ptr<const Track>& layout) const
{
const auto trackLayout =
Layout::getLayoutOfTrackPhysical(layout->physicalTrack, layout->physicalSide);