Go to the documentation of this file.
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
Bin2nImageWriter(const BitVector &bits, int rowLength)
const BitVector & bits() const
int rowLength_
The length of a row in the output.
const BitVector & bits_
The bits to be written.
virtual void writeImage(std::ostream &stream) const
unsigned int nextBitIndex_
The index of the next bit to be written.
virtual ~Bin2nImageWriter()
static char character(const BitVector &bits, unsigned int startIndex, int length)
void writeSequence(std::ostream &stream, unsigned int length) const