Skeleton work to factor out the encoder logic.

This commit is contained in:
David Given
2019-08-03 22:30:30 +02:00
parent 8e1774c69f
commit 973f4c2c2d
8 changed files with 18 additions and 1 deletions

View File

@@ -22,6 +22,12 @@ public:
void decodeDataRecord();
};
class BrotherEncoder : public AbstractEncoder
{
public:
virtual ~BrotherEncoder() {}
};
extern void writeBrotherSectorHeader(std::vector<bool>& bits, unsigned& cursor,
int track, int sector);
extern void writeBrotherSectorData(std::vector<bool>& bits, unsigned& cursor,

View File

@@ -3,6 +3,7 @@
#include "fluxmap.h"
#include "decoders/fluxmapreader.h"
#include "decoders/decoders.h"
#include "encoders/encoders.h"
#include "record.h"
#include "brother.h"
#include "sector.h"

View File

@@ -1,6 +1,7 @@
#include "globals.h"
#include "record.h"
#include "decoders/decoders.h"
#include "encoders/encoders.h"
#include "brother.h"
#include "crc.h"

View File

7
lib/encoders/encoders.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef ENCODERS_H
#define ENCODERS_H
class AbstractEncoder {};
#endif

View File

@@ -150,7 +150,7 @@ buildlibrary libbackend.a \
lib/decoders/decoders.cc \
lib/decoders/fluxmapreader.cc \
lib/decoders/fmmfm.cc \
lib/encoder.cc \
lib/encoders/encoders.cc \
lib/f85/decoder.cc \
lib/fb100/decoder.cc \
lib/flags.cc \

View File

@@ -3,6 +3,7 @@
#include "reader.h"
#include "fluxmap.h"
#include "decoders/decoders.h"
#include "encoders/encoders.h"
#include "brother/brother.h"
#include "sector.h"
#include "sectorset.h"

View File

@@ -4,6 +4,7 @@
#include "sector.h"
#include "sectorset.h"
#include "decoders/decoders.h"
#include "encoders/encoders.h"
#include "brother/brother.h"
#include "image.h"
#include "writer.h"