mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
mapping is now done at the last stage and should, ideally, be automatic. I'm sure there are bugs everywhere.
28 lines
637 B
C++
28 lines
637 B
C++
#ifndef ENCODERS_H
|
|
#define ENCODERS_H
|
|
|
|
class EncoderProto;
|
|
class Fluxmap;
|
|
class Image;
|
|
class Location;
|
|
class Sector;
|
|
|
|
class AbstractEncoder
|
|
{
|
|
public:
|
|
AbstractEncoder(const EncoderProto& config) {}
|
|
virtual ~AbstractEncoder() {}
|
|
|
|
static std::unique_ptr<AbstractEncoder> create(const EncoderProto& config);
|
|
|
|
public:
|
|
virtual std::vector<std::shared_ptr<const Sector>> collectSectors(
|
|
const Location& location, const Image& image) = 0;
|
|
|
|
virtual std::unique_ptr<Fluxmap> encode(const Location& location,
|
|
const std::vector<std::shared_ptr<const Sector>>& sectors,
|
|
const Image& image) = 0;
|
|
};
|
|
|
|
#endif
|