Assimp
v3.1.1 (June 2014)
|
Container for holding metadata. More...
Public Member Functions | |
template<typename T > | |
void | Add (const std::string &key, const T &value) |
aiMetadata () | |
The default constructor, set all members to zero by default. More... | |
template<typename T > | |
bool | Get (unsigned index, T &value) |
template<typename T > | |
bool | Get (const aiString &key, T &value) |
template<typename T > | |
bool | Get (const std::string &key, T &value) |
bool | Get (size_t index, const aiString *&key, const aiMetadataEntry *&entry) |
Return metadata entry for analyzing it by user. More... | |
template<typename T > | |
bool | Set (unsigned index, const std::string &key, const T &value) |
~aiMetadata () | |
The destructor. More... | |
Static Public Member Functions | |
static aiMetadata * | Alloc (unsigned int numProperties) |
Allocates property fields + keys. More... | |
static void | Dealloc (aiMetadata *metadata) |
Deallocates property fields + keys. More... | |
Public Attributes | |
C_STRUCT aiString * | mKeys |
Arrays of keys, may not be NULL. More... | |
unsigned int | mNumProperties |
Length of the mKeys and mValues arrays, respectively. More... | |
C_STRUCT aiMetadataEntry * | mValues |
Arrays of values, may not be NULL. More... | |
Container for holding metadata.
Metadata is a key-value store using string keys and values.
|
inline |
The default constructor, set all members to zero by default.
|
inline |
The destructor.
|
inline |
|
inlinestatic |
Allocates property fields + keys.
numProperties | Number of requested properties. |
|
inlinestatic |
Deallocates property fields + keys.
|
inline |
|
inline |
|
inline |
|
inline |
Return metadata entry for analyzing it by user.
[in] | pIndex | - index of the entry. |
[out] | pKey | - pointer to the key value. |
[out] | pEntry | - pointer to the entry: type and value. |
|
inline |
Arrays of keys, may not be NULL.
Entries in this array may not be NULL as well.
unsigned int aiMetadata::mNumProperties |
Length of the mKeys and mValues arrays, respectively.
C_STRUCT aiMetadataEntry* aiMetadata::mValues |
Arrays of values, may not be NULL.
Entries in this array may be NULL if the corresponding property key has no assigned value.