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

Method RegisterCreateCallback

IO/Core/vtkTextCodecFactory.cxx:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void vtkTextCodecFactory::RegisterCreateCallback(vtkTextCodecFactory::CreateFunction callback)
53{
54 if (!vtkTextCodecFactory::Callbacks)
55 {
56 Callbacks = new vtkTextCodecFactory::CallbackVector();
57 vtkCleanupTextCodecGlobal.Use();
58 vtkTextCodecFactory::Initialize();
59 }
60
61 if (find(vtkTextCodecFactory::Callbacks->begin(), vtkTextCodecFactory::Callbacks->end(),
62 callback) == vtkTextCodecFactory::Callbacks->end())
63 {
64 vtkTextCodecFactory::Callbacks->push_back(callback);
65 }
66}
67
68void vtkTextCodecFactory::UnRegisterCreateCallback(vtkTextCodecFactory::CreateFunction callback)
69{

Callers

nothing calls this directly

Calls 6

InitializeFunction · 0.50
findFunction · 0.50
UseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected