OpenASIP
2.0
|
#include <TPEFWriter.hh>
Static Public Member Functions | |
static const BinaryWriter & | instance () |
Protected Member Functions | |
TPEFWriter () | |
~TPEFWriter () | |
virtual void | actualWriteBinary (BinaryStream &stream, const Binary *bin) const |
Protected Member Functions inherited from TPEF::BinaryWriter | |
BinaryWriter () | |
void | setWriter (const BinaryWriter *writer) |
Static Private Attributes | |
static BinaryWriter * | instance_ = NULL |
Instance which is used for writing binary file. More... | |
Additional Inherited Members | |
Public Member Functions inherited from TPEF::BinaryWriter | |
virtual | ~BinaryWriter () |
void | writeBinary (BinaryStream &stream, const Binary *bin) const |
Class for writing TPEF binary files.
Definition at line 44 of file TPEFWriter.hh.
|
protected |
Constructor.
Definition at line 55 of file TPEFWriter.cc.
References TPEF::BinaryWriter::setWriter().
Referenced by instance().
|
protected |
|
protectedvirtual |
Writes binary object model in to a binary stream.
stream | Stream where to write. |
bin | Binary to write. |
Implements TPEF::BinaryWriter.
Definition at line 84 of file TPEFWriter.cc.
References abortWithError, TPEF::Binary::arch(), assert, TPEF::TPEFHeaders::FH_ARCH, TPEF::TPEFHeaders::FH_HEADER_SIZE, TPEF::TPEFHeaders::FH_ID, TPEF::TPEFHeaders::FH_ID_BYTES, TPEF::TPEFHeaders::FH_ID_SIZE, TPEF::TPEFHeaders::FH_SHNUM, TPEF::TPEFHeaders::FH_SHOFF, TPEF::TPEFHeaders::FH_SHSIZE, TPEF::TPEFHeaders::FH_SHSTRTAB, TPEF::TPEFHeaders::FH_SIZE, TPEF::TPEFHeaders::FH_TYPE, TPEF::Section::noBits(), TPEF::ValueReplacer::resolve(), TPEF::Binary::section(), TPEF::Binary::sectionCount(), TPEF::BinaryStream::setTPEFVersion(), TPEF::BinaryStream::setWritePosition(), TPEF::TPEFHeaders::SH_HEADER_SIZE, TPEF::Section::ST_ADDRSP, TPEF::Section::ST_MR, TPEF::Binary::strings(), TPEF::Binary::TPEFVersion(), TPEF::Binary::type(), TPEF::BinaryStream::writeByte(), TPEF::SectionWriter::writeData(), TPEF::BinaryStream::writeHalfWord(), TPEF::SectionWriter::writeHeader(), TPEF::BinaryStream::writePosition(), and TPEF::BinaryStream::writeWord().
|
static |
Returns an instance of this class (singleton).
Definition at line 70 of file TPEFWriter.cc.
References instance_, and TPEFWriter().
Referenced by TPEF::TPEFSectionWriter::parent(), and TTAProgram::Program::writeToTPEF().
|
staticprivate |
Instance which is used for writing binary file.
Definition at line 58 of file TPEFWriter.hh.
Referenced by instance().