|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Helper class to ensure DICOM tags of interest are registered at IDICOMTagsOfInterest services. More...
#include <mitkDICOMTagsOfInterestAddHelper.h>
Public Types | |
| using | TagsOfInterestVector = std::vector< mitk::DICOMTagPath > |
| Vector of DICOMTagPath instances representing tags to register. More... | |
Public Member Functions | |
| ~DICOMTagsOfInterestAddHelper () | |
| void | Activate (us::ModuleContext *context, TagsOfInterestVector tags) |
| Activate the helper to start registering tags of interest. More... | |
| void | Deactivate () |
| Deactivate the helper and stop listening for new services. More... | |
Helper class to ensure DICOM tags of interest are registered at IDICOMTagsOfInterest services.
This helper class can be used to ensure that a given list of DICOM tags will be registered at existing IDICOMTagsOfInterest services. If the services are available the tags will be directly added. As long as the helper is active, it will add the given tags to all new IDICOMTagsOfInterest services as soon as they are registered.
This class is typically used in module activators where the IDICOMTagsOfInterest service might not be registered when a module is loaded, but the module wants to ensure that the tags are added as soon as possible.
Definition at line 54 of file mitkDICOMTagsOfInterestAddHelper.h.
| using mitk::DICOMTagsOfInterestAddHelper::TagsOfInterestVector = std::vector<mitk::DICOMTagPath> |
Vector of DICOMTagPath instances representing tags to register.
Definition at line 58 of file mitkDICOMTagsOfInterestAddHelper.h.
| mitk::DICOMTagsOfInterestAddHelper::~DICOMTagsOfInterestAddHelper | ( | ) |
| void mitk::DICOMTagsOfInterestAddHelper::Activate | ( | us::ModuleContext * | context, |
| TagsOfInterestVector | tags | ||
| ) |
Activate the helper to start registering tags of interest.
Registers a service listener and immediately registers tags at any existing IDICOMTagsOfInterest services. Future services will also receive the tags.
| [in] | context | The CppMicroServices module context to use for service tracking. |
| [in] | tags | The list of DICOM tag paths to register. |
| void mitk::DICOMTagsOfInterestAddHelper::Deactivate | ( | ) |
Deactivate the helper and stop listening for new services.
Must be called before the module context becomes invalid.