12#ifndef __mitkMESASR4000Activator_h
13#define __mitkMESASR4000Activator_h
16#include <usServiceRegistration.h>
17#include <usModuleActivator.h>
18#include "usModuleContext.h"
19#include <usModuleActivator.h>
23#include "mitkToFConfig.h"
39 void Load(us::ModuleContext* context)
43 us::ServiceProperties mitkMESASR4000FactoryProps;
44 mitkMESASR4000FactoryProps[
"ToFFactoryName"] = toFCameraMESASR4000DeviceFactory->
GetFactoryName();
45 context->RegisterService<
IToFDeviceFactory>(toFCameraMESASR4000DeviceFactory, mitkMESASR4000FactoryProps);
49 m_Factories.push_back(toFCameraMESASR4000DeviceFactory);
64 if(m_Factories.size() > 0)
66 for(std::list< IToFDeviceFactory* >::iterator it = m_Factories.begin(); it != m_Factories.end(); ++it)
77 std::list< IToFDeviceFactory* > m_Factories;
The MESASR4000ModuleActivator class This is the module activator for the "MESASR4000Module" module....
~MESASR4000ModuleActivator()
Default destructor which deletes all registered factories.
void Load(us::ModuleContext *context)
Load This method is automatically called, when the MESASR4000Module is activated. It will automatical...
void Unload(us::ModuleContext *)
Unload called when the module is unloaded.
ToFCameraMESASR4000DeviceFactory is an implementation of the factory pattern to generate MESASR4000De...
std::string GetFactoryName()
Get the name of the factory, here for the ToFPMDCamCube.
ToFCameraDevice::Pointer ConnectToFDevice()
ConnectToFDevice Use this method to connect a device.
This is the base of class for all ToFDeviceFactories.