SEVN
Loading...
Searching...
No Matches
sevn_version.h
Go to the documentation of this file.
1//
2// Created by iorio on 1/27/23.
3//
4
5#ifndef SEVN_SEVN_VERSION_H
6#define SEVN_SEVN_VERSION_H
7
8#include <string>
9
10struct SEVNinfo{
11
12 static constexpr unsigned int VERSION_MAJOR = 2;
13 static constexpr unsigned int VERSION_MINOR = 10;
14 static constexpr unsigned int VERSION_PATCH = 2;
15 static constexpr auto VERSION = "2.10.2";
16 static constexpr auto DEVLINE = "zelaous_redgiant";
17
18 //GIT BRANCH Name
19 static constexpr auto GIT_BRANCH = "SEVN";
20
21 //GIT Local HEAD
22 //These are the info about the local repo not yet pushed to the remote branch
23 static constexpr auto GIT_SHA = "c9dc8e4578990fd85cba91e082ebff6068388f56";
24 static constexpr auto GIT_SHATIME = "2024-07-03 16:25:15 +0200";
25 static constexpr unsigned long int GIT_SHATIMESTAMP = 1720016715;
26 static constexpr unsigned int GIT_COUNTER = 415;
27
28 //GIT Local remote HEAD
29 //These are the info about the last updates on the remote branch
30 static constexpr auto GIT_SHA_REMOTE = "c9dc8e4578990fd85cba91e082ebff6068388f56";
31 static constexpr auto GIT_SHATIME_REMOTE = "2024-07-03 16:25:15 +0200";
32 static constexpr unsigned long int GIT_SHATIMESTAMP_REMOTE = 1720016715;
33 static constexpr unsigned int GIT_COUNTER_REMOTE = 415;
34
35 static std::string get_full_info(){
36
37 std::string full_info;
38 full_info+="*********************\n";
39 full_info+="SEVN version info:\n";
40 full_info+="---------------------\n";
41 full_info+=" SEVN DEVELOPMENT LINE:" + std::string(SEVNinfo::DEVLINE);
42 full_info+="\n SEVN VERSION:" + std::string(SEVNinfo::VERSION);
43 full_info+="\n SEVN BRANCH:" + std::string(SEVNinfo::GIT_BRANCH);
44 full_info+="\n---------------------\n";
45 full_info+="Git local info:";
46 full_info+="\n COMMITS COUNTER:" + std::to_string(SEVNinfo::GIT_COUNTER);
47 full_info+="\n LAST COMMIT HASH:" + std::string(SEVNinfo::GIT_SHA);
48 full_info+="\n LAST COMMIT DATE:" + std::string(SEVNinfo::GIT_SHATIME) + " (TIMESTAMP: "+std::to_string(SEVNinfo::GIT_SHATIMESTAMP)+")";
49 full_info+="\nGit remote info:";
50 full_info+="\n COMMITS COUNTER:" + std::to_string(SEVNinfo::GIT_COUNTER_REMOTE);
51 full_info+="\n LAST COMMIT HASH:" + std::string(SEVNinfo::GIT_SHA_REMOTE);
52 full_info+="\n LAST COMMIT DATE:" + std::string(SEVNinfo::GIT_SHATIME_REMOTE) + " (TIMESTAMP: "+std::to_string(SEVNinfo::GIT_SHATIMESTAMP_REMOTE)+")";
53 full_info+="\n*********************\n";
54
55 return full_info;
56 }
57};
58
59#endif //SEVN_SEVN_VERSION_H
Definition: sevn_version.h:10
static constexpr unsigned long int GIT_SHATIMESTAMP_REMOTE
Definition: sevn_version.h:32
static constexpr auto GIT_SHATIME
Definition: sevn_version.h:24
static constexpr unsigned long int GIT_SHATIMESTAMP
Definition: sevn_version.h:25
static constexpr unsigned int VERSION_MINOR
Definition: sevn_version.h:13
static std::string get_full_info()
Definition: sevn_version.h:35
static constexpr auto GIT_BRANCH
Definition: sevn_version.h:19
static constexpr auto GIT_SHATIME_REMOTE
Definition: sevn_version.h:31
static constexpr unsigned int VERSION_MAJOR
Definition: sevn_version.h:12
static constexpr auto GIT_SHA_REMOTE
Definition: sevn_version.h:30
static constexpr unsigned int GIT_COUNTER
Definition: sevn_version.h:26
static constexpr auto VERSION
Definition: sevn_version.h:15
static constexpr auto GIT_SHA
Definition: sevn_version.h:23
static constexpr unsigned int GIT_COUNTER_REMOTE
Definition: sevn_version.h:33
static constexpr auto DEVLINE
Definition: sevn_version.h:16
static constexpr unsigned int VERSION_PATCH
Definition: sevn_version.h:14