MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetEnum

Function GetEnum

Source/Engine/Serialization/JsonTools.h:116–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115 template<class T>
116 FORCE_INLINE static T GetEnum(const Value& node, const char* name, const T defaultValue)
117 {
118 auto member = node.FindMember(name);
119 return member != node.MemberEnd() && member->value.IsInt() ? static_cast<T>(member->value.GetInt()) : defaultValue;
120 }
121
122 FORCE_INLINE static String GetString(const Value& node, const char* name, const String& defaultValue)
123 {

Callers 3

DeserializeMethod · 0.85
DeserializeMethod · 0.85
DeserializeMethod · 0.85

Calls 3

FindMemberMethod · 0.80
MemberEndMethod · 0.80
GetIntMethod · 0.80

Tested by

no test coverage detected