114 |
stream_end = 3 |
stream_end = 3 |
115 |
} stream_whence_t; |
} stream_whence_t; |
116 |
|
|
117 |
|
typedef enum { |
118 |
|
endian_little = 0, |
119 |
|
endian_big = 1, |
120 |
|
endian_native = 2 |
121 |
|
} endian_t; |
122 |
|
|
123 |
/** Provides convenient methods to access data of RIFF chunks in general. */ |
/** Provides convenient methods to access data of RIFF chunks in general. */ |
124 |
class Chunk { |
class Chunk { |
125 |
public: |
public: |
230 |
Chunk* AddSubChunk(uint32_t uiChunkID, uint uiBodySize); |
Chunk* AddSubChunk(uint32_t uiChunkID, uint uiBodySize); |
231 |
List* AddSubList(uint32_t uiListType); |
List* AddSubList(uint32_t uiListType); |
232 |
void DeleteSubChunk(Chunk* pSubChunk); |
void DeleteSubChunk(Chunk* pSubChunk); |
233 |
|
void MoveSubChunk(Chunk* pSrc, Chunk* pDst); |
234 |
virtual ~List(); |
virtual ~List(); |
235 |
protected: |
protected: |
236 |
typedef std::map<uint32_t, RIFF::Chunk*> ChunkMap; |
typedef std::map<uint32_t, RIFF::Chunk*> ChunkMap; |
259 |
File(const String& path); |
File(const String& path); |
260 |
stream_mode_t GetMode(); |
stream_mode_t GetMode(); |
261 |
bool SetMode(stream_mode_t NewMode); |
bool SetMode(stream_mode_t NewMode); |
262 |
|
void SetByteOrder(endian_t Endian); |
263 |
String GetFileName(); |
String GetFileName(); |
264 |
virtual void Save(); |
virtual void Save(); |
265 |
virtual void Save(const String& path); |
virtual void Save(const String& path); |