OpenASIP
2.0
|
#include <AOutDataSectionReader.hh>
Public Member Functions | |
virtual | ~AOutDataSectionReader () |
Public Member Functions inherited from TPEF::AOutSectionReader | |
virtual | ~AOutSectionReader () |
Public Member Functions inherited from TPEF::SectionReader | |
virtual | ~SectionReader () |
Protected Member Functions | |
AOutDataSectionReader () | |
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 | |
AOutDataSectionReader (const AOutDataSectionReader &) | |
Copying not allowed. More... | |
Static Private Attributes | |
static AOutDataSectionReader | proto_ |
Prototype instance of AOutDataSectionReader to be registered to SectionReader. 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 data section from a.out binary file.
Definition at line 49 of file AOutDataSectionReader.hh.
|
virtual |
|
protected |
Constructor.
Registers itself to SectionReader.
Definition at line 57 of file AOutDataSectionReader.cc.
References TPEF::SectionReader::registerSectionReader().
|
private |
Copying not allowed.
|
protectedvirtual |
Reads data section of a.out binary file.
stream | Stream to be read from. |
section | Section where the information is to be 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 90 of file AOutDataSectionReader.cc.
References TPEF::DataSection::addByte(), assert, TPEF::AOutReader::header(), TPEF::AOutSectionReader::parent(), and TPEF::BinaryStream::readByte().
|
protectedvirtual |
Returns the type of section it is meant to read.
Implements TPEF::SectionReader.
Definition at line 73 of file AOutDataSectionReader.cc.
References TPEF::Section::ST_DATA.
|
staticprivate |
Prototype instance of AOutDataSectionReader to be registered to SectionReader.
Definition at line 66 of file AOutDataSectionReader.hh.