Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkUSTelemedActivator.h"
18 
20 {
21  MITK_INFO << "USTelemedActivator created";
22 }
23 
25 {
26 }
27 
28 void mitk::USTelemedActivator::Load(us::ModuleContext* context)
29 {
30  // create a new device
31  m_Device = mitk::USTelemedDevice::New("Telemed", "Ultrasound System");
32  m_Device->Initialize();
33 }
34 
35 void mitk::USTelemedActivator::Unload(us::ModuleContext* context)
36 {
37  // set smart pointer to null (device will be unregistered from
38  // micro service in it's destrcutor)
39  m_Device = 0;
40 }
#define MITK_INFO
Definition: mitkLogMacros.h:22
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...
void Load(us::ModuleContext *context)
Telemed device is created and initialized on module load. Service registration is done during the ini...