16 #ifndef mitkPythonActivator_h
17 #define mitkPythonActivator_h
35 void Load(us::ModuleContext* context)
42 _PythonServiceProps[
"Name"] = std::string(
"PythonService");
44 m_PythonServiceRegistration = context->RegisterService<
mitk::IPythonService>(m_PythonService.GetPointer(), _PythonServiceProps);
47 void Unload(us::ModuleContext* context)
49 MITK_DEBUG(
"PythonActivator") <<
"PythonActivator::Unload";
50 MITK_DEBUG(
"PythonActivator") <<
"m_PythonService GetReferenceCount " << m_PythonService->GetReferenceCount();
51 m_PythonServiceRegistration.Unregister();
52 m_PythonService->Delete();
53 MITK_DEBUG(
"PythonActivator") <<
"m_PythonService GetReferenceCount " << m_PythonService->GetReferenceCount();
56 virtual ~PythonActivator()
DataCollection - Class to facilitate loading/accessing structured data.
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)