VAPoR  0.1
Version.h
Go to the documentation of this file.
1 //
2 // $Id$
3 //
4 // WARNING: Version.h is generated automatically from Version.h.sed
5 //
6 //************************************************************************
7 // *
8 // Copyright (C) 2004 *
9 // University Corporation for Atmospheric Research *
10 // All Rights Reserved *
11 // *
12 //************************************************************************/
13 //
14 // File:
15 //
16 // Author: John Clyne
17 // National Center for Atmospheric Research
18 // PO 3000, Boulder, Colorado
19 //
20 // Date: Tue Jul 11 11:59:53 MDT 2006
21 //
22 // Description: Version information.
23 //
24 
32 
33 
34 #ifndef _Version_h_
35 #define _Version_h_
36 
37 #include <string>
38 #include <cstdlib>
39 #include <vapor/MyBase.h>
40 #include <vapor/common.h>
41 
42 using namespace std;
43 
44 namespace VetsUtil {
45 
46 //
47 class COMMON_API Version : public MyBase {
48 
49 public:
51  //
52  static int GetMajor() { return(_majorVersion); }
53 
55  //
56  static int GetMinor() { return(_minorVersion); }
57 
59  //
60  static int GetMinorMinor() { return(_minorMinorVersion); }
61 
63  //
64  static string GetRC() { return(""); }
65 
71  //
72  static const string &GetVersionString();
73 
79  //
80  static const string &GetDateString() {
81  _dateString.assign("Tue Dec 15 14:09:52 MST 2015"); return(_dateString);
82  }
83 
86  //
87  static void Parse(
88  std::string ver, int &major, int &minor, int &minorminor, string &rc
89  );
90 
91  static int Compare(int major, int minor, int minorminor) ;
92  static int Compare(std::string ver1, std::string ver2);
93 
94 private:
95  static const int _majorVersion = 2;
96  static const int _minorVersion = 5;
97  static const int _minorMinorVersion = 0;
98  static string _formatString;
99  static string _dateString;
100 
101 
102 };
103 }
104 
105 #endif
static int GetMajor()
Return the major version number.
Definition: Version.h:52
Definition: Base64.h:6
static string GetRC()
Return the sub minor version number.
Definition: Version.h:64
static int GetMinorMinor()
Return the sub minor version number.
Definition: Version.h:60
#define COMMON_API
Definition: common.h:60
VetsUtil base class.
Definition: MyBase.h:68
static const string & GetDateString()
Definition: Version.h:80
static int GetMinor()
Return the minor version number.
Definition: Version.h:56