mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
The new client can (lazily) read disks now, although nothing's actually done
with the result.
This commit is contained in:
33
lib/reader.h
33
lib/reader.h
@@ -1,6 +1,37 @@
|
||||
#ifndef READER_H
|
||||
#define READER_H
|
||||
|
||||
extern int allTracks();
|
||||
class Fluxmap;
|
||||
|
||||
class Track
|
||||
{
|
||||
public:
|
||||
virtual ~Track() {}
|
||||
|
||||
int track;
|
||||
int side;
|
||||
|
||||
Fluxmap& read();
|
||||
void forceReread();
|
||||
virtual void reallyRead() = 0;
|
||||
|
||||
protected:
|
||||
bool _read = false;
|
||||
std::unique_ptr<Fluxmap> _fluxmap;
|
||||
};
|
||||
|
||||
class CapturedTrack : public Track
|
||||
{
|
||||
public:
|
||||
void reallyRead();
|
||||
};
|
||||
|
||||
class FileTrack : public Track
|
||||
{
|
||||
public:
|
||||
void reallyRead();
|
||||
};
|
||||
|
||||
extern std::vector<std::unique_ptr<Track>> readTracks();
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user