BOSS 7.1.2
BESIII Offline Software System
|
#include <Version.h>
Public Member Functions | |
Version (uint16_t minor, uint16_t major=MAJOR_DEFAULT_VERSION) | |
Version (uint32_t v=DEFAULT_VERSION) | |
uint16_t | major2 (void) const |
uint16_t | minor2 (void) const |
uint32_t | code (void) const |
std::string | human_major (void) const |
std::string | human_minor (void) const |
std::string | human (void) const |
Defines converters between version numbers and its components
|
inline |
eformat::helper::Version::Version | ( | uint32_t | v = DEFAULT_VERSION | ) |
Constructor. Takes the version to understand the components from.
v | The version number, fully built. |
Definition at line 16 of file Version.cxx.
uint32_t eformat::helper::Version::code | ( | void | ) | const |
Gets the full 32-bit number made by assembling the 2 numbers above.
Definition at line 21 of file Version.cxx.
std::string eformat::helper::Version::human | ( | void | ) | const |
Returns a string representation of the version number
Definition at line 43 of file Version.cxx.
std::string eformat::helper::Version::human_major | ( | void | ) | const |
Returns a string representation of the major version number
Definition at line 29 of file Version.cxx.
std::string eformat::helper::Version::human_minor | ( | void | ) | const |
Returns a string representation of the minor version number
Definition at line 36 of file Version.cxx.
|
inline |
Extracts the major version part of this version
Definition at line 65 of file Version.h.
Referenced by eformat::old::convert(), and convert_ros().
|
inline |
Extracts the minor version part of this version
Definition at line 70 of file Version.h.
Referenced by eformat::old::convert(), and convert_ros().