25 #ifndef BAYEUX_VERSION_H 26 #define BAYEUX_VERSION_H 34 #define BAYEUX_VERSION_MAJOR 3 37 #define BAYEUX_VERSION_MINOR 4 40 #define BAYEUX_VERSION_PATCH 1 43 #define BAYEUX_VERSION_REVISION 0 46 #define BAYEUX_ENCODE_VERSION(major, minor, patch) (((major) * 10000) \ 51 #define BAYEUX_VERSION BAYEUX_ENCODE_VERSION(BAYEUX_VERSION_MAJOR, \ 52 BAYEUX_VERSION_MINOR, \ 56 #define BAYEUX_LIB_VERSION "3.4.1" 59 #define BAYEUX_IS_AT_LEAST(major,minor,patch) (BAYEUX_VERSION >= \ 60 BAYEUX_ENCODE_VERSION(major,minor,patch)) 85 static bool is_at_least(
int major_,
int minor_,
int patch_);
88 static bool has_feature(
const std::string & feature_);
94 #endif // BAYEUX_VERSION_H static bool is_at_least(int major_, int minor_, int patch_)
Return true if the current Bayeux version >= (major, minor, patch)
static int get_minor()
Return the minor version number of Bayeux, e.g., 2 for '1.2.3'.
static int get_major()
Return the major version number of Bayeux, e.g., 1 for '1.2.3'.
static int get_revision()
Return the revision/build number of Bayeux, e.g., 1234.
static int get_patch()
Return the patch version number of Bayeux, e.g., 3 for '1.2.3'.
static std::string get_version()
Return the full version number of Bayeux as a string, e.g., '1.2.3'.
Top-level namespace of the Bayeux library.
Definition: bayeux.h:42
Describe the Bayeux API version and features.
Definition: version.h:67
static bool has_feature(const std::string &feature_)
Return true if the named feature is available in Bayeux.