VTK
dox/Common/Core/vtkVersion.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkVersion.h
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 "vtkCommonCoreModule.h" // For export macro
00031 #include "vtkObject.h"
00032 #include "vtkVersionMacros.h" // For version macros
00033 
00034 #define VTK_SOURCE_VERSION "vtk version " VTK_VERSION
00035 
00036 class VTKCOMMONCORE_EXPORT vtkVersion : public vtkObject
00037 {
00038 public:
00039   static vtkVersion *New();
00040   vtkTypeMacro(vtkVersion,vtkObject);
00041 
00043 
00046   static const char *GetVTKVersion() { return VTK_VERSION; }
00047   static int GetVTKMajorVersion() { return VTK_MAJOR_VERSION; }
00048   static int GetVTKMinorVersion() { return VTK_MINOR_VERSION; }
00049   static int GetVTKBuildVersion() { return VTK_BUILD_VERSION; }
00050   static const char *GetVTKSourceVersion() { return VTK_SOURCE_VERSION; }
00052 
00053 protected:
00054   vtkVersion() {} //insure constructor/destructor protected
00055   ~vtkVersion() {}
00056 private:
00057   vtkVersion(const vtkVersion&);  // Not implemented.
00058   void operator=(const vtkVersion&);  // Not implemented.
00059 };
00060 
00061 #endif
00062 
00063 // VTK-HeaderTest-Exclude: vtkVersion.h