00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMetaDataObjectBase.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-02-05 22:04:15 $ 00007 Version: $Revision: 1.11 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 Portions of this code are covered under the VTK copyright. 00013 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. 00014 00015 This software is distributed WITHOUT ANY WARRANTY; without even 00016 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 PURPOSE. See the above copyright notices for more information. 00018 00019 =========================================================================*/ 00020 #ifndef __itkMetaDataObjectBase_h 00021 #define __itkMetaDataObjectBase_h 00022 00023 #include "itkLightObject.h" 00024 #include <typeinfo> 00025 #include <iostream> 00026 00027 namespace itk { 00038 class ITKCommon_EXPORT MetaDataObjectBase : public LightObject 00039 { 00040 public: 00042 typedef MetaDataObjectBase Self; 00043 typedef LightObject Superclass; 00044 typedef SmartPointer<Self> Pointer; 00045 typedef SmartPointer<const Self> ConstPointer; 00046 00047 00049 itkTypeMacro(MetaDataObjectBase, LightObject); 00050 00055 virtual const char * GetMetaDataObjectTypeName(void) const; 00056 00061 virtual const std::type_info & GetMetaDataObjectTypeInfo(void) const; 00062 00067 virtual void Print(std::ostream& os) const; 00068 protected: 00069 00071 // Should not be able to construct a new MetaDataObjectBase 00072 // static Pointer New(void); 00073 00077 virtual ~MetaDataObjectBase(); 00078 MetaDataObjectBase(); 00079 private: 00080 //void * operator new(size_t nothing) {};//purposefully not implemented 00081 MetaDataObjectBase(const Self &);//purposely not implemented 00082 void operator=(const Self&); //purposely not implemented 00083 }; 00084 } 00086 00087 #endif //__itkMetaDataObjectBase_h 00088