ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Parser for IFF containers. More...

#include <iff_container.h>

Collaboration diagram for Common::IFFParser:

List of all members.

Classes

class  IFFChunkNav
 This private class implements IFF chunk navigation. More...

Public Types

typedef Functor1< IFFChunk
&, bool > 
IFFCallback
 Callback type for the parser.

Public Member Functions

 IFFParser (ReadStream *stream, bool disposeStream=false)
 ~IFFParser ()
void parse (IFFCallback &callback)
 Parse the IFF container, invoking the callback on each chunk encountered.

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
ReadStream_stream
bool _disposeStream

Detailed Description

Parser for IFF containers.

Definition at line 162 of file iff_container.h.


Member Typedef Documentation

Callback type for the parser.

Definition at line 233 of file iff_container.h.


Constructor & Destructor Documentation

Common::IFFParser::IFFParser ( ReadStream stream,
bool  disposeStream = false 
)

Definition at line 29 of file iff_container.cpp.

Common::IFFParser::~IFFParser (  ) 

Definition at line 33 of file iff_container.cpp.


Member Function Documentation

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'.

Definition at line 53 of file iff_container.cpp.

void Common::IFFParser::setInputStream ( ReadStream stream  )  [protected]

Definition at line 40 of file iff_container.cpp.


Member Data Documentation

The current chunk.

Definition at line 216 of file iff_container.h.

Definition at line 222 of file iff_container.h.

The root chunk of the file.

Definition at line 215 of file iff_container.h.

Definition at line 218 of file iff_container.h.

Definition at line 219 of file iff_container.h.

Definition at line 221 of file iff_container.h.


The documentation for this class was generated from the following files:


Generated on Sat Jan 12 2019 05:04:11 for ResidualVM by doxygen 1.7.1
curved edge   curved edge