Common/vtkVersion.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Common/vtkVersion.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkVersion.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00030 #ifndef __vtkVersion_h
    00031 #define __vtkVersion_h
    00032
    00033
    00034 #include "vtkObject.h"
    00035
    00036 #define VTK_SOURCE_VERSION "vtk version " VTK_VERSION ", vtk source $Revision: 1.1495 $, $Date: 2003/02/18 03:45:04 $ (GMT)"
    00037
    00038
    00039 class VTK_COMMON_EXPORT vtkVersion : public vtkObject
    00040 {
    00041 public:
    00042   static vtkVersion *New();
    00043   vtkTypeRevisionMacro(vtkVersion,vtkObject);
    00044
    00046
    00049   static const char *GetVTKVersion() { return VTK_VERSION; }
    00050   static int GetVTKMajorVersion() { return VTK_MAJOR_VERSION; }
    00051   static int GetVTKMinorVersion() { return VTK_MINOR_VERSION; }
    00052   static int GetVTKBuildVersion() { return VTK_BUILD_VERSION; }
    00053   static const char *GetVTKSourceVersion() { return VTK_SOURCE_VERSION; }
    00055
    00056 protected:
    00057   vtkVersion() {}; //insure constructor/destructor protected
    00058   ~vtkVersion() {};
    00059 private:
    00060   vtkVersion(const vtkVersion&);  // Not implemented.
    00061   void operator=(const vtkVersion&);  // Not implemented.
    00062 };
    00063
    00064 #endif