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

Function GetIntValue

IO/Geometry/vtkGLTFUtils.cxx:32–41  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

30
31//------------------------------------------------------------------------------
32bool GetIntValue(const nlohmann::json& root, const std::string& key, int& value)
33{
34 auto it = root.find(key);
35 if (it == root.end() || !it.value().is_number_integer())
36 {
37 return false;
38 }
39 value = it.value();
40 return true;
41}
42
43//------------------------------------------------------------------------------
44bool GetUIntValue(const nlohmann::json& root, const std::string& key, unsigned int& value)

Callers 14

LoadBufferMethod · 0.70
LoadAccessorMethod · 0.70
LoadAnimationMethod · 0.70
LoadBufferViewMethod · 0.70
LoadImageMethod · 0.70
LoadNodeMethod · 0.70
LoadSamplerMethod · 0.70
LoadPrimitiveMethod · 0.70
LoadSkinMethod · 0.70
LoadSparseMethod · 0.70
LoadTextureMethod · 0.70
LoadTextureInfoMethod · 0.70

Calls 3

findMethod · 0.45
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected