The Interchange File Format data class.
More...
#include <murl_util_iff_data.h>
The Interchange File Format data class.
The IffData class is used to allocate and store application defined iff chunks. The Create() method composes an iff-file from the stored chunks.
◆ IffData() [1/3]
Constructor taking the file identifier and the file type identifier.
This method takes care of the system's byte ordering.
- Parameters
-
form | The file format identifier. |
fourCC | The file type identifier. |
◆ IffData() [2/3]
Murl::Util::IffData::IffData |
( |
UInt32 |
fourCC | ) |
|
Constructor taking the file type identifier.
Set the file format identifier to 'MURL'. This method takes care of the system's byte ordering.
- Parameters
-
fourCC | The file type identifier. |
◆ IffData() [3/3]
Murl::Util::IffData::IffData |
( |
| ) |
|
Constructor to create an IffData object without a header.
When using this constructor, the data object does not include a file header. Only chunks are stored, which is useful for including the output data as a sub-stream within another IFF stream. This method takes care of the system's byte ordering.
◆ AddChunk()
virtual void Murl::Util::IffData::AddChunk |
( |
IffChunk * |
chunk | ) |
|
|
virtual |
Add an iff chunk.
The chunk must be heap allocated using new, the IffData object takes the ownership of the memory.
- Parameters
-
◆ GetChunks()
virtual const IffChunkArray& Murl::Util::IffData::GetChunks |
( |
| ) |
const |
|
virtual |
Get the pointer array of the iff chunks added.
- Returns
- The IffChunk pointer array.
◆ Alloc()
Allocate and initialize an iff chunk.
This method takes care of the system's byte ordering and the iff size format.
- Parameters
-
fourCC | The FourCC chunk identifier. |
chunkSize | The byte size of the chunk. |
additionalSize | Additional byte size to allocate. |
- Returns
- The heap allocated and initialized iff chunk.
◆ AllocChunk()
template<class ChunkType >
ChunkType* Murl::Util::IffData::AllocChunk |
( |
UInt32 |
additionalSize = 0 | ) |
const |
|
inline |
Alloc() an iff chunk of specified type.
- Template Parameters
-
ChunkType | The iff chunk type which must have a public enum FOURCC constant defining the chunk identifier. |
- Parameters
-
additionalSize | Additional byte size to allocate. |
- Returns
- The heap allocated and initialized iff chunk of specified type.
◆ Create()
virtual Bool Murl::Util::IffData::Create |
( |
Data & |
data | ) |
const |
|
virtual |
Create an iff-file data object.
- Parameters
-
data | The data object to write the iff-file into. |
- Returns
- true if successful.
◆ mForm
UInt32 Murl::Util::IffData::mForm |
|
protected |
The file format identifier.
◆ mFourCC
UInt32 Murl::Util::IffData::mFourCC |
|
protected |
The FourCC file type identifier.
◆ mChunks
The documentation for this class was generated from the following file: