hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
irohad_version.hpp
Go to the documentation of this file.
1 
6 #ifndef LIBS_COMMON_IROHAD_VERSION_HPP
7 #define LIBS_COMMON_IROHAD_VERSION_HPP
8 
9 // disabling GNU macros
10 #ifdef major
11 #undef major
12 #endif
13 
14 #ifdef minor
15 #undef minor
16 #endif
17 
18 namespace iroha {
19 
21  extern const char *kGitPrettyVersion;
22 
23  struct IrohadVersion {
24  unsigned int major;
25  unsigned int minor;
26  unsigned int patch;
27 
28  bool operator==(const IrohadVersion &) const;
29  };
30 
32 
33 } // namespace iroha
34 
35 #endif // LIBS_COMMON_IROHAD_VERSION_HPP
unsigned int major
Definition: irohad_version.hpp:24
unsigned int patch
Definition: irohad_version.hpp:26
Definition: block_query.hpp:15
unsigned int minor
Definition: irohad_version.hpp:25
const char * kGitPrettyVersion
A string describing current git repository version in a human-readable way.
Definition: irohad_version.cpp:12
IrohadVersion getIrohadVersion()
Definition: irohad_version.cpp:14
bool operator==(const IrohadVersion &) const
Definition: irohad_version.cpp:19
Definition: irohad_version.hpp:23