Go to the documentation of this file.
34 #ifndef TTA_SECTIONREADER_HH
35 #define TTA_SECTIONREADER_HH
94 std::pair<const Section::SectionType, const BinaryReader*>
MapKey;
97 typedef std::map<MapKey, const SectionReader*>
MapType;
BinaryReader::Length Length
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.
static void finalizeBinary(Binary *binaryToFinalize, BinaryReader *reader)
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)