Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkServiceInterface.h File Reference

Provides the MITK_DECLARE_SERVICE_INTERFACE macro for registering C++ interfaces with both the CppMicroServices framework and (optionally) the Qt plugin system. More...

Go to the source code of this file.

Macros

#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
 Declare a C++ interface for use with CppMicroServices (Qt not available). More...
 

Detailed Description

Provides the MITK_DECLARE_SERVICE_INTERFACE macro for registering C++ interfaces with both the CppMicroServices framework and (optionally) the Qt plugin system.

When Qt's Q_DECLARE_INTERFACE is available (i.e. Qt headers have been included before this header), the macro registers the interface with both US_DECLARE_SERVICE_INTERFACE and Q_DECLARE_INTERFACE. Otherwise, only the CppMicroServices registration is performed.

Definition in file mitkServiceInterface.h.

Macro Definition Documentation

◆ MITK_DECLARE_SERVICE_INTERFACE

#define MITK_DECLARE_SERVICE_INTERFACE (   IFace,
  IId 
)

Declare a C++ interface for use with CppMicroServices (Qt not available).

Parameters
IFaceThe fully qualified C++ interface class name.
IIdA unique string identifier for the interface.

Definition at line 53 of file mitkServiceInterface.h.