25 #ifndef EMFIELD_VERSION_H 26 #define EMFIELD_VERSION_H 34 #define EMFIELD_VERSION_MAJOR 2 37 #define EMFIELD_VERSION_MINOR 2 40 #define EMFIELD_VERSION_PATCH 0 43 #define EMFIELD_ENCODE_VERSION(major, minor, patch) ( \ 49 #define EMFIELD_VERSION EMFIELD_ENCODE_VERSION( \ 50 EMFIELD_VERSION_MAJOR, \ 51 EMFIELD_VERSION_MINOR, \ 52 EMFIELD_VERSION_PATCH) 55 #define EMFIELD_LIB_VERSION "2.2.0" 58 #define EMFIELD_IS_AT_LEAST(major,minor,patch) ( \ 60 EMFIELD_ENCODE_VERSION(major,minor,patch)) 81 static bool is_at_least(
int major,
int minor,
int patch);
84 static bool has_feature(
const std::string& feature);
89 #endif // EMFIELD_VERSION_H static std::string get_version()
Return the full version number of emfield as a string, e.g., '1.2.3'.
static bool is_at_least(int major, int minor, int patch)
Return true if the current emfield version >= (major, minor, patch)
static bool has_feature(const std::string &feature)
Return true if the named feature is available in emfield.
static int get_major()
Return the major version number of emfield, e.g., 1 for '1.2.3'.
static int get_patch()
Return the patch version number of emfield, e.g., 3 for '1.2.3'.
Top-level namespace of the Bayeux/emfield module library.
Definition: base_electromagnetic_field.h:40
static int get_minor()
Return the minor version number of emfield, e.g., 2 for '1.2.3'.
Describe the emfield API version and features.
Definition: version.h:67