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

Method UpdateObjectFromState

Serialization/Manager/vtkObjectManager.cxx:843–853  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

841
842//------------------------------------------------------------------------------
843void vtkObjectManager::UpdateObjectFromState(const std::string& state)
844{
845 using json = nlohmann::json;
846 auto stateJson = json::parse(state, nullptr, false);
847 if (stateJson.is_discarded())
848 {
849 vtkErrorMacro(<< "Failed to parse state=" << state);
850 return;
851 }
852 this->UpdateObjectFromState(stateJson);
853}
854
855//------------------------------------------------------------------------------
856void vtkObjectManager::UpdateObjectFromState(const nlohmann::json& stateJson)

Callers 4

test1Method · 0.45
test2Method · 0.45
test3Method · 0.45

Calls 8

dumpMethod · 0.80
DeserializeJSONMethod · 0.80
parseFunction · 0.50
atMethod · 0.45
RegisterStateMethod · 0.45
GetObjectAtIdMethod · 0.45

Tested by 3

test1Method · 0.36
test2Method · 0.36
test3Method · 0.36