00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkMatlabTransformIOFactory.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007/08/09 15:16:00 $ 00007 Version: $Revision: 1.1 $ 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 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkMatlabTransformIOFactory_h 00018 #define __itkMatlabTransformIOFactory_h 00019 00020 #ifdef _MSC_VER 00021 #pragma warning ( disable : 4786 ) 00022 #endif 00023 00024 #include "itkObjectFactoryBase.h" 00025 #include "itkTransformIOBase.h" 00026 00027 namespace itk 00028 { 00033 class ITK_EXPORT MatlabTransformIOFactory : public ObjectFactoryBase 00034 { 00035 public: 00037 typedef MatlabTransformIOFactory Self; 00038 typedef ObjectFactoryBase Superclass; 00039 typedef SmartPointer<Self> Pointer; 00040 typedef SmartPointer<const Self> ConstPointer; 00041 00043 virtual const char* GetITKSourceVersion(void) const; 00044 virtual const char* GetDescription(void) const; 00046 00048 itkFactorylessNewMacro(Self); 00049 00051 itkTypeMacro(MatlabTransformIOFactory, ObjectFactoryBase); 00052 00054 static void RegisterOneFactory(void) 00055 { 00056 MatlabTransformIOFactory::Pointer metaFactory = 00057 MatlabTransformIOFactory::New(); 00058 ObjectFactoryBase::RegisterFactory(metaFactory); 00059 } 00061 00062 protected: 00063 MatlabTransformIOFactory(); 00064 ~MatlabTransformIOFactory(); 00065 virtual void PrintSelf(std::ostream& os, Indent indent) const; 00066 00067 private: 00068 MatlabTransformIOFactory(const Self&); //purposely not implemented 00069 void operator=(const Self&); //purposely not implemented 00070 00071 }; 00072 00073 00074 } // end namespace itk 00075 00076 #endif 00077