mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-24 11:11:02 -07:00
ImgInputOutputProto; it now only applies to img files. Make it honour the appropriate track layout setting too.
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
#ifndef IMAGEWRITER_H
|
|
#define IMAGEWRITER_H
|
|
|
|
class ImageWriterProto;
|
|
class Image;
|
|
class Config;
|
|
|
|
class ImageWriter
|
|
{
|
|
public:
|
|
ImageWriter(const ImageWriterProto& config);
|
|
virtual ~ImageWriter() {};
|
|
|
|
public:
|
|
static std::unique_ptr<ImageWriter> create(Config& config);
|
|
static std::unique_ptr<ImageWriter> create(const ImageWriterProto& config);
|
|
|
|
static std::unique_ptr<ImageWriter> createD64ImageWriter(
|
|
const ImageWriterProto& config);
|
|
static std::unique_ptr<ImageWriter> createDiskCopyImageWriter(
|
|
const ImageWriterProto& config);
|
|
static std::unique_ptr<ImageWriter> createImgImageWriter(
|
|
const ImageWriterProto& config);
|
|
static std::unique_ptr<ImageWriter> createLDBSImageWriter(
|
|
const ImageWriterProto& config);
|
|
static std::unique_ptr<ImageWriter> createNsiImageWriter(
|
|
const ImageWriterProto& config);
|
|
static std::unique_ptr<ImageWriter> createRawImageWriter(
|
|
const ImageWriterProto& config);
|
|
static std::unique_ptr<ImageWriter> createD88ImageWriter(
|
|
const ImageWriterProto& config);
|
|
static std::unique_ptr<ImageWriter> createImdImageWriter(
|
|
const ImageWriterProto& config);
|
|
|
|
public:
|
|
void printMap(const Image& sectors);
|
|
void writeCsv(const Image& sectors, const std::string& filename);
|
|
|
|
/* Writes a raw image. */
|
|
|
|
virtual void writeImage(const Image& sectors) = 0;
|
|
|
|
protected:
|
|
const ImageWriterProto& _config;
|
|
};
|
|
|
|
#endif
|