28 #ifndef __itkMetaDataObject_h
29 #define __itkMetaDataObject_h
72 template<
class MetaDataObjectType >
84 itkFactorylessNewMacro(
Self);
119 virtual const char * GetMetaDataObjectTypeName(
void)
const;
128 virtual const std::type_info & GetMetaDataObjectTypeInfo(
void)
const;
135 const MetaDataObjectType & GetMetaDataObjectValue(
void)
const;
142 void SetMetaDataObjectValue(
const MetaDataObjectType & NewValue);
148 virtual void Print(std::ostream & os)
const;
174 temp->SetMetaDataObjectValue(invalue);
175 Dictionary[key] = temp;
197 if ( !Dictionary.
HasKey(key) )
204 if ( strcmp(
typeid( T ).name(), baseObjectSmartPointer->GetMetaDataObjectTypeName() ) != 0 )
211 outval = TempMetaDataObject->GetMetaDataObjectValue();
256 #define NATIVE_TYPE_METADATAPRINT(TYPE_NAME) \
259 itk::MetaDataObject< TYPE_NAME > \
260 ::Print(std::ostream & os) const \
262 os << this->m_MetaDataObjectValue << std::endl; \
266 itk::MetaDataObject< const TYPE_NAME > \
267 ::Print(std::ostream & os) const \
269 os << this->m_MetaDataObjectValue << std::endl; \
281 #define ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(TYPE_NAME_PART1, TYPE_NAME_PART2) \
284 itk::MetaDataObject< TYPE_NAME_PART1, TYPE_NAME_PART2 > \
285 ::Print(std::ostream & os) const \
287 this->m_MetaDataObjectValue->Print(os); \
291 itk::MetaDataObject< const TYPE_NAME_PART1, TYPE_NAME_PART2 > \
292 ::Print(std::ostream & os) const \
294 this->m_MetaDataObjectValue->Print(os); \
305 #define ITK_IMAGE_TYPE_METADATAPRINT(STORAGE_TYPE) \
306 ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(itk::Image< STORAGE_TYPE, 1 >::Pointer) \
307 ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(itk::Image< STORAGE_TYPE, 2 >::Pointer) \
308 ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(itk::Image< STORAGE_TYPE, 3 >::Pointer) \
309 ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(itk::Image< STORAGE_TYPE, 4 >::Pointer) \
310 ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(itk::Image< STORAGE_TYPE, 5 >::Pointer) \
311 ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(itk::Image< STORAGE_TYPE, 6 >::Pointer) \
312 ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(itk::Image< STORAGE_TYPE, 7 >::Pointer) \
313 ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(itk::Image< STORAGE_TYPE, 8 >::Pointer) \
315 #ifndef ITK_MANUAL_INSTANTIATION
316 #include "itkMetaDataObject.hxx"
319 #endif //itkMetaDataObject_h