13 #ifndef mitkIPropertyDeserialization_h
14 #define mitkIPropertyDeserialization_h
20 #include <itkSmartPointer.h>
23 #include <type_traits>
39 virtual BaseProperty::Pointer
CreateInstance(
const std::string& className) = 0;
48 template <
typename T,
typename = std::enable_if_t<std::is_base_of_v<BaseProperty, T>>>
51 this->InternalRegisterProperty(T::New());
Abstract base class for properties.
Interface of property deserialization service.
virtual ~IPropertyDeserialization()
virtual BaseProperty::Pointer CreateInstance(const std::string &className)=0
virtual void InternalRegisterProperty(const BaseProperty *property)=0
void RegisterProperty()
Register a custom property type for deserialization.
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Find image slices visible on a given plane.