/[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 55 by schoenebeck, Tue Apr 27 09:06:07 2004 UTC revision 2916 by schoenebeck, Tue May 17 19:58:09 2016 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   libgig - C++ cross-platform Gigasampler format file loader library    *   *   libgig - C++ cross-platform Gigasampler format file access library    *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Christian Schoenebeck                     *   *   Copyright (C) 2003-2016 by Christian Schoenebeck                      *
6   *                               <cuse@users.sourceforge.net>              *   *                              <cuse@users.sourceforge.net>               *
7   *                                                                         *   *                                                                         *
8   *   This library is free software; you can redistribute it and/or modify  *   *   This library is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 24  Line 24 
24  #ifndef __RIFF_H__  #ifndef __RIFF_H__
25  #define __RIFF_H__  #define __RIFF_H__
26    
27  #define POSIX 1  #ifdef WIN32
28  #define DEBUG 0  # define POSIX 0
29    #endif
30    
31    #ifndef POSIX
32    # define POSIX 1
33    #endif
34    
35    #ifndef DEBUG
36    # define DEBUG 0
37    #endif
38    
39  #include <string>  #include <string>
40  #include <list>  #include <list>
41  #include <map>  #include <map>
42    #include <set>
43  #include <iostream>  #include <iostream>
44    
45  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
# Line 43  Line 53 
53  # include <unistd.h>  # include <unistd.h>
54  #endif // POSIX  #endif // POSIX
55    
56    #ifdef _MSC_VER
57    // Visual C++ 2008 doesn't have stdint.h
58    typedef __int8 int8_t;
59    typedef __int16 int16_t;
60    typedef __int32 int32_t;
61    typedef __int64 int64_t;
62    typedef unsigned __int8 uint8_t;
63    typedef unsigned __int16 uint16_t;
64    typedef unsigned __int32 uint32_t;
65    typedef unsigned __int64 uint64_t;
66    #else
67  #include <stdint.h>  #include <stdint.h>
68    #endif
69    
70  //typedef unsigned char  uint8_t;  #ifdef WIN32
71  //typedef unsigned short uint16_t;  # if (_WIN32 && !_WIN64) || (__GNUC__ && !(__x86_64__ || __ppc64__)) /* if 32 bit windows compilation */
72  //typedef unsigned int   uint32_t;  #  define _WIN32_WINNT 0x0501 /* Win XP (no service pack): required for 32 bit compilation for GetFileSizeEx() to be declared by windows.h */
73    # endif
74    # include <windows.h>
75      typedef unsigned int   uint;
76    #endif // WIN32
77    
78  #include <stdio.h>  #include <stdio.h>
79    
# Line 55  Line 81 
81  # define CHUNK_ID_RIFF  0x52494646  # define CHUNK_ID_RIFF  0x52494646
82  # define CHUNK_ID_RIFX  0x52494658  # define CHUNK_ID_RIFX  0x52494658
83  # define CHUNK_ID_LIST  0x4C495354  # define CHUNK_ID_LIST  0x4C495354
84    
85    # define LIST_TYPE_INFO 0x494E464F
86    # define CHUNK_ID_ICMT  0x49434D54
87    # define CHUNK_ID_ICOP  0x49434F50
88    # define CHUNK_ID_ICRD  0x49435244
89    # define CHUNK_ID_IENG  0x49454E47
90    # define CHUNK_ID_INAM  0x494E414D
91    # define CHUNK_ID_IPRD  0x49505244
92    # define CHUNK_ID_ISFT  0x49534654
93    
94    # define CHUNK_ID_SMPL  0x736D706C
95    
96  #else  // little endian  #else  // little endian
97  # define CHUNK_ID_RIFF  0x46464952  # define CHUNK_ID_RIFF  0x46464952
98  # define CHUNK_ID_RIFX  0x58464952  # define CHUNK_ID_RIFX  0x58464952
99  # define CHUNK_ID_LIST  0x5453494C  # define CHUNK_ID_LIST  0x5453494C
 #endif // WORDS_BIGENDIAN  
100    
101  #define CHUNK_HEADER_SIZE       8  # define LIST_TYPE_INFO 0x4F464E49
102  #define LIST_HEADER_SIZE        12  # define CHUNK_ID_ICMT  0x544D4349
103  #define RIFF_HEADER_SIZE        12  # define CHUNK_ID_ICOP  0x504F4349
104    # define CHUNK_ID_ICRD  0x44524349
105    # define CHUNK_ID_IENG  0x474E4549
106    # define CHUNK_ID_INAM  0x4D414E49
107    # define CHUNK_ID_IPRD  0x44525049
108    # define CHUNK_ID_ISFT  0x54465349
109    
110    # define CHUNK_ID_SMPL  0x6C706D73
111    
112    #endif // WORDS_BIGENDIAN
113    
114  /** RIFF specific classes and definitions */  #define CHUNK_HEADER_SIZE(fileOffsetSize)   (4 + fileOffsetSize)
115    #define LIST_HEADER_SIZE(fileOffsetSize)    (8 + fileOffsetSize)
116    #define RIFF_HEADER_SIZE(fileOffsetSize)    (8 + fileOffsetSize)
117    
118    /**
119     * @brief RIFF specific classes and definitions
120     *
121     * The Resource Interchange File Format (RIFF) is a generic tree-structured
122     * meta-format which stores data in so called "chunks". It can be compared
123     * to XML, but in contrast to XML, RIFF is entirely binary encoded, that is
124     * not ASCII based. RIFF is used as basis for many file formats like AVI,
125     * WAV, DLS and of course the Gigasampler file format. ;-)
126     *
127     * RIFF chunks can be seen as containers for data. There are two distinct
128     * types of chunks:
129     *
130     * - @e ordinary @e chunks are the leafs of the data tree which encapsulate
131     *   the actual data of the file (i.e. the sample data of a .wav file)
132     *
133     * - @e list @e chunks are the nodes of the data tree which hold an
134     *   arbitrary amount of subchunks (can be both, list chunks and/or ordinary
135     *   chunks)
136     */
137  namespace RIFF {  namespace RIFF {
138    
139      /* just symbol prototyping */      /* just symbol prototyping */
140      class Chunk;      class Chunk;
141      class List;      class List;
142        class File;
143    
144      typedef std::string String;      typedef std::string String;
145    
146        /** Type used by libgig for handling file positioning during file I/O tasks. */
147        typedef uint64_t file_offset_t;
148    
149        /** Whether file stream is open in read or in read/write mode. */
150        typedef enum {
151            stream_mode_read       = 0,
152            stream_mode_read_write = 1,
153            stream_mode_closed     = 2
154        } stream_mode_t;
155    
156      /** Current state of the file stream. */      /** Current state of the file stream. */
157      typedef enum {      typedef enum {
158          stream_ready       = 0,          stream_ready       = 0,
# Line 90  namespace RIFF { Line 168  namespace RIFF {
168          stream_end      = 3          stream_end      = 3
169      } stream_whence_t;      } stream_whence_t;
170    
171      /** Provides convenient methods to access data of RIFF chunks in general. */      /** Alignment of data bytes in memory (system dependant). */
172        typedef enum {
173            endian_little = 0,
174            endian_big    = 1,
175            endian_native = 2
176        } endian_t;
177    
178        /** General RIFF chunk structure of a RIFF file. */
179        enum layout_t {
180            layout_standard = 0, ///< Standard RIFF file layout: First chunk in file is a List chunk which contains all other chunks and there are no chunks outside the scope of that very first (List) chunk.
181            layout_flat     = 1  ///< Not a "real" RIFF file: First chunk in file is an ordinary data chunk, not a List chunk, and there might be other chunks after that first chunk.
182        };
183    
184        /** Size of RIFF file offsets used in all RIFF chunks' headers. @see File::GetFileOffsetSize() */
185        enum offset_size_t {
186            offset_size_auto  = 0, ///< Use 32 bit offsets for files smaller than 4 GB, use 64 bit offsets for files equal or larger than 4 GB.
187            offset_size_32bit = 4, ///< Always use 32 bit offsets (even for files larger than 4 GB).
188            offset_size_64bit = 8  ///< Always use 64 bit offsets (even for files smaller than 4 GB).
189        };
190    
191        /**
192         * @brief Used for indicating the progress of a certain task.
193         *
194         * The function pointer argument has to be supplied with a valid
195         * function of the given signature which will then be called on
196         * progress changes. An equivalent progress_t structure will be passed
197         * back as argument to the callback function on each progress change.
198         * The factor field of the supplied progress_t structure will then
199         * reflect the current progress as value between 0.0 and 1.0. You might
200         * want to use the custom field for data needed in your callback
201         * function.
202         */
203        struct progress_t {
204            void (*callback)(progress_t*); ///< Callback function pointer which has to be assigned to a function for progress notification.
205            float factor;                  ///< Reflects current progress as value between 0.0 and 1.0.
206            void* custom;                  ///< This pointer can be used for arbitrary data.
207            float __range_min;             ///< Only for internal usage, do not modify!
208            float __range_max;             ///< Only for internal usage, do not modify!
209            progress_t();
210        };
211    
212        /** @brief Ordinary RIFF Chunk
213         *
214         * Provides convenient methods to access data of ordinary RIFF chunks
215         * in general.
216         */
217      class Chunk {      class Chunk {
218          public:          public:
219              #if POSIX              Chunk(File* pFile, file_offset_t StartPos, List* Parent);
220              Chunk(int hFile, unsigned long StartPos, bool EndianNative, List* Parent);              String         GetChunkIDString() const;
221              #else              uint32_t       GetChunkID() const { return ChunkID; }       ///< Chunk ID in unsigned integer representation.
222              Chunk(FILE* hFile, unsigned long StartPos, bool EndianNative, List* Parent);              File*          GetFile() const    { return pFile;   }       ///< Returns pointer to the chunk's File object.
223              #endif // POSIX              List*          GetParent() const  { return pParent; }       ///< Returns pointer to the chunk's parent list chunk.
224              String         GetChunkIDString();              file_offset_t  GetSize() const { return ullCurrentChunkSize; } ///< Chunk size in bytes (without header, thus the chunk data body)
225              uint32_t       GetChunkID() { return ChunkID; };            ///< Chunk ID in unsigned integer representation.              file_offset_t  GetNewSize() const { return ullNewChunkSize; } ///< New chunk size if it was modified with Resize(), otherwise value returned will be equal to GetSize().
226              List*          GetParent()  { return pParent; };            ///< Returns pointer to the chunk's parent list chunk.              file_offset_t  GetPos() const { return ullPos; }            ///< Position within the chunk data body (starting with 0).
227              unsigned long  GetSize()    { return ChunkSize; };          ///< Chunk size in bytes (without header, thus the chunk data body)              file_offset_t  GetFilePos() const { return ullStartPos + ullPos; } ///< Current, actual offset of chunk data body start in file.
228              unsigned long  GetPos()     { return ulPos; };              ///< Position within the chunk data body              file_offset_t  SetPos(file_offset_t Where, stream_whence_t Whence = stream_start);
229              unsigned long  GetFilePos() { return ulStartPos + ulPos; }; ///< Current, actual offset in file.              file_offset_t  RemainingBytes() const;
230              unsigned long  SetPos(unsigned long Where, stream_whence_t Whence = stream_start);              stream_state_t GetState() const;
231              unsigned long  RemainingBytes();              file_offset_t  Read(void* pData, file_offset_t WordCount, file_offset_t WordSize);
232              stream_state_t GetState();              file_offset_t  ReadInt8(int8_t* pData,     file_offset_t WordCount = 1);
233              unsigned long  Read(void* pData, unsigned long WordCount, unsigned long WordSize);              file_offset_t  ReadUint8(uint8_t* pData,   file_offset_t WordCount = 1);
234              unsigned long  ReadInt8(int8_t* pData,     unsigned long WordCount = 1);              file_offset_t  ReadInt16(int16_t* pData,   file_offset_t WordCount = 1);
235              unsigned long  ReadUint8(uint8_t* pData,   unsigned long WordCount = 1);              file_offset_t  ReadUint16(uint16_t* pData, file_offset_t WordCount = 1);
236              unsigned long  ReadInt16(int16_t* pData,   unsigned long WordCount = 1);              file_offset_t  ReadInt32(int32_t* pData,   file_offset_t WordCount = 1);
237              unsigned long  ReadUint16(uint16_t* pData, unsigned long WordCount = 1);              file_offset_t  ReadUint32(uint32_t* pData, file_offset_t WordCount = 1);
             unsigned long  ReadInt32(int32_t* pData,   unsigned long WordCount = 1);  
             unsigned long  ReadUint32(uint32_t* pData, unsigned long WordCount = 1);  
238              int8_t         ReadInt8();              int8_t         ReadInt8();
239              uint8_t        ReadUint8();              uint8_t        ReadUint8();
240              int16_t        ReadInt16();              int16_t        ReadInt16();
241              uint16_t       ReadUint16();              uint16_t       ReadUint16();
242              int32_t        ReadInt32();              int32_t        ReadInt32();
243              uint32_t       ReadUint32();              uint32_t       ReadUint32();
244              void*          LoadChunkData();     ///< Load the whole chunk body in memory (on success returns a pointer to the data in RAM, else NULL).              void           ReadString(String& s, int size);
245              void           ReleaseChunkData();  ///< Free loaded chunk body data from memory (RAM).              file_offset_t  Write(void* pData, file_offset_t WordCount, file_offset_t WordSize);
246             ~Chunk();              file_offset_t  WriteInt8(int8_t* pData,     file_offset_t WordCount = 1);
247                file_offset_t  WriteUint8(uint8_t* pData,   file_offset_t WordCount = 1);
248                file_offset_t  WriteInt16(int16_t* pData,   file_offset_t WordCount = 1);
249                file_offset_t  WriteUint16(uint16_t* pData, file_offset_t WordCount = 1);
250                file_offset_t  WriteInt32(int32_t* pData,   file_offset_t WordCount = 1);
251                file_offset_t  WriteUint32(uint32_t* pData, file_offset_t WordCount = 1);
252                void*          LoadChunkData();
253                void           ReleaseChunkData();
254                void           Resize(file_offset_t NewSize);
255                virtual ~Chunk();
256          protected:          protected:
257              uint32_t      ChunkID;              uint32_t      ChunkID;
258              uint32_t      ChunkSize;            /* in bytes */              file_offset_t ullCurrentChunkSize;          /* in bytes */
259                file_offset_t ullNewChunkSize;                      /* in bytes (if chunk was scheduled to be resized) */
260              List*         pParent;              List*         pParent;
261              #if POSIX              File*         pFile;
262              int           hFile;              file_offset_t ullStartPos;  /* actual position in file where chunk data (without header) starts */
263              #else              file_offset_t ullPos;       /* # of bytes from ulStartPos */
             FILE*         hFile;  
             #endif // POSIX  
             unsigned long ulStartPos;           /* actual position in file where chunk (without header) starts */  
             unsigned long ulPos;                /* # of bytes from ulStartPos */  
             bool          bEndianNative;  
264              uint8_t*      pChunkData;              uint8_t*      pChunkData;
265                file_offset_t ullChunkDataSize;
266    
267              Chunk();              Chunk(File* pFile);
268              void          ReadHeader(unsigned long fPos);              Chunk(File* pFile, List* pParent, uint32_t uiChunkID, file_offset_t ullBodySize);
269              unsigned long ReadSceptical(void* pData, unsigned long WordCount, unsigned long WordSize);              void ReadHeader(file_offset_t filePos);
270              inline void   swapBytes_16(void* Word) {              void WriteHeader(file_offset_t filePos);
271                  uint8_t byteCache = *((uint8_t*) Word);              file_offset_t ReadSceptical(void* pData, file_offset_t WordCount, file_offset_t WordSize);
272                  *((uint8_t*) Word)     = *((uint8_t*) Word + 1);              inline static String convertToString(uint32_t word) {
                 *((uint8_t*) Word + 1) = byteCache;  
             }  
             inline void   swapBytes_32(void* Word) {  
                 uint8_t byteCache = *((uint8_t*) Word);  
                 *((uint8_t*) Word)     = *((uint8_t*) Word + 3);  
                 *((uint8_t*) Word + 3) = byteCache;  
                 byteCache = *((uint8_t*) Word + 1);  
                 *((uint8_t*) Word + 1) = *((uint8_t*) Word + 2);  
                 *((uint8_t*) Word + 2) = byteCache;  
             }  
             inline void   swapBytes(void* Word, unsigned long WordSize) {  
                 uint8_t byteCache;  
                 unsigned long lo = 0, hi = WordSize - 1;  
                 for (; lo < hi; hi--, lo++) {  
                     byteCache = *((uint8_t*) Word + lo);  
                     *((uint8_t*) Word + lo) = *((uint8_t*) Word + hi);  
                     *((uint8_t*) Word + hi) = byteCache;  
                 }  
             }  
             inline String convertToString(uint32_t word) {  
273                  String result;                  String result;
274                  for (int i = 0; i < 4; i++) {                  for (int i = 0; i < 4; i++) {
275                      uint8_t byte = *((uint8_t*)(&word) + i);                      uint8_t byte = *((uint8_t*)(&word) + i);
# Line 171  namespace RIFF { Line 278  namespace RIFF {
278                  }                  }
279                  return result;                  return result;
280              }              }
281                virtual file_offset_t RequiredPhysicalSize(int fileOffsetSize);
282                virtual file_offset_t WriteChunk(file_offset_t ullWritePos, file_offset_t ullCurrentDataOffset, progress_t* pProgress = NULL);
283                virtual void __resetPos(); ///< Sets Chunk's read/write position to zero.
284    
285                friend class List;
286      };      };
287    
288      /** Provides convenient methods to access data of RIFF list chunks and their subchunks. */      /** @brief RIFF List Chunk
289         *
290         * Provides convenient methods to access data of RIFF list chunks and
291         * their subchunks.
292         */
293      class List : public Chunk {      class List : public Chunk {
294          public:          public:
295              #if POSIX              List(File* pFile, file_offset_t StartPos, List* Parent);
296              List(int hFile, unsigned long StartPos, bool EndianNative, List* Parent);              String       GetListTypeString() const;
297              #else              uint32_t     GetListType() const { return ListType; } ///< Returns unsigned integer representation of the list's ID
             List(FILE* hFile, unsigned long StartPos, bool EndianNative, List* Parent);  
             #endif // POSIX  
             String       GetListTypeString();  
             uint32_t     GetListType() { return ListType; }   ///< Returns unsigned integer representation of the list's ID  
298              Chunk*       GetSubChunk(uint32_t ChunkID);              Chunk*       GetSubChunk(uint32_t ChunkID);
299              List*        GetSubList(uint32_t ListType);              List*        GetSubList(uint32_t ListType);
300              Chunk*       GetFirstSubChunk();              Chunk*       GetFirstSubChunk();
# Line 193  namespace RIFF { Line 305  namespace RIFF {
305              unsigned int CountSubChunks(uint32_t ChunkID);              unsigned int CountSubChunks(uint32_t ChunkID);
306              unsigned int CountSubLists();              unsigned int CountSubLists();
307              unsigned int CountSubLists(uint32_t ListType);              unsigned int CountSubLists(uint32_t ListType);
308             ~List();              Chunk*       AddSubChunk(uint32_t uiChunkID, file_offset_t ullBodySize);
309                List*        AddSubList(uint32_t uiListType);
310                void         DeleteSubChunk(Chunk* pSubChunk);
311                void         MoveSubChunk(Chunk* pSrc, Chunk* pDst); // read API doc comments !!!
312                void         MoveSubChunk(Chunk* pSrc, List* pNewParent);
313                virtual ~List();
314          protected:          protected:
315              typedef std::map<uint32_t, RIFF::Chunk*>  ChunkMap;              typedef std::map<uint32_t, RIFF::Chunk*>  ChunkMap;
316              typedef std::list<Chunk*>                 ChunkList;              typedef std::list<Chunk*>                 ChunkList;
317                typedef std::set<Chunk*>                  ChunkSet;
318    
319              uint32_t   ListType;              uint32_t   ListType;
320              ChunkList* pSubChunks;              ChunkList* pSubChunks;
# Line 204  namespace RIFF { Line 322  namespace RIFF {
322              ChunkList::iterator ChunksIterator;              ChunkList::iterator ChunksIterator;
323              ChunkList::iterator ListIterator;              ChunkList::iterator ListIterator;
324    
325              List();              List(File* pFile);
326              void ReadHeader(unsigned long fPos);              List(File* pFile, List* pParent, uint32_t uiListID);
327              void LoadSubChunks();              void ReadHeader(file_offset_t filePos);
328                void WriteHeader(file_offset_t filePos);
329                void LoadSubChunks(progress_t* pProgress = NULL);
330                void LoadSubChunksRecursively(progress_t* pProgress = NULL);
331                virtual file_offset_t RequiredPhysicalSize(int fileOffsetSize);
332                virtual file_offset_t WriteChunk(file_offset_t ullWritePos, file_offset_t ullCurrentDataOffset, progress_t* pProgress = NULL);
333                virtual void __resetPos(); ///< Sets List Chunk's read/write position to zero and causes all sub chunks to do the same.
334                void DeleteChunkList();
335      };      };
336    
337      /** Parses arbitrary RIFF files and provides together with it's base classes convenient methods to walk through the RIFF tree. */      /** @brief RIFF File
338         *
339         * Handles arbitrary RIFF files and provides together with its base
340         * classes convenient methods to walk through, read and modify the
341         * file's RIFF tree.
342         */
343      class File : public List {      class File : public List {
344          public:          public:
345                File(uint32_t FileType);
346              File(const String& path);              File(const String& path);
347             ~File();              File(const String& path, uint32_t FileType, endian_t Endian, layout_t layout, offset_size_t fileOffsetSize = offset_size_auto);
348                stream_mode_t GetMode() const;
349                bool          SetMode(stream_mode_t NewMode);
350                void SetByteOrder(endian_t Endian);
351                String GetFileName() const;
352                void SetFileName(const String& path);
353                bool IsNew() const;
354                layout_t GetLayout() const;
355                file_offset_t GetCurrentFileSize() const;
356                file_offset_t GetRequiredFileSize();
357                file_offset_t GetRequiredFileSize(offset_size_t fileOffsetSize);
358                int GetFileOffsetSize() const;
359                int GetRequiredFileOffsetSize();
360    
361                virtual void Save(progress_t* pProgress = NULL);
362                virtual void Save(const String& path, progress_t* pProgress = NULL);
363                virtual ~File();
364            protected:
365                #if POSIX
366                int    hFileRead;  ///< handle / descriptor for reading from file
367                int    hFileWrite; ///< handle / descriptor for writing to (some) file
368                #elif defined(WIN32)
369                HANDLE hFileRead;  ///< handle / descriptor for reading from file
370                HANDLE hFileWrite; ///< handle / descriptor for writing to (some) file
371                #else
372                FILE*  hFileRead;  ///< handle / descriptor for reading from file
373                FILE*  hFileWrite; ///< handle / descriptor for writing to (some) file
374                #endif // POSIX
375                String Filename;
376                bool   bEndianNative;
377                bool   bIsNewFile;
378                layout_t Layout; ///< An ordinary RIFF file is always set to layout_standard.
379                offset_size_t FileOffsetPreference;
380                int FileOffsetSize; ///< Size of file offsets (in bytes) when this file was opened (or saved the last time).
381    
382                friend class Chunk;
383                friend class List;
384          private:          private:
385              unsigned long GetFileSize();              stream_mode_t  Mode;
386    
387                void __openExistingFile(const String& path, uint32_t* FileType = NULL);
388                void ResizeFile(file_offset_t ullNewSize);
389                #if POSIX
390                file_offset_t __GetFileSize(int hFile) const;
391                #elif defined(WIN32)
392                file_offset_t __GetFileSize(HANDLE hFile) const;
393                #else
394                file_offset_t __GetFileSize(FILE* hFile) const;
395                #endif
396                int FileOffsetSizeFor(file_offset_t fileSize) const;
397                void Cleanup();
398      };      };
399    
400      /** Will be thrown whenever an error occurs while parsing a RIFF file. */      /**
401         * Will be thrown whenever an error occurs while handling a RIFF file.
402         */
403      class Exception {      class Exception {
404          public:          public:
405              String Message;              String Message;
406    
407              Exception(String Message) { Exception::Message = Message; };              Exception(String Message) { Exception::Message = Message; }
408              void PrintMessage();              void PrintMessage();
409              virtual ~Exception() {};              virtual ~Exception() {}
410      };      };
411    
412        String libraryName();
413        String libraryVersion();
414    
415  } // namespace RIFF  } // namespace RIFF
416  #endif // __RIFF_H__  #endif // __RIFF_H__

Legend:
Removed from v.55  
changed lines
  Added in v.2916

  ViewVC Help
Powered by ViewVC