Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkBasePropertySerializer.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkBasePropertySerializer_h
14 #define mitkBasePropertySerializer_h
15 
16 #include <mitkSerializerMacros.h>
18 
19 #include <mitkBaseProperty.h>
20 #include <itkObjectFactoryBase.h>
21 
22 namespace tinyxml2
23 {
24  class XMLDocument;
25  class XMLElement;
26 }
27 
28 namespace mitk
29 {
49  {
50  public:
52 
57  itkSetConstObjectMacro(Property, BaseProperty);
58 
71  virtual tinyxml2::XMLElement *Serialize(tinyxml2::XMLDocument& doc);
72 
83  virtual BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement* element);
84 
85  protected:
88 
89  BaseProperty::ConstPointer m_Property;
90  };
91 
92 } // namespace
93 
94 #endif
#define MITKSCENESERIALIZATIONBASE_EXPORT
Base class for objects that serialize and deserialize BaseProperty types to/from XML.
mitkClassMacroItkParent(BasePropertySerializer, itk::Object)
virtual BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement *element)
Deserializes an XML element back into a BaseProperty object.
BaseProperty::ConstPointer m_Property
virtual tinyxml2::XMLElement * Serialize(tinyxml2::XMLDocument &doc)
Serializes the previously set BaseProperty object into an XML element.
Abstract base class for properties.
Provides the MITK_REGISTER_SERIALIZER macro for automatic registration of serializer classes.
Find image slices visible on a given plane.