The new client can (lazily) read disks now, although nothing's actually done

with the result.
This commit is contained in:
David Given
2018-10-20 15:54:18 +02:00
parent 7efaae2f76
commit 7d765abb21
7 changed files with 154 additions and 31 deletions

View File

@@ -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