PcapPlusPlus  19.12
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 "19.12"
15  #define PCAPPLUSPLUS_VERSION_OFFICIAL "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 */
pcpp::getGitBranch
std::string getGitBranch()
pcpp::getPcapPlusPlusVersion
std::string getPcapPlusPlusVersion()
Definition: PcapPlusPlusVersion.h:23
pcpp::getBuildDateTime
std::string getBuildDateTime()
Definition: PcapPlusPlusVersion.h:34
pcpp::getPcapPlusPlusVersionFull
std::string getPcapPlusPlusVersionFull()
Definition: PcapPlusPlusVersion.h:29
pcpp
The main namespace for the PcapPlusPlus lib.
pcpp::getGitInfo
std::string getGitInfo()
pcpp::getGitCommit
std::string getGitCommit()