17 #ifndef mitkConnectomicsEnumerationSubclassesSerializer_h_included
18 #define mitkConnectomicsEnumerationSubclassesSerializer_h_included
32 #include <MitkConnectomicsExports.h>
34 #define MITK_REGISTER_ENUM_SUB_SERIALIZER(classname) \
39 class MITKCONNECTOMICS_EXPORT classname ## Serializer : public EnumerationPropertySerializer \
43 mitkClassMacro( classname ## Serializer, EnumerationPropertySerializer ) \
44 itkFactorylessNewMacro(Self) \
47 virtual BaseProperty::Pointer Deserialize(TiXmlElement* element) \
49 if (!element) return NULL; \
50 const char* sa( element->Attribute("value") ); \
52 std::string s(sa?sa:""); \
53 classname::Pointer property = classname::New(); \
54 property->SetValue( s ); \
56 return property.GetPointer(); \
61 classname ## Serializer () {} \
62 virtual ~classname ## Serializer () {} \
67 MITK_REGISTER_SERIALIZER( classname ## Serializer );
#define MITK_REGISTER_ENUM_SUB_SERIALIZER(classname)