PcapPlusPlus  23.09
PfRingDeviceList.h
Go to the documentation of this file.
1 #ifndef PCAPPP_PF_RING_DEVICE_LIST
2 #define PCAPPP_PF_RING_DEVICE_LIST
3 
4 // GCOVR_EXCL_START
5 
6 #include "PfRingDevice.h"
7 
9 
14 namespace pcpp
15 {
16 
23  {
24  private:
25  std::vector<PfRingDevice*> m_PfRingDeviceList;
26  std::string m_PfRingVersion;
27 
29  // private copy c'tor
30  PfRingDeviceList(const PfRingDeviceList& other);
31  PfRingDeviceList& operator=(const PfRingDeviceList& other);
32  // private d'tor
34 
35  void calcPfRingVersion(void* ring);
36  public:
42  {
43  static PfRingDeviceList instance;
44  return instance;
45  }
46 
51  const std::vector<PfRingDevice*>& getPfRingDevicesList() const { return m_PfRingDeviceList; }
52 
58  PfRingDevice* getPfRingDeviceByName(const std::string &devName) const;
59 
64  std::string getPfRingVersion() const { return m_PfRingVersion; }
65  };
66 
67 } // namespace pcpp
68 
69 // GCOVR_EXCL_STOP
70 
71 #endif /* PCAPPP_PF_RING_DEVICE_LIST */
The main namespace for the PcapPlusPlus lib.
Definition: PfRingDeviceList.h:22
const std::vector< PfRingDevice * > & getPfRingDevicesList() const
Definition: PfRingDeviceList.h:51
Definition: PfRingDevice.h:35
static PfRingDeviceList & getInstance()
Definition: PfRingDeviceList.h:41
std::string getPfRingVersion() const
Definition: PfRingDeviceList.h:64
PfRingDevice * getPfRingDeviceByName(const std::string &devName) const