Assimp
v3.1.1 (June 2014)
|
Container for holding metadata. More...
Public Member Functions | |
aiMetadata () | |
Constructor. | |
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) |
template<typename T > | |
void | Set (unsigned index, const std::string &key, const T &value) |
~aiMetadata () | |
Destructor. | |
Public Attributes | |
C_STRUCT aiString * | mKeys |
Arrays of keys, may not be NULL. | |
unsigned int | mNumProperties |
Length of the mKeys and mValues arrays, respectively. | |
C_STRUCT aiMetadataEntry * | mValues |
Arrays of values, may not be NULL. |
Container for holding metadata.
Metadata is a key-value store using string keys and values.
aiMetadata::aiMetadata | ( | ) | [inline] |
Constructor.
aiMetadata::~aiMetadata | ( | ) | [inline] |
Destructor.
bool aiMetadata::Get | ( | unsigned | index, |
T & | value | ||
) | [inline] |
bool aiMetadata::Get | ( | const aiString & | key, |
T & | value | ||
) | [inline] |
bool aiMetadata::Get | ( | const std::string & | key, |
T & | value | ||
) | [inline] |
void aiMetadata::Set | ( | unsigned | index, |
const std::string & | key, | ||
const T & | 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.
Arrays of values, may not be NULL.
Entries in this array may be NULL if the corresponding property key has no assigned value.