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

Function GetStringValue

IO/Geometry/vtkGLTFUtils.cxx:173–182  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

171
172//------------------------------------------------------------------------------
173bool GetStringValue(const nlohmann::json& root, const std::string& key, std::string& value)
174{
175 auto it = root.find(key);
176 if (it == root.end() || !it.value().is_string())
177 {
178 return false;
179 }
180 value = it.value();
181 return true;
182}
183
184//------------------------------------------------------------------------------
185bool CheckVersion(const nlohmann::json& glTFAsset)

Callers 14

LoadBufferMethod · 0.70
LoadAccessorMethod · 0.70
LoadAnimationMethod · 0.70
LoadBufferViewMethod · 0.70
LoadCameraMethod · 0.70
LoadImageMethod · 0.70
LoadMaterialMethod · 0.70
LoadMeshMethod · 0.70
LoadNodeMethod · 0.70
LoadSamplerMethod · 0.70
LoadSceneMethod · 0.70
LoadSkinMethod · 0.70

Calls 3

findMethod · 0.45
endMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected