Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitk::IPropertyDeserialization Class Referenceabstract

Interface of property deserialization service. More...

#include <mitkIPropertyDeserialization.h>

Inheritance diagram for mitk::IPropertyDeserialization:

Public Member Functions

virtual ~IPropertyDeserialization ()
 
virtual BaseProperty::Pointer CreateInstance (const std::string &className)=0
 
template<typename T , typename = std::enable_if_t<std::is_base_of_v<BaseProperty, T>>>
void RegisterProperty ()
 Register a custom property type for deserialization. More...
 

Protected Member Functions

virtual void InternalRegisterProperty (const BaseProperty *property)=0
 

Detailed Description

Interface of property deserialization service.

This service allows you to register custom property types (derived from BaseProperty) for deserialization. If a property type is not registered, it cannot be deserialized, e.g. when deserializing a PropertyList.

Definition at line 34 of file mitkIPropertyDeserialization.h.

Constructor & Destructor Documentation

◆ ~IPropertyDeserialization()

virtual mitk::IPropertyDeserialization::~IPropertyDeserialization ( )
virtual

Member Function Documentation

◆ CreateInstance()

virtual BaseProperty::Pointer mitk::IPropertyDeserialization::CreateInstance ( const std::string &  className)
pure virtual

◆ InternalRegisterProperty()

virtual void mitk::IPropertyDeserialization::InternalRegisterProperty ( const BaseProperty property)
protectedpure virtual

◆ RegisterProperty()

template<typename T , typename = std::enable_if_t<std::is_base_of_v<BaseProperty, T>>>
void mitk::IPropertyDeserialization::RegisterProperty ( )
inline

Register a custom property type for deserialization.

The module activator of the module defining a property type is a good location to register custom property types of that module. See the implementation of MitkCoreActivator for examples.

Definition at line 49 of file mitkIPropertyDeserialization.h.


The documentation for this class was generated from the following file: