20const string COMMENT =
"-- Memory initialization file";
23const string A_RADIX =
"ADDRESS_RADIX = DEC;";
24const string D_RADIX =
"DATA_RADIX = BIN;";
25const string BEGIN =
"CONTENT BEGIN";
26const string END =
"END;";
65 stream <<
";" << endl;
67 bool padEndings =
false;
68 for (
int i = 0; i < wordCount-1; i++) {
71 stream <<
";" << endl;
78 stream <<
";" << endl;
80 stream <<
END << endl;
89 int wordCount =
static_cast<int>(ceil((
float)
bits().size() /
rowLength()));
95 stream <<
DEPTH <<
"1" <<
";" << endl;
97 stream <<
DEPTH << wordCount <<
";" << endl;
const BitVector & bits() const
void writeSequence(std::ostream &stream, int length, bool padEnd=false) const
virtual void writeImage(std::ostream &stream) const
virtual ~MifImageWriter()
void writeHeader(std::ostream &stream) const
MifImageWriter(const BitVector &bits, int rowLength)