PcapPlusPlus  21.11
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 #include "PfRingDevice.h"
5 
7 
12 namespace pcpp
13 {
14 
21  {
22  private:
23  std::vector<PfRingDevice*> m_PfRingDeviceList;
24  std::string m_PfRingVersion;
25 
27  // private copy c'tor
28  PfRingDeviceList(const PfRingDeviceList& other);
29  PfRingDeviceList& operator=(const PfRingDeviceList& other);
30  // private d'tor
32 
33  void calcPfRingVersion(void* ring);
34  public:
40  {
41  static PfRingDeviceList instance;
42  return instance;
43  }
44 
49  const std::vector<PfRingDevice*>& getPfRingDevicesList() const { return m_PfRingDeviceList; }
50 
56  PfRingDevice* getPfRingDeviceByName(const std::string devName) const;
57 
62  std::string getPfRingVersion() const { return m_PfRingVersion; }
63  };
64 
65 } // namespace pcpp
66 
67 #endif /* PCAPPP_PF_RING_DEVICE_LIST */
The main namespace for the PcapPlusPlus lib.
Definition: PfRingDeviceList.h:20
const std::vector< PfRingDevice * > & getPfRingDevicesList() const
Definition: PfRingDeviceList.h:49
Definition: PfRingDevice.h:32
static PfRingDeviceList & getInstance()
Definition: PfRingDeviceList.h:39
std::string getPfRingVersion() const
Definition: PfRingDeviceList.h:62
PfRingDevice * getPfRingDeviceByName(const std::string devName) const