Medical Imaging Interaction Toolkit  2018.4.99-7e02155b
Medical Imaging Interaction Toolkit
mitk::USActivator Class Reference

Module activator for the US module. Loads mitk::USVideoDevice objects from hard disk on module load and write them to hard disk on module unload. More...

#include <mitkUSActivator.h>

Inheritance diagram for mitk::USActivator:
Collaboration diagram for mitk::USActivator:

Public Member Functions

 USActivator ()
 
 ~USActivator () override
 
void Load (us::ModuleContext *context) override
 The mitk::USVideoDevice obejcts are loaded from hard disk and registered into micro service. More...
 
void Unload (us::ModuleContext *context) override
 Registered mitk::USVideoDevice objects are stored to hard disk an deregistered from micro service. More...
 
- Public Member Functions inherited from us::ModuleActivator
virtual ~ModuleActivator ()
 
virtual void Load (ModuleContext *context)=0
 
virtual void Unload (ModuleContext *context)=0
 

Protected Member Functions

void OnServiceEvent (const us::ServiceEvent event)
 Listens to ServiceRegistry changes and updates the list of mitk::USDevice object accordingly. More...
 

Protected Attributes

us::ModuleContext * m_Context
 
std::vector< USDevice::Pointerm_Devices
 

Detailed Description

Module activator for the US module. Loads mitk::USVideoDevice objects from hard disk on module load and write them to hard disk on module unload.

Pointers to mitk::USDevice objects are held to make sure that they will not be deleted while the module is loaded. A service event listener is registered, so that pointers to devices which are registered into micro service from a plugin for example can be held here, too.

Definition at line 34 of file mitkUSActivator.h.

Constructor & Destructor Documentation

◆ USActivator()

mitk::USActivator::USActivator ( )

◆ ~USActivator()

mitk::USActivator::~USActivator ( )
override

Member Function Documentation

◆ Load()

void mitk::USActivator::Load ( us::ModuleContext *  context)
override

The mitk::USVideoDevice obejcts are loaded from hard disk and registered into micro service.

◆ OnServiceEvent()

void mitk::USActivator::OnServiceEvent ( const us::ServiceEvent  event)
protected

Listens to ServiceRegistry changes and updates the list of mitk::USDevice object accordingly.

◆ Unload()

void mitk::USActivator::Unload ( us::ModuleContext *  context)
override

Registered mitk::USVideoDevice objects are stored to hard disk an deregistered from micro service.

Member Data Documentation

◆ m_Context

us::ModuleContext* mitk::USActivator::m_Context
protected

Definition at line 56 of file mitkUSActivator.h.

◆ m_Devices

std::vector<USDevice::Pointer> mitk::USActivator::m_Devices
protected

Definition at line 57 of file mitkUSActivator.h.


The documentation for this class was generated from the following file: