Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkVersion.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVersion.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00026 #ifndef __vtkVersion_h
00027 #define __vtkVersion_h
00028 
00029 
00030 #include "vtkObject.h"
00031 
00032 #define VTK_SOURCE_VERSION "vtk version " VTK_VERSION ", vtk source $Revision: 1.2004 $, $Date: 2004/10/04 01:46:32 $ (GMT)"
00033 
00034 
00035 class VTK_COMMON_EXPORT vtkVersion : public vtkObject
00036 {
00037 public:
00038   static vtkVersion *New();
00039   vtkTypeRevisionMacro(vtkVersion,vtkObject);
00040 
00042 
00045   static const char *GetVTKVersion() { return VTK_VERSION; }
00046   static int GetVTKMajorVersion() { return VTK_MAJOR_VERSION; }
00047   static int GetVTKMinorVersion() { return VTK_MINOR_VERSION; }
00048   static int GetVTKBuildVersion() { return VTK_BUILD_VERSION; }
00049   static const char *GetVTKSourceVersion() { return VTK_SOURCE_VERSION; }
00051   
00052 protected:
00053   vtkVersion() {}; //insure constructor/destructor protected
00054   ~vtkVersion() {};
00055 private:
00056   vtkVersion(const vtkVersion&);  // Not implemented.
00057   void operator=(const vtkVersion&);  // Not implemented.
00058 };
00059 
00060 #endif