33#ifndef TTA_BIN2N_IMAGE_WRITER_HH
34#define TTA_BIN2N_IMAGE_WRITER_HH
51 virtual void writeImage(std::ostream& stream)
const;
55 void writeSequence(std::ostream& stream,
unsigned int length)
const;
unsigned int nextPowerOf2(unsigned int n) const
virtual void writeImage(std::ostream &stream) const
void writeSequence(std::ostream &stream, unsigned int length) const
int rowLength_
The length of a row in the output.
unsigned int nextBitIndex_
The index of the next bit to be written.
const BitVector & bits_
The bits to be written.
static char character(const BitVector &bits, unsigned int startIndex, int length)
const BitVector & bits() const
virtual ~Bin2nImageWriter()