Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::build Namespace Reference

Build-time information about the Clio binary (version, git commit and branch, build date). More...

Functions

std::string const & getClioVersionString ()
 Get the Clio version.
std::string const & getClioFullVersionString ()
 Get the full Clio version.
std::string const & getGitCommitHash ()
 Get the git commit hash Clio was built from.
std::string const & getGitBuildBranch ()
 Get the git branch Clio was built from.
std::string const & getBuildDate ()
 Get the date Clio was built.

Variables

static constexpr char kVersionString [] = CLIO_VERSION
static constexpr char kGitCommitHash [] = GIT_COMMIT_HASH
static constexpr char kGitBuildBranch [] = GIT_BUILD_BRANCH
static constexpr char kBuildDate [] = BUILD_DATE

Detailed Description

Build-time information about the Clio binary (version, git commit and branch, build date).

Function Documentation

◆ getBuildDate()

std::string const & util::build::getBuildDate ( )

Get the date Clio was built.

Returns
The build date as provided at build time via BUILD_DATE

◆ getClioFullVersionString()

std::string const & util::build::getClioFullVersionString ( )

Get the full Clio version.

Returns
The version string prefixed with "clio-"

◆ getClioVersionString()

std::string const & util::build::getClioVersionString ( )

Get the Clio version.

Returns
The version string as provided at build time via CLIO_VERSION

◆ getGitBuildBranch()

std::string const & util::build::getGitBuildBranch ( )

Get the git branch Clio was built from.

Returns
The branch name as provided at build time via GIT_BUILD_BRANCH

◆ getGitCommitHash()

std::string const & util::build::getGitCommitHash ( )

Get the git commit hash Clio was built from.

Returns
The commit hash as provided at build time via GIT_COMMIT_HASH