VTK
vtkVersion.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVersion.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkVersion_h
27 #define vtkVersion_h
28 
29 
30 #include "vtkCommonCoreModule.h" // For export macro
31 #include "vtkObject.h"
32 #include "vtkVersionMacros.h" // For version macros
33 
34 #define VTK_SOURCE_VERSION "vtk version " VTK_VERSION
35 
37 {
38 public:
39  static vtkVersion *New();
40  vtkTypeMacro(vtkVersion,vtkObject);
41 
43 
46  static const char *GetVTKVersion() { return VTK_VERSION; }
47  static int GetVTKMajorVersion() { return VTK_MAJOR_VERSION; }
48  static int GetVTKMinorVersion() { return VTK_MINOR_VERSION; }
49  static int GetVTKBuildVersion() { return VTK_BUILD_VERSION; }
50  static const char *GetVTKSourceVersion() { return VTK_SOURCE_VERSION; }
52 
53 protected:
54  vtkVersion() {} //insure constructor/destructor protected
56 private:
57  vtkVersion(const vtkVersion&); // Not implemented.
58  void operator=(const vtkVersion&); // Not implemented.
59 };
60 
61 #endif
62 
63 // VTK-HeaderTest-Exclude: vtkVersion.h
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTK_BUILD_VERSION
#define VTKCOMMONCORE_EXPORT
#define VTK_MAJOR_VERSION
static const char * GetVTKSourceVersion()
Definition: vtkVersion.h:50
static int GetVTKMajorVersion()
Definition: vtkVersion.h:47
#define VTK_MINOR_VERSION
#define VTK_SOURCE_VERSION
Definition: vtkVersion.h:34
static int GetVTKMinorVersion()
Definition: vtkVersion.h:48
Versioning class for vtk.
Definition: vtkVersion.h:36
static vtkObject * New()
#define VTK_VERSION
static const char * GetVTKVersion()
Definition: vtkVersion.h:46
static int GetVTKBuildVersion()
Definition: vtkVersion.h:49