PcapPlusPlus  19.12
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 */
pcpp::PfRingDeviceList::getPfRingDevicesList
const std::vector< PfRingDevice * > & getPfRingDevicesList() const
Definition: PfRingDeviceList.h:49
pcpp::PfRingDeviceList::getPfRingVersion
std::string getPfRingVersion() const
Definition: PfRingDeviceList.h:62
pcpp
The main namespace for the PcapPlusPlus lib.
PfRingDevice.h
pcpp::PfRingDevice
Definition: PfRingDevice.h:32
pcpp::PfRingDeviceList::getPfRingDeviceByName
PfRingDevice * getPfRingDeviceByName(const std::string devName) const
pcpp::PfRingDeviceList::getInstance
static PfRingDeviceList & getInstance()
Definition: PfRingDeviceList.h:39
pcpp::PfRingDeviceList
Definition: PfRingDeviceList.h:20