mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
42 lines
810 B
C++
42 lines
810 B
C++
#ifndef FLUX_H
|
|
#define FLUX_H
|
|
|
|
#include "lib/bytes.h"
|
|
|
|
class Fluxmap;
|
|
class Sector;
|
|
class Image;
|
|
class TrackInfo;
|
|
|
|
struct Record
|
|
{
|
|
nanoseconds_t clock = 0;
|
|
nanoseconds_t startTime = 0;
|
|
nanoseconds_t endTime = 0;
|
|
uint32_t position = 0;
|
|
Bytes rawData;
|
|
};
|
|
|
|
struct TrackDataFlux
|
|
{
|
|
std::shared_ptr<const TrackInfo> trackInfo;
|
|
std::shared_ptr<const Fluxmap> fluxmap;
|
|
std::vector<std::shared_ptr<const Record>> records;
|
|
std::vector<std::shared_ptr<const Sector>> sectors;
|
|
};
|
|
|
|
struct TrackFlux
|
|
{
|
|
std::shared_ptr<const TrackInfo> trackInfo;
|
|
std::vector<std::shared_ptr<TrackDataFlux>> trackDatas;
|
|
std::set<std::shared_ptr<const Sector>> sectors;
|
|
};
|
|
|
|
struct DiskFlux
|
|
{
|
|
std::vector<std::shared_ptr<TrackFlux>> tracks;
|
|
std::shared_ptr<const Image> image;
|
|
};
|
|
|
|
#endif
|