Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usModuleEventHook.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 USMODULEEVENTHOOK_H
14 #define USMODULEEVENTHOOK_H
15 
16 #include <usServiceInterface.h>
17 #include <usShrinkableVector.h>
18 
19 namespace us {
20 
21 class ModuleContext;
22 class ModuleEvent;
23 
36 {
37 
39  virtual ~ModuleEventHook();
40 
57  virtual void Event(const ModuleEvent& event, ShrinkableVector<ModuleContext*>& contexts) = 0;
58 };
59 
60 }
61 
62 #endif // USMODULEEVENTHOOK_H
#define MITKCPPMICROSERVICES_EXPORT
An event from the Micro Services framework describing a module lifecycle change.
Definition: usModuleEvent.h:38
A std::vector style container allowing query and removal operations only.
Module Event Hook Service.
virtual ~ModuleEventHook()
Virtual destructor.
virtual void Event(const ModuleEvent &event, ShrinkableVector< ModuleContext * > &contexts)=0
Module event hook method. This method is called prior to module event delivery when a module is loadi...