Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usServiceFindHook.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 USSERVICEFINDHOOK_H
14 #define USSERVICEFINDHOOK_H
15 
16 #include <usServiceInterface.h>
17 #include <usShrinkableVector.h>
18 
19 #include <string>
20 
21 namespace us {
22 
23 class Module;
24 class ModuleContext;
25 class ServiceReferenceBase;
26 
39 {
40 
42  virtual ~ServiceFindHook();
43 
60  virtual void Find(const ModuleContext* context, const std::string& name,
61  const std::string& filter, ShrinkableVector<ServiceReferenceBase>& references) = 0;
62 };
63 
64 }
65 
66 #endif // USSERVICEFINDHOOK_H
#define MITKCPPMICROSERVICES_EXPORT
A std::vector style container allowing query and removal operations only.
Service Find Hook Service.
virtual ~ServiceFindHook()
Destructor.
virtual void Find(const ModuleContext *context, const std::string &name, const std::string &filter, ShrinkableVector< ServiceReferenceBase > &references)=0
Find hook method. This method is called during the service find operation (for example,...