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;
 
 
SectionReader(const SectionReader &)
Copying is not allowed.
 
virtual BinaryReader * parent() const =0
Returns binary reader whose sections actual section reader reads.
 
virtual void finalize(Section *section) const
 
static void registerSectionReader(const SectionReader *sReader)
 
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.
 
virtual Section::SectionType type() const =0
Returns type (TPEF) section which actual section reader reads.
 
virtual void readData(BinaryStream &stream, Section *section) const =0
Does actual reading part for constructing section.
 
static MapType * prototypes_
Contains section readers for all kinds of sections and all kinds of binary formats that are supported...
 
std::pair< const Section::SectionType, const BinaryReader * > MapKey
Key type for finding values in map of section readers.
 
static void finalizeBinary(Binary *binaryToFinalize, BinaryReader *reader)
 
static void readSection(BinaryStream &stream, Section *section, BinaryReader *reader)
 
BinaryReader::Length Length