Added a functioning (I hope) sketch of the disassembling geometry mapper code.

This commit is contained in:
David Given
2021-05-26 00:00:52 +02:00
parent c30482af66
commit e7348eaa4f
25 changed files with 175 additions and 68 deletions

18
lib/geometry/geometry.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef DGMAPPER_H
#define DGMAPPER_H
class Sector;
class GeometryProto;
class ImageReader;
class DisassemblingGeometryMapper
{
public:
virtual const Sector* get(unsigned cylinder, unsigned head, unsigned sector) const = 0;
};
extern std::unique_ptr<DisassemblingGeometryMapper> createSimpleDisassemblingGeometryMapper(
const GeometryProto& proto, ImageReader& reader);
#endif