OpenASIP
2.0
|
#include <ArrayImageWriter.hh>
Public Member Functions | |
ArrayImageWriter (const BitVector &bits, int rowLength) | |
virtual | ~ArrayImageWriter () |
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 () |
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 |
Writes the bit image with ASCII 1's and 0's such that each line is enveloped by " marks. Can be used to initialize an VHDL array, for example.
Definition at line 43 of file ArrayImageWriter.hh.
ArrayImageWriter::ArrayImageWriter | ( | const BitVector & | bits, |
int | rowLength | ||
) |
The constructor.
bits | The bits to write. |
rowLength | Length of the rows to write. |
Definition at line 45 of file ArrayImageWriter.cc.
|
virtual |
|
virtual |
Writes the bit image to the given stream.
stream | The stream to write. |
Reimplemented from AsciiImageWriter.
Reimplemented in VhdlImageWriter, ArrayProgramImageWriter, and VhdlProgramImageWriter.
Definition at line 63 of file ArrayImageWriter.cc.
References AsciiImageWriter::bits(), AsciiImageWriter::rowLength(), and AsciiImageWriter::writeSequence().
Referenced by VhdlImageWriter::writeImage().