Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkUSTelemedActivator.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkUSTelemedActivator.h"
14 
16 {
17  MITK_INFO << "USTelemedActivator created";
18 }
19 
21 {
22 }
23 
24 void 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 
31 void 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 }
#define MITK_INFO
Definition: mitkLogMacros.h:18
static Pointer New()
Method for creation through the object factory.
void Unload(us::ModuleContext *context)
Device pointer is removed on module unload. Service deregistration is done in the device destructor...
USTelemedDevice::Pointer m_Device
void Load(us::ModuleContext *context)
Telemed device is created and initialized on module load. Service registration is done during the ini...