KWWidgets
vtkKWWidgetsVersion.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Module: $RCSfile: vtkKWWidgetsVersion.h,v $
4 
5  Copyright (c) Kitware, Inc.
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 // .NAME vtkKWWidgetsVersion - Versioning class for KWWidgets
15 // .SECTION Description
16 // Holds methods for defining/determining the current KWWidgets version
17 // (major, minor, build).
18 // .SECTION Caveats
19 // This file will change frequently to update the VTK_SOURCE_VERSION which
20 // timestamps a particular source release.
21 
22 #ifndef __vtkKWWidgetsVersion_h
23 #define __vtkKWWidgetsVersion_h
24 
25 #include "vtkKWWidgets.h" // Needed for export symbols directives
26 #include "vtkObject.h"
27 
28 #define KWWidgets_SOURCE_VERSION "KWWidgets version " KWWidgets_VERSION ", KWWidgets source $Revision: 1.1211 $, $Date: 2010-02-05 07:53:59 $ (GMT)"
29 
30 class KWWidgets_EXPORT vtkKWWidgetsVersion : public vtkObject
31 {
32 public:
33  static vtkKWWidgetsVersion *New();
34  vtkTypeRevisionMacro(vtkKWWidgetsVersion,vtkObject);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
37  // Description:
38  // Return the major, minor and patch version of the KWWidgets library.
39  static int GetKWWidgetsMajorVersion()
40  { return KWWidgets_MAJOR_VERSION; }
41  static int GetKWWidgetsMinorVersion()
42  { return KWWidgets_MINOR_VERSION; }
43  static int GetKWWidgetsPatchVersion()
44  { return KWWidgets_PATCH_VERSION; }
45 
46  // Description:
47  // Return the version of the KWWidgets library (as an aggregation of
48  // the major, minor and patch version).
49  static const char *GetKWWidgetsVersion()
50  { return KWWidgets_VERSION; }
51 
52  // Description:
53  // Return a string with an identifier which timestamps a particular source
54  // tree.
55  static const char *GetKWWidgetsSourceVersion()
56  { return KWWidgets_SOURCE_VERSION; }
57 
58 protected:
61 
62 private:
63  vtkKWWidgetsVersion(const vtkKWWidgetsVersion&); // Not implemented.
64  void operator=(const vtkKWWidgetsVersion&); // Not implemented.
65 };
66 
67 #endif