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
37
struct
MITKCPPMICROSERVICES_EXPORT
ServiceEventListenerHook
38
{
40
typedef
ShrinkableMap<ModuleContext*, ShrinkableVector<ServiceListenerHook::ListenerInfo>
>
ShrinkableMapType
;
41
43
virtual
~ServiceEventListenerHook
();
44
58
virtual
void
Event
(
const
ServiceEvent
& event,
ShrinkableMapType
& listeners) = 0;
59
};
60
61
}
62
63
#endif
// USSERVICEEVENTLISTENERHOOK_H
MITKCPPMICROSERVICES_EXPORT
#define MITKCPPMICROSERVICES_EXPORT
Definition:
MitkCppMicroServicesExports.h:15
us::ServiceEvent
Definition:
usServiceEvent.h:47
us::ShrinkableMap
A std::map style associative container allowing query and removal operations only.
Definition:
usShrinkableMap.h:30
us
Definition:
mitkAbstractFileReader.h:30
us::ServiceEventListenerHook
Service Event Listener Hook Service.
Definition:
usServiceEventListenerHook.h:38
us::ServiceEventListenerHook::ShrinkableMapType
ShrinkableMap< ModuleContext *, ShrinkableVector< ServiceListenerHook::ListenerInfo > > ShrinkableMapType
Map type from ModuleContext pointers to shrinkable vectors of ListenerInfo.
Definition:
usServiceEventListenerHook.h:40
us::ServiceEventListenerHook::~ServiceEventListenerHook
virtual ~ServiceEventListenerHook()
Destructor.
us::ServiceEventListenerHook::Event
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...
usServiceInterface.h
usServiceListenerHook.h
usShrinkableMap.h
usShrinkableVector.h
src
MITK
Modules
CppMicroServices
include
usServiceEventListenerHook.h
Generated by
1.9.1