12 #ifndef mitkPythonActivator_h 13 #define mitkPythonActivator_h 31 void Load(us::ModuleContext* context)
override 38 _PythonServiceProps[
"Name"] = std::string(
"PythonService");
40 m_PythonServiceRegistration = context->RegisterService<
mitk::IPythonService>(m_PythonService.GetPointer(), _PythonServiceProps);
43 void Unload(us::ModuleContext*)
override 45 MITK_DEBUG(
"PythonActivator") <<
"PythonActivator::Unload";
46 MITK_DEBUG(
"PythonActivator") <<
"m_PythonService GetReferenceCount " << m_PythonService->GetReferenceCount();
47 m_PythonServiceRegistration.Unregister();
48 m_PythonService->Delete();
49 MITK_DEBUG(
"PythonActivator") <<
"m_PythonService GetReferenceCount " << m_PythonService->GetReferenceCount();
52 ~PythonActivator()
override
DataCollection - Class to facilitate loading/accessing structured data.
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.