Medical Imaging Interaction Toolkit  2021.10.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 mitkSerializeBaseProperty_h_included
14 #define mitkSerializeBaseProperty_h_included
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 {
42  {
43  public:
45 
46  itkSetConstObjectMacro(Property, BaseProperty);
47 
54  virtual tinyxml2::XMLElement *Serialize(tinyxml2::XMLDocument& doc);
55 
63  virtual BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement*);
64 
65  protected:
67  ~BasePropertySerializer() override;
68 
70  };
71 
72 } // namespace
73 
74 #endif
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
Base class for objects that serialize BaseProperty types.
BaseProperty::ConstPointer m_Property
#define MITKSCENESERIALIZATIONBASE_EXPORT