mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
35 lines
900 B
C++
35 lines
900 B
C++
#ifndef IMAGEWRITER_H
|
|
#define IMAGEWRITER_H
|
|
|
|
class SectorSet;
|
|
class OutputFileProto;
|
|
|
|
class ImageWriter
|
|
{
|
|
public:
|
|
ImageWriter(const OutputFileProto& config);
|
|
virtual ~ImageWriter() {};
|
|
|
|
public:
|
|
static std::unique_ptr<ImageWriter> create(const OutputFileProto& config);
|
|
|
|
static std::unique_ptr<ImageWriter> createImgImageWriter(
|
|
const OutputFileProto& config);
|
|
static std::unique_ptr<ImageWriter> createLDBSImageWriter(
|
|
const OutputFileProto& config);
|
|
static std::unique_ptr<ImageWriter> createD64ImageWriter(
|
|
const OutputFileProto& config);
|
|
static std::unique_ptr<ImageWriter> createDiskCopyImageWriter(
|
|
const OutputFileProto& config);
|
|
|
|
public:
|
|
void printMap(const SectorSet& sectors);
|
|
void writeCsv(const SectorSet& sectors, const std::string& filename);
|
|
virtual void writeImage(const SectorSet& sectors) = 0;
|
|
|
|
protected:
|
|
const OutputFileProto& _config;
|
|
};
|
|
|
|
#endif
|