PIVX Core  5.6.99
P2P Digital Currency
clientversion.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2017 The Bitcoin Core developers
2 // Copyright (c) 2017-2021 The PIVX Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef PIVX_CLIENTVERSION_H
7 #define PIVX_CLIENTVERSION_H
8 
9 #if defined(HAVE_CONFIG_H)
10 #include "config/pivx-config.h"
11 #endif //HAVE_CONFIG_H
12 
13 // Check that required client information is defined
14 #if !defined(CLIENT_VERSION_MAJOR) || !defined(CLIENT_VERSION_MINOR) || !defined(CLIENT_VERSION_REVISION) || !defined(CLIENT_VERSION_BUILD) || !defined(CLIENT_VERSION_IS_RELEASE) || !defined(COPYRIGHT_YEAR)
15 #error Client version information missing: version is not defined by pivx-config.h or in any other way
16 #endif
17 
22 #define STRINGIZE(X) DO_STRINGIZE(X)
23 #define DO_STRINGIZE(X) #X
24 
26 #define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Bitcoin Core Developers, 2014-" STRINGIZE(COPYRIGHT_YEAR) " The Dash Core Developers, 2015-" STRINGIZE(COPYRIGHT_YEAR) " The " PACKAGE_NAME " Developers"
27 
34 #if !defined(WINDRES_PREPROC)
35 
36 #include <string>
37 #include <vector>
38 
39 static const int CLIENT_VERSION =
40  1000000 * CLIENT_VERSION_MAJOR
41  + 10000 * CLIENT_VERSION_MINOR
44 
45 extern const std::string CLIENT_NAME;
46 extern const std::string CLIENT_BUILD;
47 
48 
49 std::string FormatFullVersion();
50 std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
51 
52 // Returns a friendly formatted version string to show in the UI
53 std::string FormatVersionFriendly();
54 
55 #endif // WINDRES_PREPROC
56 
57 #endif // PIVX_CLIENTVERSION_H
const std::string CLIENT_BUILD
std::string FormatVersionFriendly()
std::string FormatSubVersion(const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
Format the subversion field according to BIP 14 spec (https://github.com/bitcoin/bips/blob/master/bip...
std::string FormatFullVersion()
const std::string CLIENT_NAME
#define CLIENT_VERSION_REVISION
Definition: pivx-config.h:24
#define CLIENT_VERSION_BUILD
Definition: pivx-config.h:12
#define CLIENT_VERSION_MAJOR
Definition: pivx-config.h:18
#define CLIENT_VERSION_MINOR
Definition: pivx-config.h:21
const char * name
Definition: rest.cpp:37