PcapPlusPlus
PcapPlusPlusVersion.h
Go to the documentation of this file.
1 #ifndef PCAPPP_VERSION_H
2 #define PCAPPP_VERSION_H
3 
4 #include <string>
5 
7 
12 namespace pcpp
13 {
14  #define PCAPPLUSPLUS_VERSION "17.11+"
15  #define PCAPPLUSPLUS_VERSION_OFFICIAL "non-official release"
16 
17  #define PCAPPLUSPLUS_VERSION_FULL "v" PCAPPLUSPLUS_VERSION " (" PCAPPLUSPLUS_VERSION_OFFICIAL ")"
18 
23  inline std::string getPcapPlusPlusVersion() { return PCAPPLUSPLUS_VERSION; }
24 
29  inline std::string getPcapPlusPlusVersionFull() { return PCAPPLUSPLUS_VERSION_FULL; }
30 
34  inline std::string getBuildDateTime() { return std::string(__DATE__) + " " + std::string(__TIME__); }
35 
39  std::string getGitCommit();
40 
44  std::string getGitBranch();
45 
50  std::string getGitInfo();
51 
52 }
53 
54 #endif /* PCAPPP_VERSION_H */
The main namespace for the PcapPlusPlus lib.
std::string getGitCommit()
std::string getGitInfo()
std::string getGitBranch()
std::string getPcapPlusPlusVersion()
Definition: PcapPlusPlusVersion.h:23
std::string getBuildDateTime()
Definition: PcapPlusPlusVersion.h:34
std::string getPcapPlusPlusVersionFull()
Definition: PcapPlusPlusVersion.h:29