Bitcoin ABC 0.30.5
P2P Digital Currency
Macros | Functions | Variables
clientversion.h File Reference
#include <util/macros.h>
#include <config/version.h>
#include <string>
#include <vector>
Include dependency graph for clientversion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COPYRIGHT_STR    "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
 Copyright string used in Windows .rc files. More...
 

Functions

std::string FormatVersion (int nVersion)
 
std::string FormatFullVersion ()
 
std::string FormatUserAgent (const std::string &name, const std::string &version, const std::vector< std::string > &comments)
 Format the subversion field according to BIP 14 spec. More...
 
std::string CopyrightHolders (const std::string &strPrefix)
 
std::string LicenseInfo ()
 Returns licensing information (for -version) More...
 

Variables

static constexpr int CLIENT_VERSION
 bitcoind-res.rc includes this file, but it cannot cope with real c++ code. More...
 
const std::string CLIENT_NAME
 
const std::string CLIENT_BUILD
 

Macro Definition Documentation

◆ COPYRIGHT_STR

#define COPYRIGHT_STR    "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL

Copyright string used in Windows .rc files.

Definition at line 24 of file clientversion.h.

Function Documentation

◆ CopyrightHolders()

std::string CopyrightHolders ( const std::string &  strPrefix)

Definition at line 88 of file clientversion.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FormatFullVersion()

std::string FormatFullVersion ( )

Definition at line 63 of file clientversion.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FormatUserAgent()

std::string FormatUserAgent ( const std::string &  name,
const std::string &  version,
const std::vector< std::string > &  comments 
)

Format the subversion field according to BIP 14 spec.

(https://github.com/bitcoin/bips/blob/master/bip-0014.mediawiki)

Definition at line 71 of file clientversion.cpp.

Here is the caller graph for this function:

◆ FormatVersion()

std::string FormatVersion ( int  nVersion)

Definition at line 52 of file clientversion.cpp.

Here is the caller graph for this function:

◆ LicenseInfo()

std::string LicenseInfo ( )

Returns licensing information (for -version)

Definition at line 93 of file clientversion.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ CLIENT_BUILD

const std::string CLIENT_BUILD
extern

◆ CLIENT_NAME

const std::string CLIENT_NAME
extern

◆ CLIENT_VERSION

constexpr int CLIENT_VERSION
staticconstexpr
Initial value:
= 1000000 * CLIENT_VERSION_MAJOR +
10000 * CLIENT_VERSION_MINOR +
100 * CLIENT_VERSION_REVISION

bitcoind-res.rc includes this file, but it cannot cope with real c++ code.

WINDRES_PREPROC is defined to indicate that its pre-processor is running. Anything other than a define should be guarded below.

Definition at line 38 of file clientversion.h.