Files
fluxengine/lib/sectorset.h
David Given b158692a3a Radically simplify RawRecord and Sector. It all works, and the results are
better, but I've disabled a bunch of decoders for now.
2019-04-18 21:47:34 +02:00

29 lines
523 B
C++

#ifndef SECTORSET_H
#define SECTORSET_H
class Sector;
class SectorSet
{
private:
typedef std::tuple<int, int, int> key_t;
public:
static key_t keyof(int track, int head, int sector)
{ return std::tuple<int, int, int>(track, head, sector); }
SectorSet() {};
Sector*& get(int track, int head, int sector);
Sector* get(int track, int head, int sector) const;
void calculateSize(int& numTracks, int& numHeads, int& numSectors,
int& sectorSize) const;
private:
std::map<const key_t, Sector*> _data;
};
#endif