Files
fluxengine/lib/mapper.h
David Given d303067deb Massive refactor to work in logical cylinders everywhere. The logical/physical
mapping is now done at the last stage and should, ideally, be automatic. I'm
sure there are bugs everywhere.
2022-03-25 00:22:28 +01:00

23 lines
593 B
C++

#ifndef MAPPER_H
#define MAPPER_H
class SectorMappingProto;
class DriveProto;
class Location;
class Mapper
{
public:
static std::unique_ptr<const Image> remapSectorsPhysicalToLogical(
const Image& source, const SectorMappingProto& mapping);
static std::unique_ptr<const Image> remapSectorsLogicalToPhysical(
const Image& source, const SectorMappingProto& mapping);
static unsigned remapCylinderPhysicalToLogical(unsigned cylinder);
static unsigned remapCylinderLogicalToPhysical(unsigned cylinder);
static std::set<Location> computeLocations();
};
#endif