Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkRESTServiceActivator.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 
14 #include <usModuleContext.h>
15 
16 void MitkRESTServiceActivator::Load(us::ModuleContext *context)
17 {
18  m_RESTManager.reset(new mitk::RESTManager);
19  context->RegisterService<mitk::IRESTManager>(m_RESTManager.get());
20 }
21 
22 void MitkRESTServiceActivator::Unload(us::ModuleContext *)
23 {
24 }
25 
This is a microservice interface for managing REST requests.
this is a microservice for managing REST-requests, used for non-qt applications.
void Unload(us::ModuleContext *context) override
void Load(us::ModuleContext *context) override
#define US_EXPORT_MODULE_ACTIVATOR(_activator_type)
Export a module activator class.