316 |
String SourceForm; ///< <ISRF-ck>. Identifies the original form of the material that was digitized, such as record, sampling CD, TV sound track. This is not neccessarily the same as <i>Medium</i>. |
String SourceForm; ///< <ISRF-ck>. Identifies the original form of the material that was digitized, such as record, sampling CD, TV sound track. This is not neccessarily the same as <i>Medium</i>. |
317 |
String Commissioned; ///< <ICMS-ck>. Lists the name of the person or organization that commissioned the subject of the file, e.g., Pope Julian II. |
String Commissioned; ///< <ICMS-ck>. Lists the name of the person or organization that commissioned the subject of the file, e.g., Pope Julian II. |
318 |
String Subject; ///< <ISBJ-ck>. Describes the contents of the file. |
String Subject; ///< <ISBJ-ck>. Describes the contents of the file. |
319 |
bool UseFixedLengthStrings; ///< Set this to true if the info strings should be stored with a fixed length format. This is used for gig files, not for ordinary DLS files. |
bool UseFixedLengthStrings; ///< Deprecated. Use #FixedStringLengths instead. |
320 |
|
|
321 |
|
struct FixedStringLength { |
322 |
|
uint32_t chunkId; |
323 |
|
int length; |
324 |
|
}; |
325 |
|
const FixedStringLength* FixedStringLengths; ///< List of IDs and string lengths for strings that should be stored in a fixed length format. This is used for gig files, not for ordinary DLS files. |
326 |
Info(RIFF::List* list); |
Info(RIFF::List* list); |
327 |
virtual ~Info(); |
virtual ~Info(); |
328 |
virtual void UpdateChunks(); |
virtual void UpdateChunks(); |
330 |
RIFF::List* pResourceListChunk; |
RIFF::List* pResourceListChunk; |
331 |
|
|
332 |
static void LoadString(uint32_t ChunkID, RIFF::List* lstINFO, String& s); |
static void LoadString(uint32_t ChunkID, RIFF::List* lstINFO, String& s); |
333 |
static void SaveString(uint32_t ChunkID, RIFF::List* lstINFO, const String& s, const String& sDefault, bool bUseFixedLengthStrings, int size); |
void SaveString(uint32_t ChunkID, RIFF::List* lstINFO, const String& s, const String& sDefault); |
334 |
}; |
}; |
335 |
|
|
336 |
/** Abstract base class which encapsulates data structures which all DLS resources are able to provide. */ |
/** Abstract base class which encapsulates data structures which all DLS resources are able to provide. */ |
341 |
|
|
342 |
Resource* GetParent() { return pParent; }; |
Resource* GetParent() { return pParent; }; |
343 |
virtual void UpdateChunks(); |
virtual void UpdateChunks(); |
344 |
|
void GenerateDLSID(); |
345 |
protected: |
protected: |
346 |
Resource* pParent; |
Resource* pParent; |
347 |
RIFF::List* pResourceList; |
RIFF::List* pResourceList; |