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 
11 namespace pcpp
12 {
17  {
18  private:
19  std::vector<std::unique_ptr<PfRingDevice>> m_PfRingDeviceList;
20  std::vector<PfRingDevice*> m_PfRingDeviceListView;
21  std::string m_PfRingVersion;
22 
24 
25  public:
26  PfRingDeviceList(const PfRingDeviceList&) = delete;
27  PfRingDeviceList(PfRingDeviceList&&) noexcept = delete;
28  PfRingDeviceList& operator=(const PfRingDeviceList&) = delete;
29  PfRingDeviceList& operator=(PfRingDeviceList&&) noexcept = delete;
30 
34  {
35  static PfRingDeviceList instance;
36  return instance;
37  }
38 
41  const std::vector<PfRingDevice*>& getPfRingDevicesList() const
42  {
43  return m_PfRingDeviceListView;
44  }
45 
49  PfRingDevice* getPfRingDeviceByName(const std::string& devName) const;
50 
53  std::string getPfRingVersion() const
54  {
55  return m_PfRingVersion;
56  }
57  };
58 
59 } // namespace pcpp
60 
61 // GCOVR_EXCL_STOP
Definition: PfRingDevice.h:32
Definition: PfRingDeviceList.h:17
PfRingDevice * getPfRingDeviceByName(const std::string &devName) const
const std::vector< PfRingDevice * > & getPfRingDevicesList() const
Definition: PfRingDeviceList.h:41
std::string getPfRingVersion() const
Definition: PfRingDeviceList.h:53
static PfRingDeviceList & getInstance()
Definition: PfRingDeviceList.h:33
The main namespace for the PcapPlusPlus lib.