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

Method Invoke

Serialization/Manager/vtkObjectManager.cxx:417–428  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

415
416//------------------------------------------------------------------------------
417std::string vtkObjectManager::Invoke(
418 vtkTypeUInt32 identifier, const std::string& methodName, const std::string& args)
419{
420 using json = nlohmann::json;
421 auto argsJson = json::parse(args, nullptr, false);
422 if (argsJson.is_discarded())
423 {
424 vtkErrorMacro(<< "Failed to parse state!");
425 return {};
426 }
427 return this->Invoke(identifier, methodName, argsJson).dump();
428}
429
430//------------------------------------------------------------------------------
431nlohmann::json vtkObjectManager::Invoke(

Callers 2

vtkSessionInvokeFunction · 0.45
TestInvokeFunction · 0.45

Calls 6

UpdateStateFromObjectMethod · 0.95
dumpMethod · 0.80
parseFunction · 0.50
findMethod · 0.45
endMethod · 0.45
GetStateMethod · 0.45

Tested by 1

TestInvokeFunction · 0.36