|
OpenASIP 2.2
|
#include <TPEFASpaceSectionReader.hh>


Protected Member Functions | |
| TPEFASpaceSectionReader () | |
| virtual | ~TPEFASpaceSectionReader () |
| virtual void | readData (BinaryStream &stream, Section *section) const |
| virtual Section::SectionType | type () const |
Protected Member Functions inherited from TPEF::TPEFSectionReader | |
| TPEFSectionReader () | |
| virtual BinaryReader * | parent () const |
| virtual void | readInfo (BinaryStream &stream, Section *sect) const |
Protected Member Functions inherited from TPEF::SectionReader | |
| SectionReader () | |
| virtual void | finalize (Section *section) const |
Private Member Functions | |
| TPEFASpaceSectionReader (const TPEFASpaceSectionReader &) | |
| Copying not allowed. | |
| TPEFASpaceSectionReader & | operator= (TPEFASpaceSectionReader &) |
| Assignment not allowed. | |
Static Private Attributes | |
| static TPEFASpaceSectionReader | proto_ |
| Prototype instance of TPEFASpaceSectionReader to be registered to SectionReader. | |
Additional Inherited Members | |
Public Types inherited from TPEF::SectionReader | |
| typedef BinaryReader::Length | Length |
Public Member Functions inherited from TPEF::TPEFSectionReader | |
| virtual | ~TPEFSectionReader () |
Public Member Functions inherited from TPEF::SectionReader | |
| virtual | ~SectionReader () |
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::TPEFSectionReader | |
| static const Header & | header () |
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 address space section from TPEF binary file.
Definition at line 46 of file TPEFASpaceSectionReader.hh.
|
protected |
Constructor.
Registers itself to SectionReader.
Definition at line 57 of file TPEFASpaceSectionReader.cc.
References TPEF::SectionReader::registerSectionReader().

|
protectedvirtual |
|
private |
Copying not allowed.
|
private |
Assignment not allowed.
|
protectedvirtual |
Reads section data from TPEF 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 value were out of range. |
| WrongSubclass | Some class couldn't do what it was asked for. |
| UnexpectedValue | If there was unexpected value when reading. |
Reimplemented from TPEF::TPEFSectionReader.
Definition at line 90 of file TPEFASpaceSectionReader.cc.
References TPEF::Section::addElement(), TPEF::ReferenceManager::SafePointer::addObjectReference(), TPEF::ASpaceElement::align(), assert, TPEF::TPEFSectionReader::Header::bodyOffset, TPEF::TPEFSectionReader::Header::elementSize, TPEF::TPEFSectionReader::header(), TPEF::ASpaceElement::MAU(), TPEF::Section::noBits(), TPEF::ReferenceManager::SectionOffsetKey::offset(), TPEF::TPEFSectionReader::parent(), TPEF::BinaryStream::readByte(), TPEF::TPEFSectionReader::readData(), TPEF::BinaryStream::readWord(), TPEF::ASpaceElement::setAlign(), TPEF::ASpaceElement::setMAU(), TPEF::ASpaceElement::setName(), TPEF::BinaryStream::setReadPosition(), TPEF::ASpaceSection::setUndefinedASpace(), TPEF::ASpaceElement::setWordSize(), and TPEF::ASpaceElement::wordSize().

|
protectedvirtual |
Returns the type of section it is meant to read.
Implements TPEF::SectionReader.
Definition at line 73 of file TPEFASpaceSectionReader.cc.
References TPEF::Section::ST_ADDRSP.
|
staticprivate |
Prototype instance of TPEFASpaceSectionReader to be registered to SectionReader.
Definition at line 63 of file TPEFASpaceSectionReader.hh.