|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Interface of property deserialization service. More...
#include <mitkIPropertyDeserialization.h>

Public Member Functions | |
| virtual | ~IPropertyDeserialization () |
| virtual BaseProperty::Pointer | CreateInstance (const std::string &className)=0 |
| Create a new instance of a registered property type by class name. More... | |
| 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 |
| Internal method to register a property instance for deserialization. More... | |
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.
|
virtual |
|
pure virtual |
Create a new instance of a registered property type by class name.
| className | The class name of the property type to instantiate. |
Implemented in mitk::PropertyDeserialization.
|
protectedpure virtual |
Internal method to register a property instance for deserialization.
Called by the public RegisterProperty() template method.
| property | A prototype instance of the property type to register. |
Implemented in mitk::PropertyDeserialization.
|
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 54 of file mitkIPropertyDeserialization.h.