17 #ifndef mitkStringPropertySerializer_h_included
18 #define mitkStringPropertySerializer_h_included
26 class StringPropertySerializer :
public BasePropertySerializer
30 itkFactorylessNewMacro(Self) itkCloneMacro(Self)
32 virtual TiXmlElement *Serialize()
override
34 if (
const StringProperty *prop = dynamic_cast<const StringProperty *>(m_Property.GetPointer()))
36 auto element =
new TiXmlElement(
"string");
37 element->SetAttribute(
"value", prop->GetValue());
48 const char *s(element->Attribute(
"value"));
53 StringPropertySerializer() {}
54 virtual ~StringPropertySerializer() {}
DataCollection - Class to facilitate loading/accessing structured data.
itk::SmartPointer< Self > Pointer
#define mitkClassMacro(className, SuperClassName)
MITK_REGISTER_SERIALIZER(StringPropertySerializer)