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