MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSTelemedActivator.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
14
16{
17 MITK_INFO << "USTelemedActivator created";
18}
19
23
24void mitk::USTelemedActivator::Load(us::ModuleContext* context)
25{
26 // create a new device
27 m_Device = mitk::USTelemedDevice::New("Telemed", "Ultrasound System");
28 m_Device->Initialize();
29}
30
31void mitk::USTelemedActivator::Unload(us::ModuleContext* context)
32{
33 // set smart pointer to null (device will be unregistered from
34 // micro service in it's destrcutor)
35 m_Device = 0;
36}
void Unload(us::ModuleContext *context)
Device pointer is removed on module unload. Service deregistration is done in the device destructor.
void Load(us::ModuleContext *context)
Telemed device is created and initialized on module load. Service registration is done during the ini...