OpenASIP
2.0
|
#include <MifImageWriter.hh>
Public Member Functions | |
MifImageWriter (const BitVector &bits, int rowLength) | |
virtual | ~MifImageWriter () |
virtual void | writeImage (std::ostream &stream) const |
Public Member Functions inherited from AsciiImageWriter | |
AsciiImageWriter (const BitVector &bits, int rowLength) | |
virtual | ~AsciiImageWriter () |
Public Member Functions inherited from BitImageWriter | |
virtual | ~BitImageWriter () |
Private Member Functions | |
void | writeHeader (std::ostream &stream) const |
Additional Inherited Members | |
Protected Member Functions inherited from AsciiImageWriter | |
const BitVector & | bits () const |
int | rowLength () const |
void | writeSequence (std::ostream &stream, int length, bool padEnd=false) const |
void | writeHexSequence (std::ostream &stream, int length, bool padEnd=false) const |
Definition at line 17 of file MifImageWriter.hh.
MifImageWriter::MifImageWriter | ( | const BitVector & | bits, |
int | rowLength | ||
) |
The constructor.
bits | The bits to be written. |
rowLength | The length of the row in the output stream. |
Definition at line 38 of file MifImageWriter.cc.
|
virtual |
|
private |
Writes the MIF header to the given stream.
stream | The output stream. |
Definition at line 88 of file MifImageWriter.cc.
References A_RADIX, BEGIN, AsciiImageWriter::bits(), COMMENT, D_RADIX, DEPTH, AsciiImageWriter::rowLength(), and WIDTH.
Referenced by writeImage().
|
virtual |
Writes the bits to the given stream.
stream | The output stream. |
Reimplemented from AsciiImageWriter.
Definition at line 53 of file MifImageWriter.cc.
References AsciiImageWriter::bits(), END, INDENT, AsciiImageWriter::rowLength(), writeHeader(), and AsciiImageWriter::writeSequence().