Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usServiceProperties.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 
14 #ifndef US_SERVICE_PROPERTIES_H
15 #define US_SERVICE_PROPERTIES_H
16 
17 
18 #include <usGlobalConfig.h>
20 #include <unordered_map>
21 #include <unordered_set>
22 
23 #include <cctype>
24 
25 #include <usAny.h>
26 
27 namespace us {
28 
36 typedef std::unordered_map<std::string, Any> ServiceProperties;
37 
41 namespace ServiceConstants {
42 
51 MITKCPPMICROSERVICES_EXPORT const std::string& OBJECTCLASS(); // = "objectclass"
52 
63 MITKCPPMICROSERVICES_EXPORT const std::string& SERVICE_ID(); // = "service.id"
64 
90 MITKCPPMICROSERVICES_EXPORT const std::string& SERVICE_RANKING(); // = "service.ranking"
91 
101 MITKCPPMICROSERVICES_EXPORT const std::string& SERVICE_SCOPE(); // = "service.scope"
102 
109 MITKCPPMICROSERVICES_EXPORT const std::string& SCOPE_SINGLETON(); // = "singleton"
110 
117 MITKCPPMICROSERVICES_EXPORT const std::string& SCOPE_MODULE(); // = "module"
118 
126 MITKCPPMICROSERVICES_EXPORT const std::string& SCOPE_PROTOTYPE(); // = "prototype"
127 
128 }
129 
130 }
131 
132 #endif // US_SERVICE_PROPERTIES_H
#define MITKCPPMICROSERVICES_EXPORT
std::unordered_map< std::string, Any > ServiceProperties
MITKCPPMICROSERVICES_EXPORT const std::string & SCOPE_MODULE()
Service scope is module. Each module using the service receives a distinct service object.
MITKCPPMICROSERVICES_EXPORT const std::string & SERVICE_RANKING()
Service property identifying a service's ranking number.
MITKCPPMICROSERVICES_EXPORT const std::string & SCOPE_SINGLETON()
Service scope is singleton. All modules using the service receive the same service object.
MITKCPPMICROSERVICES_EXPORT const std::string & SERVICE_ID()
Service property identifying a service's registration number. The value of this property must be of t...
MITKCPPMICROSERVICES_EXPORT const std::string & SCOPE_PROTOTYPE()
Service scope is prototype. Each module using the service receives either a distinct service object o...
MITKCPPMICROSERVICES_EXPORT const std::string & SERVICE_SCOPE()
Service property identifying a service's scope. This property is set by the framework when a service ...
MITKCPPMICROSERVICES_EXPORT const std::string & OBJECTCLASS()
Service property identifying all of the class names under which a service was registered in the frame...