Assimp  v3.1.1 (June 2014)
Public Member Functions | Public Attributes | List of all members
aiMetadata Struct Reference

Container for holding metadata. More...

Public Member Functions

 aiMetadata ()
 Constructor. 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)
 
template<typename T >
void Set (unsigned index, const std::string &key, const T &value)
 
 ~aiMetadata ()
 Destructor. More...
 

Public Attributes

C_STRUCT aiStringmKeys
 Arrays of keys, may not be NULL. More...
 
unsigned int mNumProperties
 Length of the mKeys and mValues arrays, respectively. More...
 
C_STRUCT aiMetadataEntrymValues
 Arrays of values, may not be NULL. More...
 

Detailed Description

Container for holding metadata.

Metadata is a key-value store using string keys and values.

Constructor & Destructor Documentation

◆ aiMetadata()

aiMetadata::aiMetadata ( )
inline

Constructor.

◆ ~aiMetadata()

aiMetadata::~aiMetadata ( )
inline

Destructor.

Member Function Documentation

◆ Get() [1/3]

template<typename T >
bool aiMetadata::Get ( unsigned  index,
T &  value 
)
inline

◆ Get() [2/3]

template<typename T >
bool aiMetadata::Get ( const aiString key,
T &  value 
)
inline

◆ Get() [3/3]

template<typename T >
bool aiMetadata::Get ( const std::string &  key,
T &  value 
)
inline

◆ Set()

template<typename T >
void aiMetadata::Set ( unsigned  index,
const std::string &  key,
const T &  value 
)
inline

Member Data Documentation

◆ mKeys

C_STRUCT aiString* aiMetadata::mKeys

Arrays of keys, may not be NULL.

Entries in this array may not be NULL as well.

◆ mNumProperties

unsigned int aiMetadata::mNumProperties

Length of the mKeys and mValues arrays, respectively.

◆ mValues

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.


The documentation for this struct was generated from the following file: