OpenASIP
2.0
|
#include <TPEFUDataSectionWriter.hh>
Protected Member Functions | |
TPEFUDataSectionWriter () | |
virtual | ~TPEFUDataSectionWriter () |
virtual Section::SectionType | type () const |
virtual void | createKeys (const Section *sect) const |
virtual Word | elementSize (const Section *section) const |
virtual void | writeSize (BinaryStream &stream, const Section *sect) 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 | actualWriteData (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 | |
TPEFUDataSectionWriter (const TPEFUDataSectionWriter &) | |
Copying not allowed. More... | |
TPEFUDataSectionWriter | operator= (const TPEFUDataSectionWriter &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static const TPEFUDataSectionWriter | instance_ |
Unique instance of a 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 unitialized data section in to stream.
Actually implements only needed fall through methods for setting element size and section size to section header and for creating section offset keys for referred data chunks.
Definition at line 50 of file TPEFUDataSectionWriter.hh.
|
protected |
Constructor.
Registers itself to SectionWriter.
Definition at line 60 of file TPEFUDataSectionWriter.cc.
References TPEF::SectionWriter::registerSectionWriter().
|
protectedvirtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Creates keys to make able to reference UData chunks with section offsets.
sect | Section which for keys will be created. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 115 of file TPEFUDataSectionWriter.cc.
References TPEF::ReferenceManager::SafePointer::addObjectReference(), assert, TPEF::RawSection::chunk(), TPEF::ReferenceManager::SafePointer::isReferenced(), TPEF::Chunk::offset(), TPEF::RawSection::referredChunk(), TPEF::RawSection::referredChunkCount(), TPEF::ReferenceManager::SectionKey::sectionId(), and TPEF::ReferenceManager::SafePointer::sectionKeyFor().
|
protectedvirtual |
Returns the fixed size of section elements in bytes.
Size of element depends on address space of section.
section | Section which is written. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 89 of file TPEFUDataSectionWriter.cc.
References TPEF::Section::aSpace(), BYTE_BITWIDTH, and TPEF::ASpaceElement::MAU().
|
private |
Assignment not allowed.
|
protectedvirtual |
Returns the type of section, that writer can write.
Implements TPEF::TPEFSectionWriter.
Definition at line 76 of file TPEFUDataSectionWriter.cc.
References TPEF::Section::ST_UDATA.
|
protectedvirtual |
Writes section's size into stream.
stream | Stream to write. |
sect | Section which size to write. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 102 of file TPEFUDataSectionWriter.cc.
References TPEF::RawSection::length(), and TPEF::BinaryStream::writeWord().
|
staticprivate |
Unique instance of a class.
Definition at line 70 of file TPEFUDataSectionWriter.hh.