KWWidgets
|
00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWWidgetsVersion.h,v $ 00004 00005 Copyright (c) Kitware, Inc. 00006 All rights reserved. 00007 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00014 // .NAME vtkKWWidgetsVersion - Versioning class for KWWidgets 00015 // .SECTION Description 00016 // Holds methods for defining/determining the current KWWidgets version 00017 // (major, minor, build). 00018 // .SECTION Caveats 00019 // This file will change frequently to update the VTK_SOURCE_VERSION which 00020 // timestamps a particular source release. 00021 00022 #ifndef __vtkKWWidgetsVersion_h 00023 #define __vtkKWWidgetsVersion_h 00024 00025 #include "vtkKWWidgets.h" // Needed for export symbols directives 00026 #include "vtkObject.h" 00027 00028 #define KWWidgets_SOURCE_VERSION "KWWidgets version " KWWidgets_VERSION ", KWWidgets source $Revision: 1.1211 $, $Date: 2010-02-05 07:53:59 $ (GMT)" 00029 00030 class KWWidgets_EXPORT vtkKWWidgetsVersion : public vtkObject 00031 { 00032 public: 00033 static vtkKWWidgetsVersion *New(); 00034 vtkTypeRevisionMacro(vtkKWWidgetsVersion,vtkObject); 00035 void PrintSelf(ostream& os, vtkIndent indent); 00036 00037 // Description: 00038 // Return the major, minor and patch version of the KWWidgets library. 00039 static int GetKWWidgetsMajorVersion() 00040 { return KWWidgets_MAJOR_VERSION; } 00041 static int GetKWWidgetsMinorVersion() 00042 { return KWWidgets_MINOR_VERSION; } 00043 static int GetKWWidgetsPatchVersion() 00044 { return KWWidgets_PATCH_VERSION; } 00045 00046 // Description: 00047 // Return the version of the KWWidgets library (as an aggregation of 00048 // the major, minor and patch version). 00049 static const char *GetKWWidgetsVersion() 00050 { return KWWidgets_VERSION; } 00051 00052 // Description: 00053 // Return a string with an identifier which timestamps a particular source 00054 // tree. 00055 static const char *GetKWWidgetsSourceVersion() 00056 { return KWWidgets_SOURCE_VERSION; } 00057 00058 protected: 00059 vtkKWWidgetsVersion() {}; 00060 ~vtkKWWidgetsVersion() {}; 00061 00062 private: 00063 vtkKWWidgetsVersion(const vtkKWWidgetsVersion&); // Not implemented. 00064 void operator=(const vtkKWWidgetsVersion&); // Not implemented. 00065 }; 00066 00067 #endif