#include <iff_container.h>
Public Types | |
typedef Functor1< IFFChunk &, bool > | IFFCallback |
Public Member Functions | |
IFFParser (ReadStream *stream, bool disposeStream=false, IFF_ID formHeaderID=MKTAG('F', 'O', 'R', 'M')) | |
void | parse (IFFCallback &callback) |
Protected Member Functions | |
void | setInputStream (ReadStream *stream) |
Protected Attributes | |
IFFChunkNav | _formChunk |
The root chunk of the file. | |
IFFChunkNav | _chunk |
The current chunk. | |
uint32 | _formSize |
IFF_ID | _formType |
IFF_ID | _formHeaderID |
ReadStream * | _stream |
bool | _disposeStream |
Parser for IFF containers.
typedef Functor1< IFFChunk&, bool > Common::IFFParser::IFFCallback |
Callback type for the parser.
void Common::IFFParser::parse | ( | IFFCallback & | callback | ) |
Parse the IFF container, invoking the callback on each chunk encountered. The callback can interrupt the parsing by returning 'true'.