-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathversion.hpp
39 lines (27 loc) · 1.01 KB
/
version.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// version.hpp: Version reflection information for odgi builds.
// modified from https://github.com/vgteam/vg/blob/master/src/version.hpp
#include <string>
#include <unordered_map>
namespace odgi {
using namespace std;
/// Class for holding odgi version.
class Version {
public:
/// The Git version description of this build of odgi
const static string VERSION;
/// Get only the version (like v1.7.0-68-g224e7625).
static string get_version();
/// Get the release Git tag version of odgi that the current version
/// is based on (e.g. v1.7.0-68-g224e7625 will report v1.7.0).
static string get_release();
/// Get the codename of our released version
static string get_codename();
/// Get a short one-line description of the current version of odgi with no terminating newline.
static string get_short();
private:
// Not constructable
Version() = delete;
/// Store all the codenames by major version
const static unordered_map<string, string> codenames;
};
}