OpenASIP
2.0
|
#include <AOutStringSectionReader.hh>
Public Member Functions | |
virtual | ~AOutStringSectionReader () |
Public Member Functions inherited from TPEF::AOutSectionReader | |
virtual | ~AOutSectionReader () |
Public Member Functions inherited from TPEF::SectionReader | |
virtual | ~SectionReader () |
Protected Member Functions | |
AOutStringSectionReader () | |
virtual void | readData (BinaryStream &stream, Section *section) const |
virtual Section::SectionType | type () const |
Protected Member Functions inherited from TPEF::AOutSectionReader | |
AOutSectionReader () | |
virtual BinaryReader * | parent () const |
Protected Member Functions inherited from TPEF::SectionReader | |
SectionReader () | |
virtual void | finalize (Section *section) const |
Private Member Functions | |
AOutStringSectionReader (const AOutStringSectionReader &) | |
Copying not allowed. More... | |
AOutStringSectionReader & | operator= (const AOutStringSectionReader &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static AOutStringSectionReader | proto_ |
Static attribute enables registering to SectionReader before main function is executed. More... | |
Additional Inherited Members | |
Public Types inherited from TPEF::SectionReader | |
typedef BinaryReader::Length | Length |
Static Public Member Functions inherited from TPEF::SectionReader | |
static void | readSection (BinaryStream &stream, Section *section, BinaryReader *reader) |
static void | finalizeBinary (Binary *binaryToFinalize, BinaryReader *reader) |
Static Protected Member Functions inherited from TPEF::SectionReader | |
static const SectionReader * | findSectionReader (const Section::SectionType type, const BinaryReader *bReader) |
static void | registerSectionReader (const SectionReader *sReader) |
Reads string section from a.out binary file.
Definition at line 47 of file AOutStringSectionReader.hh.
|
virtual |
|
protected |
Constructor.
Registers to SectionReader.
Definition at line 56 of file AOutStringSectionReader.cc.
References TPEF::SectionReader::registerSectionReader().
|
private |
Copying not allowed.
|
private |
Assignment not allowed.
|
protectedvirtual |
Reads string section from a.out binary file.
Reads section from stream and makes sure that section starts withs zero.
stream | Stream to be read from. |
section | Section where to the information is stored. |
UnreachableStream | If reading of section fails. |
KeyAlreadyExists | Key was in use when trying to register object. |
EndOfFile | If end of file were reached while it shouldn't. |
OutOfRange | Some of read values were out of range. |
WrongSubclass | Some class couldn't do what it was asked for. |
UnexpectedValue | If there was unexpected value when reading. |
Implements TPEF::SectionReader.
Definition at line 92 of file AOutStringSectionReader.cc.
References TPEF::DataSection::addByte(), assert, TPEF::DataSection::byte(), TPEF::RawSection::chunk(), TPEF::AOutReader::header(), TPEF::DataSection::length(), TPEF::AOutSectionReader::parent(), and TPEF::BinaryStream::readByte().
|
protectedvirtual |
Returns the type of section that this class can read.
Implements TPEF::SectionReader.
Definition at line 72 of file AOutStringSectionReader.cc.
References TPEF::Section::ST_STRTAB.
|
staticprivate |
Static attribute enables registering to SectionReader before main function is executed.
Definition at line 66 of file AOutStringSectionReader.hh.