Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
mitkScalarListLookupTablePropertySerializer.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 mitkScalarListLookupTablePropertySerializer_h
14 #define mitkScalarListLookupTablePropertySerializer_h
15 
17 
18 #include "mitkBaseProperty.h"
19 
20 #include "MitkModelFitExports.h"
21 
22 namespace mitk
23 {
29  {
30  public:
32  itkNewMacro(Self);
33 
34  tinyxml2::XMLElement* Serialize(tinyxml2::XMLDocument& doc) override;
35  BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement* element) override;
36 
37  protected:
40  };
41 
42  namespace PropertyPersistenceSerialization
43  {
45  MITKMODELFIT_EXPORT ::std::string serializeScalarListLookupTablePropertyToXML(const mitk::BaseProperty *prop);
46  }
47 
48  namespace PropertyPersistenceDeserialization
49  {
52  }
53 }
54 
55 #endif // mitkScalarListLookupTablePropertySerializer_h
mitkClassMacro(ScalarListLookupTablePropertySerializer, BasePropertySerializer)
DataCollection - Class to facilitate loading/accessing structured data.
Serializer for the ScalarListLookupTableProperty so it can be written and read from file...
#define MITKMODELFIT_EXPORT
MITKMODELFIT_EXPORT mitk::BaseProperty::Pointer deserializeXMLToScalarListLookupTableProperty(const std::string &value)
MITKMODELFIT_EXPORT ::std::string serializeScalarListLookupTablePropertyToXML(const mitk::BaseProperty *prop)
Abstract base class for properties.
Base class for objects that serialize BaseProperty types.
tinyxml2::XMLElement * Serialize(tinyxml2::XMLDocument &doc) override
Serializes given BaseProperty object.
BaseProperty::Pointer Deserialize(const tinyxml2::XMLElement *element) override
Deserializes given XML element.