Added a convenience overload for aiMetadata::Get using std::string as key.
parent
56f37a0465
commit
9b78a180d9
|
@ -86,6 +86,10 @@ struct aiMetaDataEntry
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* Helper functions to get the aiType enum entry for a type
|
* Helper functions to get the aiType enum entry for a type
|
||||||
|
@ -218,6 +222,10 @@ struct aiMetadata
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
inline bool Get( const std::string& key, T& value )
|
||||||
|
{ return Get(aiString(key), value); }
|
||||||
|
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue