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

Method GetHandler

Common/Core/vtkSerializer.cxx:110–126  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

108
109//------------------------------------------------------------------------------
110vtkSerializer::HandlerType vtkSerializer::GetHandler(const std::type_info& type) const
111{
112 const auto& internals = (*this->Internals);
113 auto handlerIter = internals.Handlers.find(type.hash_code());
114 if (handlerIter != internals.Handlers.end())
115 {
116 return handlerIter->second;
117 }
118 vtkErrorMacro(
119 << "Cannot serialize object with type "
120 "{ .name="
121 << type.name() << " .hashCode=" << type.hash_code()
122 << " }"
123 " because a serializer was not found. Check stack trace to see how we got here.");
124 vtkWarningMacro(<< vtksys::SystemInformation::GetProgramStack(2, 1));
125 return nullptr;
126}
127
128//------------------------------------------------------------------------------
129bool vtkSerializer::UnRegisterHandler(const std::type_info& type)

Callers 1

SerializeJSONMethod · 0.95

Calls 3

findMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected