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

Method RegisterState

Serialization/Manager/vtkObjectManager.cxx:376–387  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

374
375//------------------------------------------------------------------------------
376bool vtkObjectManager::RegisterState(const std::string& state)
377{
378 using json = nlohmann::json;
379 auto stateJson = json::parse(state, nullptr, false);
380 if (stateJson.is_discarded())
381 {
382 vtkErrorMacro(<< "Failed to parse state!");
383 return false;
384 }
385 vtkVLog(this->GetObjectManagerLogVerbosity(), << "Registering state: " << stateJson.dump());
386 return this->RegisterState(stateJson);
387}
388
389//------------------------------------------------------------------------------
390bool vtkObjectManager::RegisterState(const nlohmann::json& stateJson)

Callers 15

ImportFromJSONMethod · 0.45
UpdateObjectFromStateMethod · 0.45
vtkSessionRegisterStateFunction · 0.45
deserializeMethod · 0.45
deserializeMethod · 0.45
deserializeMethod · 0.45
test2Method · 0.45
deserializeMethod · 0.45
deserializeMethod · 0.45
testMethod · 0.45
deserializeMethod · 0.45
test1Method · 0.45

Calls 3

dumpMethod · 0.80
parseFunction · 0.50

Tested by 15

deserializeMethod · 0.36
deserializeMethod · 0.36
deserializeMethod · 0.36
test2Method · 0.36
deserializeMethod · 0.36
deserializeMethod · 0.36
testMethod · 0.36
deserializeMethod · 0.36
test1Method · 0.36
deserializeMethod · 0.36
deserializeMethod · 0.36
deserializeMethod · 0.36