------------------------------------------------------------------------------
| 108 | |
| 109 | //------------------------------------------------------------------------------ |
| 110 | vtkSerializer::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 | //------------------------------------------------------------------------------ |
| 129 | bool vtkSerializer::UnRegisterHandler(const std::type_info& type) |
no test coverage detected