OpenASIP
2.0
|
#include <TPEFNullSectionWriter.hh>
Protected Member Functions | |
TPEFNullSectionWriter () | |
virtual | ~TPEFNullSectionWriter () |
virtual Section::SectionType | type () const |
virtual Word | elementSize (const Section *section) const |
virtual SectionId | getSectionId () 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 | createKeys (const Section *sect) const |
virtual void | writeInfo (BinaryStream &stream, const Section *sect) const |
Protected Member Functions inherited from TPEF::SectionWriter | |
SectionWriter () | |
virtual | ~SectionWriter () |
virtual void | finalize (BinaryStream &stream, Section *section) const |
Private Member Functions | |
TPEFNullSectionWriter (const TPEFNullSectionWriter &) | |
Copying not allowed. More... | |
TPEFNullSectionWriter | operator= (const TPEFNullSectionWriter &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static const TPEFNullSectionWriter | 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 Null section in to stream.
Definition at line 45 of file TPEFNullSectionWriter.hh.
|
protected |
Constructor.
Registers itself to SectionWriter.
Definition at line 54 of file TPEFNullSectionWriter.cc.
References TPEF::SectionWriter::registerSectionWriter().
|
protectedvirtual |
|
private |
Copying not allowed.
|
protectedvirtual |
Returns the size of section elements. The null section has no elements, so the size of elements is undefined. Returns always zero.
section | Section whose element size is to be written out (not used). |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 82 of file TPEFNullSectionWriter.cc.
|
protectedvirtual |
Returns the identification code of the section.
Zero is the numeric code reserved for identifying null sections.
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 94 of file TPEFNullSectionWriter.cc.
|
private |
Assignment not allowed.
|
protectedvirtual |
Returns which type of sections can be written out by this writer.
Implements TPEF::TPEFSectionWriter.
Definition at line 70 of file TPEFNullSectionWriter.cc.
References TPEF::Section::ST_NULL.
|
protectedvirtual |
Writes the size of a null section into an output stream.
The size of a null section is always zero.
stream | Output stream. |
sect | Section whose size has to be written out (not used). |
Reimplemented from TPEF::TPEFSectionWriter.
Definition at line 107 of file TPEFNullSectionWriter.cc.
References TPEF::BinaryStream::writeWord().
|
staticprivate |
Unique instance of a class.
Definition at line 65 of file TPEFNullSectionWriter.hh.