Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usServiceTrackerCustomizer.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 USSERVICETRACKERCUSTOMIZER_H
15 #define USSERVICETRACKERCUSTOMIZER_H
16 
17 #include <usServiceReference.h>
18 
19 namespace us {
20 
53 template<class S, class T = S*>
55 
57  typedef S ServiceType;
58 
60  typedef T TrackedType;
61 
64 
67 
86  virtual TrackedType AddingService(const ServiceReferenceType& reference) = 0;
87 
98  virtual void ModifiedService(const ServiceReferenceType& reference, TrackedType service) = 0;
99 
110  virtual void RemovedService(const ServiceReferenceType& reference, TrackedType service) = 0;
111 };
112 
113 }
114 
115 #endif // USSERVICETRACKERCUSTOMIZER_H
virtual void ModifiedService(const ServiceReferenceType &reference, TrackedType service)=0
A service tracked by the ServiceTracker has been modified.
virtual void RemovedService(const ServiceReferenceType &reference, TrackedType service)=0
A service tracked by the ServiceTracker has been removed.
S ServiceType
The service type being tracked.
virtual ~ServiceTrackerCustomizer()
Destructor.
virtual TrackedType AddingService(const ServiceReferenceType &reference)=0
A service is being added to the ServiceTracker.
T TrackedType
The tracked object type.
ServiceReference< ServiceType > ServiceReferenceType
The service reference type for the tracked service.