#include "riffform.h"
Go to the source code of this file.
Classes | |
class | RIFFFileLevel |
class | RIFFFile |
Nice class for reading RIFF files, takes a CCFile in the Init() routine to get it's data from. This doesn't view a RIFF file quite how they're actually stored on the disc. It's viewed as a series of Objects. These objects can be Chunks Start of lists End of lists End of file An object inside a list has a higher level than the list and chunks just before the list. You ask for the next object with NextObject(). This reads in the details about the next object in the file, which you can then read with the Get functions. You can get at the data with GetChunkData - this will error if the last object is not a chunk. This function reads the data into a block you give it. Alternatively, use AquireChunkData which will read it into a block maintained by this class. Data is not read unless it has to be. RepeatCurrent() will repeat the current object, giving one level of rewind. Useful for reading files with naff structures. SkipToListEnd() will skip to the end of the list of the level given. More... | |
Enumerations | |
enum | RIFFObjectType { RIFFOBJECTTYPE_NONE, RIFFOBJECTTYPE_CHUNK, RIFFOBJECTTYPE_LISTSTART, RIFFOBJECTTYPE_LISTEND, RIFFOBJECTTYPE_FILEEND } |
|
Definition at line 107 of file rifffile.h. 00107 { 00108 RIFFOBJECTTYPE_NONE, // initial condition 00109 RIFFOBJECTTYPE_CHUNK, 00110 RIFFOBJECTTYPE_LISTSTART, 00111 RIFFOBJECTTYPE_LISTEND, 00112 RIFFOBJECTTYPE_FILEEND 00113 } RIFFObjectType;
|