Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usPrototypeServiceFactory.h
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 #ifndef USPROTOTYPESERVICEFACTORY_H
14 #define USPROTOTYPESERVICEFACTORY_H
15 
16 #include <usServiceFactory.h>
17 
18 namespace us {
19 
51 {
52 
71  InterfaceMap GetService(Module* module, const ServiceRegistrationBase& registration) override = 0;
72 
86  void UngetService(Module* module, const ServiceRegistrationBase& registration,
87  const InterfaceMap& service) override = 0;
88 
89 };
90 
91 }
92 
93 #endif // USPROTOTYPESERVICEFACTORY_H
Represents a CppMicroServices module.
Definition: usModule.h:70
std::map< std::string, void * > InterfaceMap
A map containing interfaces ids and their corresponding service object pointers.
A factory for prototype scope services. The factory can provide multiple, unique service objects.
InterfaceMap GetService(Module *module, const ServiceRegistrationBase &registration) override=0
Returns a service object for a caller.
void UngetService(Module *module, const ServiceRegistrationBase &registration, const InterfaceMap &service) override=0
Releases a service object created for a caller.