2 |
* * |
* * |
3 |
* libgig - C++ cross-platform Gigasampler format file access library * |
* libgig - C++ cross-platform Gigasampler format file access library * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003-2014 by Christian Schoenebeck * |
* Copyright (C) 2003-2015 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 * |
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 |
323 |
protected: |
protected: |
324 |
typedef std::map<uint32_t, RIFF::Chunk*> ChunkMap; |
typedef std::map<uint32_t, RIFF::Chunk*> ChunkMap; |
325 |
typedef std::list<Chunk*> ChunkList; |
typedef std::list<Chunk*> ChunkList; |
326 |
|
typedef std::set<Chunk*> ChunkSet; |
327 |
|
|
328 |
uint32_t ListType; |
uint32_t ListType; |
329 |
ChunkList* pSubChunks; |
ChunkList* pSubChunks; |
385 |
friend class List; |
friend class List; |
386 |
private: |
private: |
387 |
stream_mode_t Mode; |
stream_mode_t Mode; |
388 |
ChunkList ResizedChunks; ///< All chunks which have been resized (enlarged / shortened). |
ChunkSet ResizedChunks; ///< All chunks which have been resized (enlarged / shortened). |
389 |
|
|
390 |
void __openExistingFile(const String& path, uint32_t* FileType = NULL); |
void __openExistingFile(const String& path, uint32_t* FileType = NULL); |
391 |
unsigned long GetFileSize(); |
unsigned long GetFileSize(); |