30 IDevice() : m_DeviceOpened(
false) {}
40 virtual bool open() = 0;
45 virtual void close() = 0;
50 inline bool isOpened() {
return m_DeviceOpened; }
78 std::string filterAsString;
80 return setFilter(filterAsString);
88 virtual bool setFilter(std::string filterAsString) = 0;
94 virtual bool clearFilter() = 0;
98 #endif // PCAPPP_DEVICE The main namespace for the PcapPlusPlus lib.
Definition: PointerVector.h:24
Definition: PcapFilter.h:136
bool isOpened()
Definition: Device.h:50
virtual void parseToString(std::string &result)=0
PointerVector< RawPacket > RawPacketVector
Definition: Device.h:17
virtual bool setFilter(GeneralFilter &filter)
Definition: Device.h:76