Added a convenience overload for aiMetadata::Get using std::string as key.

pull/237/head
Frederik Aalund 2014-03-14 17:12:22 +01:00
parent 56f37a0465
commit 9b78a180d9
1 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,10 @@ struct aiMetaDataEntry
#ifdef __cplusplus
#include <string>
// -------------------------------------------------------------------------------
/**
* Helper functions to get the aiType enum entry for a type
@ -218,6 +222,10 @@ struct aiMetadata
return false;
}
template<typename T>
inline bool Get( const std::string& key, T& value )
{ return Get(aiString(key), value); }
#endif // __cplusplus
};