PcapPlusPlus
PcapPlusPlusVersion.h
1 #ifndef PCAPPP_VERSION_H
2 #define PCAPPP_VERSION_H
3 
4 #include <string>
5 
10 namespace pcpp
11 {
12  #define PCAPPLUSPLUS_VERSION "17.02+"
13  #define PCAPPLUSPLUS_VERSION_OFFICIAL "non-official release"
14 
15  #define PCAPPLUSPLUS_VERSION_FULL "v" PCAPPLUSPLUS_VERSION " (" PCAPPLUSPLUS_VERSION_OFFICIAL ")"
16 
21  inline std::string getPcapPlusPlusVersion() { return PCAPPLUSPLUS_VERSION; }
22 
27  inline std::string getPcapPlusPlusVersionFull() { return PCAPPLUSPLUS_VERSION_FULL; }
28 
32  inline std::string getBuildDateTime() { return std::string(__DATE__) + " " + std::string(__TIME__); }
33 
37  std::string getGitCommit();
38 
42  std::string getGitBranch();
43 
48  std::string getGitInfo();
49 
50 }
51 
52 #endif /* PCAPPP_VERSION_H */
std::string getBuildDateTime()
Definition: PcapPlusPlusVersion.h:32
std::string getGitBranch()
std::string getPcapPlusPlusVersion()
Definition: PcapPlusPlusVersion.h:21
std::string getGitInfo()
std::string getPcapPlusPlusVersionFull()
Definition: PcapPlusPlusVersion.h:27
The main namespace for the PcapPlusPlus lib.
std::string getGitCommit()