Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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  TiXmlElement* Serialize() override;
35  BaseProperty::Pointer Deserialize(TiXmlElement* 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
MITKMODELFIT_EXPORT mitk::BaseProperty::Pointer deserializeXMLToScalarListLookupTableProperty(const std::string &value)
TiXmlElement * Serialize() override
Serializes given BaseProperty object.
mitkClassMacro(ScalarListLookupTablePropertySerializer, BasePropertySerializer)
BaseProperty::Pointer Deserialize(TiXmlElement *element) override
Deserializes given TiXmlElement.
DataCollection - Class to facilitate loading/accessing structured data.
Serializer for the ScalarListLookupTableProperty so it can be written and read from file...
#define MITKMODELFIT_EXPORT
Abstract base class for properties.
Base class for objects that serialize BaseProperty types.
MITKMODELFIT_EXPORT ::std::string serializeScalarListLookupTablePropertyToXML(const mitk::BaseProperty *prop)