OpenASIP
2.0
|
#include <TPEFStringSectionWriter.hh>
Protected Member Functions | |
TPEFStringSectionWriter () | |
virtual | ~TPEFStringSectionWriter () |
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 | |
TPEFStringSectionWriter (const TPEFStringSectionWriter &) | |
Copying not allowed. More... | |
TPEFStringSectionWriter & | operator= (const TPEFStringSectionWriter &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static const TPEFStringSectionWriter | instance_ |
Unique 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 the contents of TPEF string section to stream.
Definition at line 47 of file TPEFStringSectionWriter.hh.
|
protected |
Constructor.
Registers itself to SectionWriter.
Definition at line 57 of file TPEFStringSectionWriter.cc.
References TPEF::SectionWriter::registerSectionWriter().
|
protectedvirtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Writes the data of the section to the stream.
stream | The stream to be written. |
sect | The section which data is written to stream. |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 84 of file TPEFStringSectionWriter.cc.
References TPEF::ReferenceManager::SafePointer::addObjectReference(), assert, TPEF::DataSection::byte(), TPEF::Section::chunk(), 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 size of char.
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 142 of file TPEFStringSectionWriter.cc.
|
private |
Assignment not allowed.
|
protectedvirtual |
Returns the type of the section this writer can write.
Implements TPEF::TPEFSectionWriter.
Definition at line 73 of file TPEFStringSectionWriter.cc.
References TPEF::Section::ST_STRTAB.
|
staticprivate |
Unique instance of class.
Definition at line 66 of file TPEFStringSectionWriter.hh.