13 #ifndef mitkUIntPropertySerializer_h_included 14 #define mitkUIntPropertySerializer_h_included 22 class UIntPropertySerializer :
public BasePropertySerializer
26 itkFactorylessNewMacro(Self) itkCloneMacro(Self)
28 TiXmlElement *Serialize()
override 30 if (
const UIntProperty *prop = dynamic_cast<const UIntProperty *>(m_Property.GetPointer()))
32 auto element =
new TiXmlElement(
"unsigned");
33 element->SetAttribute(
"value", static_cast<unsigned int>(prop->GetValue()));
46 if (element->QueryUnsignedAttribute(
"value", &integer) == TIXML_SUCCESS)
57 UIntPropertySerializer() {}
58 ~UIntPropertySerializer()
override {}
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
MITK_REGISTER_SERIALIZER(UIntPropertySerializer)
#define mitkClassMacro(className, SuperClassName)