Serializer for mitk::EnumerationProperty and its sub-classes.
More...
#include <mitkEnumerationPropertySerializer.h>
Serializer for mitk::EnumerationProperty and its sub-classes.
Serializes an EnumerationProperty into an XML element with the tag "enum" and the current enumeration value as a string attribute. This serializer serves as the base for all enumeration-type property serializers.
- See also
- BasePropertySerializer, EnumerationProperty
Definition at line 31 of file mitkEnumerationPropertySerializer.h.
◆ EnumerationPropertySerializer()
| mitk::EnumerationPropertySerializer::EnumerationPropertySerializer |
( |
| ) |
|
|
protected |
◆ ~EnumerationPropertySerializer()
| mitk::EnumerationPropertySerializer::~EnumerationPropertySerializer |
( |
| ) |
|
|
overrideprotected |
◆ mitkClassMacro()
◆ Serialize()
| tinyxml2::XMLElement* mitk::EnumerationPropertySerializer::Serialize |
( |
tinyxml2::XMLDocument & |
doc | ) |
|
|
overridevirtual |
Serializes the EnumerationProperty into an XML element.
Creates an XML element with tag "enum" and a "value" attribute set to the string representation of the current enumeration value.
- Parameters
-
| [in,out] | doc | The XML document used to create the element. |
- Returns
- Pointer to the created XML element, or nullptr if the property is not an EnumerationProperty.
Reimplemented from mitk::BasePropertySerializer.
The documentation for this class was generated from the following file: