PcapPlusPlus  Next
PcapPlusPlusVersion.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
6 
9 namespace pcpp
10 {
11 #define PCAPPLUSPLUS_VERSION "24.09+"
12 #define PCAPPLUSPLUS_VERSION_OFFICIAL "non-official release"
13 
14 #define PCAPPLUSPLUS_VERSION_FULL "v" PCAPPLUSPLUS_VERSION " (" PCAPPLUSPLUS_VERSION_OFFICIAL ")"
15 
19  inline std::string getPcapPlusPlusVersion()
20  {
21  return PCAPPLUSPLUS_VERSION;
22  }
23 
26  inline std::string getPcapPlusPlusVersionFull()
27  {
28  return PCAPPLUSPLUS_VERSION_FULL;
29  }
30 
32 #ifdef PCAPPP_BUILD_REPRODUCIBLE
33  inline std::string getBuildDateTime()
34  {
35  return " ";
36  }
37 #else
38  inline std::string getBuildDateTime()
39  {
40  return std::string(__DATE__) + " " + std::string(__TIME__);
41  }
42 #endif
43 
45  std::string getGitCommit();
46 
48  std::string getGitBranch();
49 
52  std::string getGitInfo();
53 
54 } // namespace pcpp
The main namespace for the PcapPlusPlus lib.
std::string getPcapPlusPlusVersionFull()
Definition: PcapPlusPlusVersion.h:26
std::string getGitBranch()
std::string getGitInfo()
std::string getBuildDateTime()
Definition: PcapPlusPlusVersion.h:38
std::string getPcapPlusPlusVersion()
Definition: PcapPlusPlusVersion.h:19
std::string getGitCommit()