OpenASIP
2.0
|
#include <TPEFResourceSectionWriter.hh>
Protected Member Functions | |
TPEFResourceSectionWriter () | |
virtual | ~TPEFResourceSectionWriter () |
virtual Section::SectionType | type () const |
virtual void | actualWriteData (BinaryStream &stream, const Section *section) const |
virtual Word | elementSize (const Section *section) const |
Protected Member Functions inherited from TPEF::TPEFSectionWriter | |
TPEFSectionWriter () | |
virtual | ~TPEFSectionWriter () |
virtual const BinaryWriter & | parent () const |
virtual void | actualWriteHeader (BinaryStream &stream, const Section *sect) const |
virtual void | createKeys (const Section *sect) const |
virtual void | writeSize (BinaryStream &stream, const Section *sect) const |
virtual void | writeInfo (BinaryStream &stream, const Section *sect) const |
virtual SectionId | getSectionId () const |
Protected Member Functions inherited from TPEF::SectionWriter | |
SectionWriter () | |
virtual | ~SectionWriter () |
virtual void | finalize (BinaryStream &stream, Section *section) const |
Private Member Functions | |
TPEFResourceSectionWriter (const TPEFResourceSectionWriter &) | |
Copying not allowed. More... | |
TPEFResourceSectionWriter | operator= (const TPEFResourceSectionWriter &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static const TPEFResourceSectionWriter | instance_ |
An unique instance of class. More... | |
static const Word | elementSize_ = 11 |
The fixed size element. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from TPEF::SectionWriter | |
static void | writeHeader (BinaryStream &stream, const Section *sect, const BinaryWriter *writer) |
static void | writeData (BinaryStream &stream, const Section *sect, const BinaryWriter *writer) |
static void | finalizeBinary (BinaryStream &stream, const Binary *binaryToFinalize, const BinaryWriter *writer) |
Static Protected Member Functions inherited from TPEF::SectionWriter | |
static void | registerSectionWriter (const SectionWriter *sWriter) |
static SectionId | getUniqueSectionId () |
Writes TPEF Processor Resource Table section to stream.
Definition at line 46 of file TPEFResourceSectionWriter.hh.
|
protected |
Constructor.
Registers itself to SectionWriter.
Definition at line 62 of file TPEFResourceSectionWriter.cc.
References TPEF::SectionWriter::registerSectionWriter().
|
protectedvirtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Writes the data of the section in to stream.
stream | The stream to be written to. |
sect | The section to be written. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 90 of file TPEFResourceSectionWriter.cc.
References TPEF::ReferenceManager::SafePointer::addObjectReference(), assert, TPEF::Section::element(), TPEF::Section::elementCount(), TPEF::ResourceElement::id(), TPEF::ResourceElement::info(), TPEF::ResourceElement::name(), TPEF::ValueReplacer::resolve(), TPEF::SectionSizeReplacer::setSize(), TPEF::ResourceElement::type(), TPEF::BinaryStream::writeByte(), TPEF::BinaryStream::writeHalfWord(), TPEF::BinaryStream::writePosition(), and TPEF::BinaryStream::writeWord().
|
protectedvirtual |
Returns the fixed size length of section elements.
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 144 of file TPEFResourceSectionWriter.cc.
References elementSize_.
|
private |
Assignment not allowed.
|
protectedvirtual |
Returns the section type this writer can write.
Implements TPEF::TPEFSectionWriter.
Definition at line 79 of file TPEFResourceSectionWriter.cc.
References TPEF::Section::ST_MR.
|
staticprivate |
The fixed size element.
Definition at line 69 of file TPEFResourceSectionWriter.hh.
Referenced by elementSize().
|
staticprivate |
An unique instance of class.
Definition at line 67 of file TPEFResourceSectionWriter.hh.