Plumb the verifier stuff through the rest of the encoders; fix it to actually

work and not crash, god I hate C++.
This commit is contained in:
David Given
2021-07-19 21:46:48 +02:00
parent b887bebb26
commit 13deef3416
9 changed files with 157 additions and 29 deletions

View File

@@ -14,11 +14,11 @@ public:
static std::unique_ptr<AbstractEncoder> create(const EncoderProto& config);
public:
virtual std::vector<std::shared_ptr<Sector>> collectSectors(int physicalCylinder, int physicalHead, const Image& image)
{ return {}; }
virtual std::vector<std::shared_ptr<Sector>> collectSectors(
int physicalCylinder, int physicalHead, const Image& image) = 0;
virtual std::unique_ptr<Fluxmap> encode(
int physicalCylinder, int physicalHead, const Image& image) = 0;
virtual std::unique_ptr<Fluxmap> encode(
int physicalCylinder, int physicalHead, const std::vector<std::shared_ptr<Sector>>& sectors, const Image& image) = 0;
};
#endif