Equalizer  2.1.0
Parallel Rendering Framework
seq/version.h
Go to the documentation of this file.
1 // generated by CommonLibrary.cmake, do not edit.
2 
8 #ifndef SEQUEL_VERSION_H
9 #define SEQUEL_VERSION_H
10 
11 #include <seq/api.h>
12 #include <string>
13 
14 namespace seq
15 {
17 # define SEQ_VERSION_MAJOR 2
18 
20 # define SEQ_VERSION_MINOR 1
21 
23 # define SEQ_VERSION_PATCH 0
24 
26 # define SEQ_VERSION_REVISION 0x3962d38
27 
29 # define SEQ_VERSION_ABI 210ull
30 
32 # define SEQ_VERSION_STRING \
33  "2.1.0"
34 
36 # define SEQ_REV_STRING \
37  "2.1.0.0x3962d38"
38 
40 # define SEQ_VERSION_GT( MAJOR, MINOR, PATCH ) \
41  ( (SEQ_VERSION_MAJOR>MAJOR) || \
42  (SEQ_VERSION_MAJOR==MAJOR && (SEQ_VERSION_MINOR>MINOR || \
43  (SEQ_VERSION_MINOR==MINOR && SEQ_VERSION_PATCH>PATCH))))
44 
46 # define SEQ_VERSION_GE( MAJOR, MINOR, PATCH ) \
47  ( (SEQ_VERSION_MAJOR>MAJOR) || \
48  (SEQ_VERSION_MAJOR==MAJOR && (SEQ_VERSION_MINOR>MINOR || \
49  (SEQ_VERSION_MINOR==MINOR && SEQ_VERSION_PATCH>=PATCH))))
50 
52 # define SEQ_VERSION_LT( MAJOR, MINOR, PATCH ) \
53  ( (SEQ_VERSION_MAJOR<MAJOR) || \
54  (SEQ_VERSION_MAJOR==MAJOR && (SEQ_VERSION_MINOR<MINOR || \
55  (SEQ_VERSION_MINOR==MINOR && SEQ_VERSION_PATCH<PATCH))))
56 
58 # define SEQ_VERSION_LE( MAJOR, MINOR, PATCH ) \
59  ( (SEQ_VERSION_MAJOR<MAJOR) || \
60  (SEQ_VERSION_MAJOR==MAJOR && (SEQ_VERSION_MINOR<MINOR || \
61  (SEQ_VERSION_MINOR==MINOR && SEQ_VERSION_PATCH<=PATCH))))
62 
64 class SEQ_API Version
65 {
66 public:
68  static int getMajor();
69 
71  static int getMinor();
72 
74  static int getPatch();
75 
77  static std::string getString();
78 
80  static unsigned long long getRevision();
81 
83  static int getABI();
84 
86  static std::string getRevString();
87 
96  static bool check()
97  {
98  return getMajor()==SEQ_VERSION_MAJOR &&
99  getMinor()==SEQ_VERSION_MINOR;
100  }
101 
103  static std::string getSchema()
104  {
105  return R"(
106  {
107  "title": "Version",
108  "type": "object",
109  "description": "Version information of the running application",
110  "properties": {
111  "major": { "type": "integer" },
112  "minor": { "type": "integer" },
113  "patch": { "type": "integer" },
114  "abi": { "type": "integer" },
115  "revision": { "type": "string" }
116  }
117  }
118  )";
119  }
120 
122  static std::string toJSON()
123  {
124  return R"(
125  {
126  "major": 2,
127  "minor": 1,
128  "patch": 0,
129  "abi": 210,
130  "revision": "3962d38"
131  }
132  )";
133  }
134 };
135 
136 }
137 
138 #endif
Defines export visibility macros for library Sequel.
static bool check()
Runtime check for ABI compatibility.
Definition: seq/version.h:96
static std::string getSchema()
Definition: seq/version.h:103
#define SEQ_VERSION_MAJOR
The current major version.
Definition: seq/version.h:17
static std::string toJSON()
Definition: seq/version.h:122
Information about the current Sequel version.
Definition: seq/version.h:64
#define SEQ_VERSION_MINOR
The current minor version.
Definition: seq/version.h:20
Sequel - A simple interface to the Equalizer parallel rendering framework.
Definition: application.h:26