Definition at line 10 of file gimbal_version.hpp.
◆ Version() [1/3]
◆ Version() [2/3]
gimbal::Version::Version |
( |
GblVersionInfo |
info | ) |
|
|
inline |
Definition at line 14 of file gimbal_version.hpp.
#define GBL_VERSION_MAKE(major, minor, patch)
Encodes a GblVersion from its constituents.
◆ Version() [3/3]
gimbal::Version::Version |
( |
uint8_t |
major, |
|
|
uint16_t |
minor, |
|
|
uint8_t |
patch |
|
) |
| |
|
inline |
Definition at line 15 of file gimbal_version.hpp.
15: Version(GblVersionInfo{ major, minor, patch }) {}
◆ getMajor()
constexpr uint8_t gimbal::Version::getMajor |
( |
void |
| ) |
const |
|
inlineconstexpr |
◆ getMinor()
constexpr uint16_t gimbal::Version::getMinor |
( |
void |
| ) |
const |
|
inlineconstexpr |
◆ getPatch()
constexpr uint8_t gimbal::Version::getPatch |
( |
void |
| ) |
const |
|
inlineconstexpr |
◆ getValue()
constexpr GblVersion gimbal::Version::getValue |
( |
void |
| ) |
const |
|
inlineconstexpr |
◆ getInfo()
constexpr GblVersionInfo gimbal::Version::getInfo |
( |
void |
| ) |
const |
|
inlineconstexpr |
Definition at line 23 of file gimbal_version.hpp.
23 {
24 return { getMajor(), getMinor(), getPatch() };
25 }
◆ toString()
std::string gimbal::Version::toString |
( |
void |
| ) |
const |
|
inline |
Definition at line 27 of file gimbal_version.hpp.
27 {
28 char buffer[GBL_VERSION_STRING_SIZE_MAX] = { 0 };
29 const auto info = getInfo();
30 const GBL_RESULT result = gblVersionInfoString(&info, buffer,
sizeof(buffer));
31
32 return buffer;
33 }
The documentation for this class was generated from the following file: