MCPcopy Create free account
hub / github.com/Kitware/VTK / GetUIntValue

Function GetUIntValue

IO/Geometry/vtkGLTFUtils.cxx:44–53  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

42
43//------------------------------------------------------------------------------
44bool GetUIntValue(const nlohmann::json& root, const std::string& key, unsigned int& value)
45{
46 auto it = root.find(key);
47 if (it == root.end() || !it.value().is_number_unsigned())
48 {
49 return false;
50 }
51 value = it.value();
52 return true;
53}
54
55//------------------------------------------------------------------------------
56bool GetDoubleValue(const nlohmann::json& root, const std::string& key, double& value)

Callers 1

LoadAnimationMethod · 0.70

Calls 3

findMethod · 0.45
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected