13 #ifndef mitkStringPropertySerializer_h_included 14 #define mitkStringPropertySerializer_h_included 22 class StringPropertySerializer :
public BasePropertySerializer
26 itkFactorylessNewMacro(Self) itkCloneMacro(Self)
28 TiXmlElement *Serialize()
override 30 if (
const StringProperty *prop = dynamic_cast<const StringProperty *>(m_Property.GetPointer()))
32 auto element =
new TiXmlElement(
"string");
33 element->SetAttribute(
"value", prop->GetValue());
44 const char *s(element->Attribute(
"value"));
49 StringPropertySerializer() {}
50 ~StringPropertySerializer()
override {}
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
#define mitkClassMacro(className, SuperClassName)
MITK_REGISTER_SERIALIZER(StringPropertySerializer)