neurolots  0.3.4
NeuroLOTs
nlgenerator/version.h
Go to the documentation of this file.
1 // generated by CommonLibrary.cmake, do not edit.
2 
8 #ifndef NLGENERATOR_VERSION_H
9 #define NLGENERATOR_VERSION_H
10 
11 #include <nlgenerator/api.h>
12 #include <string>
13 
14 namespace nlgenerator
15 {
17 # define NLGENERATOR_VERSION_MAJOR 0
18 
20 # define NLGENERATOR_VERSION_MINOR 3
21 
23 # define NLGENERATOR_VERSION_PATCH 4
24 
26 # define NLGENERATOR_VERSION_REVISION 0xf8ef7ad
27 
29 # define NLGENERATOR_VERSION_ABI 4ull
30 
32 # define NLGENERATOR_VERSION_STRING \
33  "0.3.4"
34 
36 # define NLGENERATOR_REV_STRING \
37  "0.3.4.0xf8ef7ad"
38 
40 # define NLGENERATOR_VERSION_GT( MAJOR, MINOR, PATCH ) \
41  ( (NLGENERATOR_VERSION_MAJOR>MAJOR) || \
42  (NLGENERATOR_VERSION_MAJOR==MAJOR && (NLGENERATOR_VERSION_MINOR>MINOR || \
43  (NLGENERATOR_VERSION_MINOR==MINOR && NLGENERATOR_VERSION_PATCH>PATCH))))
44 
46 # define NLGENERATOR_VERSION_GE( MAJOR, MINOR, PATCH ) \
47  ( (NLGENERATOR_VERSION_MAJOR>MAJOR) || \
48  (NLGENERATOR_VERSION_MAJOR==MAJOR && (NLGENERATOR_VERSION_MINOR>MINOR || \
49  (NLGENERATOR_VERSION_MINOR==MINOR && NLGENERATOR_VERSION_PATCH>=PATCH))))
50 
52 # define NLGENERATOR_VERSION_LT( MAJOR, MINOR, PATCH ) \
53  ( (NLGENERATOR_VERSION_MAJOR<MAJOR) || \
54  (NLGENERATOR_VERSION_MAJOR==MAJOR && (NLGENERATOR_VERSION_MINOR<MINOR || \
55  (NLGENERATOR_VERSION_MINOR==MINOR && NLGENERATOR_VERSION_PATCH<PATCH))))
56 
58 # define NLGENERATOR_VERSION_LE( MAJOR, MINOR, PATCH ) \
59  ( (NLGENERATOR_VERSION_MAJOR<MAJOR) || \
60  (NLGENERATOR_VERSION_MAJOR==MAJOR && (NLGENERATOR_VERSION_MINOR<MINOR || \
61  (NLGENERATOR_VERSION_MINOR==MINOR && NLGENERATOR_VERSION_PATCH<=PATCH))))
62 
64 class NLGENERATOR_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()==NLGENERATOR_VERSION_MAJOR &&
99  getMinor()==NLGENERATOR_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": 0,
127  "minor": 3,
128  "patch": 4,
129  "abi": 4,
130  "revision": "f8ef7ad"
131  }
132  )";
133  }
134 };
135 
136 }
137 
138 #endif
#define NLGENERATOR_VERSION_MAJOR
The current major version.
Information about the current nlgenerator version.
static bool check()
Runtime check for ABI compatibility.
#define NLGENERATOR_VERSION_MINOR
The current minor version.
Defines export visibility macros for library nlgenerator.
Copyright (c) 2015-2017 VG-Lab/URJC.
Definition: Icosphere.h:61
static std::string getSchema()
static std::string toJSON()