/[svn]/libgig/trunk/src/RIFF.h
ViewVC logotype

Diff of /libgig/trunk/src/RIFF.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1050 by schoenebeck, Fri Mar 2 01:04:45 2007 UTC revision 1184 by persson, Sun May 13 13:24:22 2007 UTC
# Line 114  namespace RIFF { Line 114  namespace RIFF {
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:
# Line 224  namespace RIFF { Line 230  namespace RIFF {
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;
# Line 252  namespace RIFF { Line 259  namespace RIFF {
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);
# Line 271  namespace RIFF { Line 279  namespace RIFF {
279              bool   bEndianNative;              bool   bEndianNative;
280    
281              void LogAsResized(Chunk* pResizedChunk);              void LogAsResized(Chunk* pResizedChunk);
282                void UnlogResized(Chunk* pResizedChunk);
283              friend class Chunk;              friend class Chunk;
284              friend class List;              friend class List;
285          private:          private:

Legend:
Removed from v.1050  
changed lines
  Added in v.1184

  ViewVC Help
Powered by ViewVC