16 #ifndef __mitkMESASR4000Activator_h
17 #define __mitkMESASR4000Activator_h
43 void Load(us::ModuleContext* context)
46 ToFCameraMESASR4000DeviceFactory* toFCameraMESASR4000DeviceFactory =
new ToFCameraMESASR4000DeviceFactory();
48 mitkMESASR4000FactoryProps[
"ToFFactoryName"] = toFCameraMESASR4000DeviceFactory->GetFactoryName();
49 context->RegisterService<IToFDeviceFactory>(toFCameraMESASR4000DeviceFactory, mitkMESASR4000FactoryProps);
51 toFCameraMESASR4000DeviceFactory->ConnectToFDevice();
53 m_Factories.push_back(toFCameraMESASR4000DeviceFactory);
59 void Unload(us::ModuleContext* )
66 ~MESASR4000ModuleActivator()
68 if(m_Factories.size() > 0)
70 for(std::list< IToFDeviceFactory* >::iterator it = m_Factories.begin(); it != m_Factories.end(); ++it)
81 std::list< IToFDeviceFactory* > m_Factories;
DataCollection - Class to facilitate loading/accessing structured data.
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
US_EXPORT_MODULE_ACTIVATOR(mitk::SimulationActivator)