Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <usServiceFindHook.h>
Public Member Functions | |
virtual | ~ServiceFindHook () |
virtual void | Find (const ModuleContext *context, const std::string &name, const std::string &filter, ShrinkableVector< ServiceReferenceBase > &references)=0 |
Service Find Hook Service.
Modules registering this service will be called during service find (get service references) operations.
Definition at line 47 of file usServiceFindHook.h.
|
virtual |
|
pure virtual |
Find hook method. This method is called during the service find operation (for example, ModuleContext::GetServiceReferences<S>()). This method can filter the result of the find operation.
context | The module context of the module performing the find operation. |
name | The class name of the services to find or an empty string to find all services. |
filter | The filter criteria of the services to find or an empty string for no filter criteria. |
references | A list of Service References to be returned as a result of the find operation. The implementation of this method may remove service references from the list to prevent the references from being returned to the module performing the find operation. |