25 #ifndef FALAISE_VERSION_H 26 #define FALAISE_VERSION_H 41 #define FALAISE_VERSION_MAJOR 4 44 #define FALAISE_VERSION_MINOR 0 47 #define FALAISE_VERSION_PATCH 1 52 #define FALAISE_VERSION_REVISION -1 56 #define FALAISE_VERSION_COMMIT "d63b6200" 59 #define FALAISE_VERSION_IS_DIRTY 0 62 #define FALAISE_ENCODE_VERSION(major, minor, patch) ( \ 68 #define FALAISE_VERSION FALAISE_ENCODE_VERSION( \ 69 FALAISE_VERSION_MAJOR, \ 70 FALAISE_VERSION_MINOR, \ 71 FALAISE_VERSION_PATCH) 74 #define FALAISE_LIB_VERSION "4.0.1" 77 #define FALAISE_IS_AT_LEAST(major,minor,patch) ( \ 79 FALAISE_ENCODE_VERSION(major,minor,patch)) 111 static bool is_at_least(
int major,
int minor,
int patch);
114 static bool has_feature(
const std::string& feature);
118 #endif // FALAISE_VERSION_H Describe the falaise API version and features.
Definition: version.h:86
static std::string get_version()
Return the full version number of falaise as a string, e.g., '1.2.3'.
Definition: metadata_utils.h:35
static int get_patch()
Return the patch version number of falaise, e.g., 3 for '1.2.3'.
static std::string get_commit()
Return the first eight characters of the current Git HEAD hash.
static int get_minor()
Return the minor version number of falaise, e.g., 2 for '1.2.3'.
static bool has_feature(const std::string &feature)
Return true if the named feature is available in falaise.
static bool is_dirty()
Return true when a build from Git used modified, uncommitted changes.
static bool is_at_least(int major, int minor, int patch)
Return true if the current falaise version >= (major, minor, patch)
static int get_major()
Return the major version number of falaise, e.g., 1 for '1.2.3'.
static int get_revision() __attribute__((deprecated))