OpenASIP
2.0
|
#include <TPEFDataSectionWriter.hh>
Protected Member Functions | |
virtual | ~TPEFDataSectionWriter () |
TPEFDataSectionWriter (bool reg=true) | |
virtual Section::SectionType | type () const |
virtual void | actualWriteData (BinaryStream &stream, const Section *sect) 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 | |
TPEFDataSectionWriter (const TPEFDataSectionWriter &) | |
No copies. More... | |
TPEFDataSectionWriter | operator= (const TPEFDataSectionWriter &) |
No copies. More... | |
Static Private Attributes | |
static const TPEFDataSectionWriter | instance_ |
Only existing instance of class. 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 data section to TPEF stream.
Definition at line 48 of file TPEFDataSectionWriter.hh.
|
protectedvirtual |
|
protected |
Constructor.
Definition at line 59 of file TPEFDataSectionWriter.cc.
References TPEF::SectionWriter::registerSectionWriter().
|
private |
No copies.
|
protectedvirtual |
Writes section's data into stream.
stream | Stream where to write. |
sect | Section to be written. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 88 of file TPEFDataSectionWriter.cc.
References TPEF::ReferenceManager::SafePointer::addObjectReference(), assert, TPEF::DataSection::byte(), TPEF::RawSection::chunk(), TPEF::ReferenceManager::SafePointer::isReferenced(), TPEF::DataSection::length(), TPEF::ReferenceManager::SectionKey::sectionId(), TPEF::ReferenceManager::SafePointer::sectionKeyFor(), TPEF::SectionSizeReplacer::setSize(), TPEF::BinaryStream::writeByte(), and TPEF::BinaryStream::writePosition().
|
protectedvirtual |
Returns the fixed size of section elements, in this case smallest amount of bytes that is needed to store one MAU of address space.
section | Section which is written. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 138 of file TPEFDataSectionWriter.cc.
References TPEF::Section::aSpace(), BYTE_BITWIDTH, and TPEF::ASpaceElement::MAU().
|
private |
No copies.
|
protectedvirtual |
Returns section type which for writer is implemented.
Implements TPEF::TPEFSectionWriter.
Reimplemented in TPEF::TPEFLEDataSectionWriter.
Definition at line 77 of file TPEFDataSectionWriter.cc.
References TPEF::Section::ST_DATA.
|
staticprivate |
Only existing instance of class.
Definition at line 68 of file TPEFDataSectionWriter.hh.