PcapPlusPlus  Next
PfRingDeviceList.h
Go to the documentation of this file.
1 #pragma once
2 
3 // GCOVR_EXCL_START
4 
5 #include "PfRingDevice.h"
6 
8 
13 namespace pcpp
14 {
15 
22  {
23  private:
24  std::vector<std::unique_ptr<PfRingDevice>> m_PfRingDeviceList;
25  std::vector<PfRingDevice*> m_PfRingDeviceListView;
26  std::string m_PfRingVersion;
27 
29 
30  public:
31  PfRingDeviceList(const PfRingDeviceList&) = delete;
32  PfRingDeviceList(PfRingDeviceList&&) noexcept = delete;
33  PfRingDeviceList& operator=(const PfRingDeviceList&) = delete;
34  PfRingDeviceList& operator=(PfRingDeviceList&&) noexcept = delete;
35 
41  {
42  static PfRingDeviceList instance;
43  return instance;
44  }
45 
50  const std::vector<PfRingDevice*>& getPfRingDevicesList() const
51  {
52  return m_PfRingDeviceListView;
53  }
54 
60  PfRingDevice* getPfRingDeviceByName(const std::string& devName) const;
61 
66  std::string getPfRingVersion() const
67  {
68  return m_PfRingVersion;
69  }
70  };
71 
72 } // namespace pcpp
73 
74 // GCOVR_EXCL_STOP
Definition: PfRingDevice.h:35
Definition: PfRingDeviceList.h:22
PfRingDevice * getPfRingDeviceByName(const std::string &devName) const
const std::vector< PfRingDevice * > & getPfRingDevicesList() const
Definition: PfRingDeviceList.h:50
std::string getPfRingVersion() const
Definition: PfRingDeviceList.h:66
static PfRingDeviceList & getInstance()
Definition: PfRingDeviceList.h:40
The main namespace for the PcapPlusPlus lib.