mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
34 lines
626 B
C++
34 lines
626 B
C++
#include "globals.h"
|
|
#include "fluxmap.h"
|
|
#include "kryoflux.h"
|
|
#include "fluxsource/fluxsource.h"
|
|
|
|
class StreamFluxSource : public FluxSource
|
|
{
|
|
public:
|
|
StreamFluxSource(const std::string& path):
|
|
_path(path)
|
|
{
|
|
}
|
|
|
|
~StreamFluxSource()
|
|
{
|
|
}
|
|
|
|
public:
|
|
std::unique_ptr<Fluxmap> readFlux(int track, int side)
|
|
{
|
|
return readStream(_path, track, side);
|
|
}
|
|
|
|
void recalibrate() {}
|
|
|
|
private:
|
|
const std::string _path;
|
|
};
|
|
|
|
std::unique_ptr<FluxSource> FluxSource::createStreamFluxSource(const std::string& path)
|
|
{
|
|
return std::unique_ptr<FluxSource>(new StreamFluxSource(path));
|
|
}
|