MCPcopy Create free account
hub / github.com/MITK/MITK / CreateInstance

Method CreateInstance

Modules/Core/src/DataManagement/mitkPropertyDeserialization.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24mitk::BaseProperty::Pointer mitk::PropertyDeserialization::CreateInstance(const std::string& className)
25{
26 auto it = m_Map.find(className);
27
28 if (it != m_Map.end())
29 return static_cast<BaseProperty*>(it->second->CreateAnother().GetPointer());
30
31 return nullptr;
32}
33
34void mitk::PropertyDeserialization::InternalRegisterProperty(const BaseProperty* property)
35{

Callers 2

FromJSONMethod · 0.45

Calls 4

GetPointerMethod · 0.80
findMethod · 0.45
endMethod · 0.45
CreateAnotherMethod · 0.45

Tested by

no test coverage detected