Go to the documentation of this file.
89 sectionReader->
readData(stream, section);
133 "SectionReader::findSectionReader");
157 (*prototypes_)[key] = reader;
static MapType * prototypes_
Contains section readers for all kinds of sections and all kinds of binary formats that are supported...
virtual void readData(BinaryStream &stream, Section *section) const =0
Does actual reading part for constructing section.
virtual SectionType type() const =0
Returns SectioType of actual section instance.
static void finalizeBinary(Binary *binaryToFinalize, BinaryReader *reader)
Section * section(Word index) const
Word sectionCount() const
#define assert(condition)
virtual void finalize(Section *section) const
virtual BinaryReader * parent() const =0
Returns binary reader whose sections actual section reader reads.
static void registerSectionReader(const SectionReader *sReader)
virtual Section::SectionType type() const =0
Returns type (TPEF) section which actual section reader reads.
std::pair< const Section::SectionType, const BinaryReader * > MapKey
Key type for finding values in map of section readers.
static const SectionReader * findSectionReader(const Section::SectionType type, const BinaryReader *bReader)
std::map< MapKey, const SectionReader * > MapType
Map type that contains instances of registered section readers.
static void readSection(BinaryStream &stream, Section *section, BinaryReader *reader)