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