| 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 | { |
no test coverage detected