Container for x.x.x version schemes.
More...
#include <version.hpp>
|
|
| VersionInfo () |
| | Default constructor; initialize version fields to zero (0).
|
|
| ~VersionInfo () |
| | Destructor.
|
|
| VersionInfo (int major, int minor, int patch) |
| | Construct an object with specified version fields.
|
| int | major () const |
| | Get the major version.
|
| int | minor () const |
| | Get the minor revision version.
|
| int | patch () const |
| | Get the patch level version.
|
| std::string | version_string () const |
| | Get the full version as a string.
|
Container for x.x.x version schemes.
Definition at line 43 of file version.hpp.
◆ convert_version_string()
| bool nom::VersionInfo::convert_version_string |
( |
const std::string & | ver_string, |
|
|
VersionInfo & | info ) |
|
static |
Convert a version string to major, minor and patch integers.
- Parameters
-
| ver_string | A version string in the format of x.x.x, where x is a number between nom::NOM_INT_MIN and nom::NOM_INT_MAX. |
- Returns
- Boolean TRUE upon a successful conversion, or boolean FALSE upon a unsuccessful conversion, such as if the version string format is invalid.
◆ major()
| int nom::VersionInfo::major |
( |
| ) |
const |
Get the major version.
- Returns
- An integer containing the major version.
◆ minor()
| int nom::VersionInfo::minor |
( |
| ) |
const |
Get the minor revision version.
- Returns
- An integer containing the minor revision version.
◆ patch()
| int nom::VersionInfo::patch |
( |
| ) |
const |
Get the patch level version.
- Returns
- An integer containing the patch level version.
◆ version_string()
| std::string nom::VersionInfo::version_string |
( |
| ) |
const |
Get the full version as a string.
- Returns
- A std::string containing the full version.
◆ major_
| int nom::VersionInfo::major_ |
|
private |
◆ minor_
| int nom::VersionInfo::minor_ |
|
private |
◆ patch_
| int nom::VersionInfo::patch_ |
|
private |
The documentation for this struct was generated from the following file:
- /home/jeff/Projects/nomlib.git/include/nomlib/version.hpp