|
Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Container for holding metadata. More...
#include <metadata.h>
Public Member Functions | |
| template<typename T > | |
| void | Add (const std::string &key, const T &value) |
| aiMetadata () AI_NO_EXCEPT | |
| The default constructor, set all members to zero by default. | |
| aiMetadata (const aiMetadata &rhs) | |
| template<typename T > | |
| bool | Get (const aiString &key, T &value) const |
| template<typename T > | |
| bool | Get (const std::string &key, T &value) const |
| bool | Get (size_t index, const aiString *&key, const aiMetadataEntry *&entry) const |
| Return metadata entry for analyzing it by user. | |
| template<typename T > | |
| bool | Get (unsigned index, T &value) const |
| bool | HasKey (const char *key) const |
| Check whether there is a metadata entry for the given key. | |
| aiMetadata & | operator= (aiMetadata rhs) |
| template<typename T > | |
| bool | Set (const std::string &key, const T &value) |
| template<typename T > | |
| bool | Set (unsigned index, const std::string &key, const T &value) |
| ~aiMetadata () | |
| The destructor. | |
Static Public Member Functions | |
| static aiMetadata * | Alloc (unsigned int numProperties) |
| Allocates property fields + keys. | |
| static void | Dealloc (aiMetadata *metadata) |
| Deallocates property fields + keys. | |
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. | |
Friends | |
| bool | CompareKeys (const aiMetadata &lhs, const aiMetadata &rhs) |
| bool | CompareValues (const aiMetadata &lhs, const aiMetadata &rhs) |
| bool | operator!= (const aiMetadata &lhs, const aiMetadata &rhs) |
| bool | operator== (const aiMetadata &lhs, const aiMetadata &rhs) |
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 |
|
inline |
The destructor.
|
inlinestatic |
Allocates property fields + keys.
| numProperties | Number of requested properties. |
|
inlinestatic |
Deallocates property fields + keys.
|
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. |
Check whether there is a metadata entry for the given key.
| [in] | Key | - the key value value to check for. |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
Arrays of keys, may not be NULL.
Entries in this array may not be NULL as well.
| 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.