18 #ifndef COMMON_VERSION_HH
19 #define COMMON_VERSION_HH
29 static constexpr
unsigned major = 2;
32 static constexpr
unsigned minor = 1;
35 static constexpr
unsigned patch = 4;
38 static const std::string
suffix =
"";
41 static const std::string
full
55 template<
unsigned version>
58 throw std::runtime_error(
"Version 0 of FSM JSON was indeed not proper JSON, it is not supported by Awali anymore.");
60 throw std::runtime_error(std::string(
"Version ")+
std::to_string(version)+
" of FSM JSON did not exist at this version (v"+
full+
") of Awali.");
std::string to_string(identities i)
void check_fsmjson()
Definition: version.hh:56
static const std::string suffix
Suffix of the version of Awali, used mostly by developers.
Definition: version.hh:38
static constexpr unsigned minor
Current minor version of Awali.
Definition: version.hh:32
static const std::string full
Completely version of Awali as a std::string.
Definition: version.hh:42
static constexpr unsigned patch
Current minor version of Awali.
Definition: version.hh:35
static constexpr unsigned major
Current major version of Awali.
Definition: version.hh:29
static constexpr unsigned fsm_json
Main version of the format FSM json used in the library.
Definition: version.hh:52
Main namespace of Awali.
Definition: ato.hh:22