Files
fluxengine/lib/flux.h
2022-02-24 22:46:10 +01:00

40 lines
709 B
C++

#ifndef FLUX_H
#define FLUX_H
class Sector;
class Image;
struct Record
{
nanoseconds_t clock = 0;
nanoseconds_t startTime = 0;
nanoseconds_t endTime = 0;
Bytes rawData;
};
struct TrackDataFlux
{
unsigned physicalCylinder;
unsigned physicalHead;
std::shared_ptr<const Fluxmap> fluxmap;
std::vector<std::shared_ptr<const Record>> records;
std::vector<std::shared_ptr<Sector>> sectors;
};
struct TrackFlux
{
unsigned physicalCylinder;
unsigned physicalHead;
std::vector<std::shared_ptr<const TrackDataFlux>> trackDatas;
std::set<std::shared_ptr<const Sector>> sectors;
};
struct DiskFlux
{
std::vector<std::shared_ptr<const TrackFlux>> tracks;
std::unique_ptr<const Image> image;
};
#endif