Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usServiceEventListenerHook.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 USSERVICEEVENTLISTENERHOOK_H
14 #define USSERVICEEVENTLISTENERHOOK_H
15 
16 #include <usServiceInterface.h>
17 #include <usServiceListenerHook.h>
18 #include <usShrinkableVector.h>
19 #include <usShrinkableMap.h>
20 
21 namespace us {
22 
23 class ModuleContext;
24 class ServiceEvent;
25 
38 {
41 
44 
58  virtual void Event(const ServiceEvent& event, ShrinkableMapType& listeners) = 0;
59 };
60 
61 }
62 
63 #endif // USSERVICEEVENTLISTENERHOOK_H
#define MITKCPPMICROSERVICES_EXPORT
A std::map style associative container allowing query and removal operations only.
Service Event Listener Hook Service.
ShrinkableMap< ModuleContext *, ShrinkableVector< ServiceListenerHook::ListenerInfo > > ShrinkableMapType
Map type from ModuleContext pointers to shrinkable vectors of ListenerInfo.
virtual ~ServiceEventListenerHook()
Destructor.
virtual void Event(const ServiceEvent &event, ShrinkableMapType &listeners)=0
Event listener hook method. This method is called prior to service event delivery when a publishing m...