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: 2007/03/05 01:07:02 $
00007   Version:   $Revision: 1.2251 $
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 __itkVersion_h
00021 #define __itkVersion_h
00022 
00023 #include "itkObject.h"
00024 #include "itkObjectFactory.h"
00025 
00026 #define ITK_VERSION_TO_STRING(x) ITK_VERSION_TO_STRING0(x)
00027 #define ITK_VERSION_TO_STRING0(x) #x
00028 #define ITK_VERSION ITK_VERSION_TO_STRING(ITK_VERSION_MAJOR) "." \
00029                     ITK_VERSION_TO_STRING(ITK_VERSION_MINOR) "." \
00030                     ITK_VERSION_TO_STRING(ITK_VERSION_PATCH)
00031 #define ITK_SOURCE_VERSION "itk version " ITK_VERSION ", itk source $Revision: 1.2251 $, $Date: 2007/03/05 01:07:02 $ (GMT)"
00032 
00033 namespace itk
00034 {
00047 class ITKCommon_EXPORT Version : public Object 
00048 {
00049 public:
00051   typedef Version             Self;
00052   typedef Object  Superclass;
00053   typedef SmartPointer<Self>  Pointer;
00054   typedef SmartPointer<const Self>  ConstPointer;
00055 
00057   itkNewMacro(Self);  
00058 
00060   itkTypeMacro(Version,Object);
00061 
00065   static const char *GetITKVersion() { return ITK_VERSION; };
00066   static int GetITKMajorVersion() { return ITK_VERSION_MAJOR; };
00067   static int GetITKMinorVersion() { return ITK_VERSION_MINOR; };
00068   static int GetITKBuildVersion() { return ITK_VERSION_PATCH; };
00069   static const char *GetITKSourceVersion() { return ITK_SOURCE_VERSION; };
00071 
00072 protected:
00073   Version();
00074   ~Version();
00075 
00076 private:
00077   Version(const Self&); //purposely not implemented
00078   void operator=(const Self&); //purposely not implemented
00079 
00080 };
00081 
00082 } // end namespace itk
00083 
00084 #endif 
00085 

Generated at Mon Mar 12 03:24:02 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000