From 9b78a180d9632e4bbb189e099fc1be402004c570 Mon Sep 17 00:00:00 2001 From: Frederik Aalund Date: Fri, 14 Mar 2014 17:12:22 +0100 Subject: [PATCH] Added a convenience overload for aiMetadata::Get using std::string as key. --- include/assimp/metadata.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/assimp/metadata.h b/include/assimp/metadata.h index 69d0b8067..5bbc38bd4 100644 --- a/include/assimp/metadata.h +++ b/include/assimp/metadata.h @@ -86,6 +86,10 @@ struct aiMetaDataEntry #ifdef __cplusplus +#include + + + // ------------------------------------------------------------------------------- /** * Helper functions to get the aiType enum entry for a type @@ -218,6 +222,10 @@ struct aiMetadata return false; } + template + inline bool Get( const std::string& key, T& value ) + { return Get(aiString(key), value); } + #endif // __cplusplus };