cleanCppProject  0.2.0
Version Namespace Reference

Functions

std::string getBuildTime ()
 Get time of build in format like: Feb 20 2016 14:38:27. More...
 
int getMajor ()
 Returns Major part of version. More...
 
int getMinor ()
 Returns Minor part of version. More...
 
int getPatch ()
 Return Patch part of version. More...
 
long long getVersionNumber ()
 Returns version in one big number with format: More...
 
std::string getVersionShort ()
 Returns version string with version in format: More...
 
std::string getVersionLong ()
 Returns Version + Date + Build machine. More...
 
std::string getBuildMachine ()
 Returns name of the build machine. More...
 

Function Documentation

std::string Version::getBuildMachine ( )

Returns name of the build machine.

Can be changed with cmake .. -DVERSION_HOST=newName

std::string Version::getBuildTime ( )

Get time of build in format like: Feb 20 2016 14:38:27.

int Version::getMajor ( )

Returns Major part of version.

int Version::getMinor ( )

Returns Minor part of version.

int Version::getPatch ( )

Return Patch part of version.

std::string Version::getVersionLong ( )

Returns Version + Date + Build machine.

Will produce result similar to: 1.2.6 beta / Feb 20 2016 14:42:41 / buildMachine

Referenced by printHelp().

Here is the caller graph for this function:

long long Version::getVersionNumber ( )

Returns version in one big number with format:

  • MMMMmmmmpppp (M-Major, m-minor, p-patch)

So 1.2.3 will be 100020003 (leading zeroes are not displayed)

Returns
long integer with version
std::string Version::getVersionShort ( )

Returns version string with version in format:

  • vMajor.Minor.Patch VersionType
  • v1.2.3 beta

Referenced by main().

Here is the caller graph for this function: