PcapPlusPlus  Next
PcapPlusPlusVersion.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
6 
11 namespace pcpp
12 {
13 #define PCAPPLUSPLUS_VERSION "24.09+"
14 #define PCAPPLUSPLUS_VERSION_OFFICIAL "non-official release"
15 
16 #define PCAPPLUSPLUS_VERSION_FULL "v" PCAPPLUSPLUS_VERSION " (" PCAPPLUSPLUS_VERSION_OFFICIAL ")"
17 
23  inline std::string getPcapPlusPlusVersion()
24  {
25  return PCAPPLUSPLUS_VERSION;
26  }
27 
32  inline std::string getPcapPlusPlusVersionFull()
33  {
34  return PCAPPLUSPLUS_VERSION_FULL;
35  }
36 
40 #ifdef PCAPPP_BUILD_REPRODUCIBLE
41  inline std::string getBuildDateTime()
42  {
43  return " ";
44  }
45 #else
46  inline std::string getBuildDateTime()
47  {
48  return std::string(__DATE__) + " " + std::string(__TIME__);
49  }
50 #endif
51 
55  std::string getGitCommit();
56 
60  std::string getGitBranch();
61 
66  std::string getGitInfo();
67 
68 } // namespace pcpp
The main namespace for the PcapPlusPlus lib.
std::string getPcapPlusPlusVersionFull()
Definition: PcapPlusPlusVersion.h:32
std::string getGitBranch()
std::string getGitInfo()
std::string getBuildDateTime()
Definition: PcapPlusPlusVersion.h:46
std::string getPcapPlusPlusVersion()
Definition: PcapPlusPlusVersion.h:23
std::string getGitCommit()