Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkVersion.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVersion.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/10/22 05:11:43 $
00007   Version:   $Revision: 1.727 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkVersion_h
00021 #define __itkVersion_h
00022 
00023 #include "itkObject.h"
00024 #include "itkObjectFactory.h"
00025 
00026 #define ITK_VERSION "0.0.1"
00027 #define ITK_MAJOR_VERSION 0
00028 #define ITK_MINOR_VERSION 0
00029 #define ITK_BUILD_VERSION 2
00030 #define ITK_SOURCE_VERSION "itk version " ITK_VERSION ", itk source $Revision: 1.727 $, $Date: 2002/10/22 05:11:43 $ (GMT)"
00031 
00032 namespace itk
00033 {
00046 class ITK_EXPORT Version : public Object 
00047 {
00048 public:
00050   typedef Version             Self;
00051   typedef Object  Superclass;
00052   typedef SmartPointer<Self>  Pointer;
00053   typedef SmartPointer<const Self>  ConstPointer;
00054   
00056   itkNewMacro(Self);  
00057 
00059   itkTypeMacro(Version,Object);
00060 
00064   static const char *GetITKVersion() { return ITK_VERSION; };
00065   static int GetITKMajorVersion() { return ITK_MAJOR_VERSION; };
00066   static int GetITKMinorVersion() { return ITK_MINOR_VERSION; };
00067   static int GetITKBuildVersion() { return ITK_BUILD_VERSION; };
00068   static const char *GetITKSourceVersion() { return ITK_SOURCE_VERSION; };
00069     
00070 protected:
00071   Version() {}
00072   ~Version() {}
00073 
00074 private:
00075   Version(const Self&); //purposely not implemented
00076   void operator=(const Self&); //purposely not implemented
00077 
00078 };
00079 
00080 } // end namespace itk
00081 
00082 #endif 

Generated at Wed Mar 12 01:13:12 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000