30 IDevice() : m_DeviceOpened(
false) {}
40 virtual bool open() = 0;
46 virtual void close() = 0;
51 inline bool isOpened() {
return m_DeviceOpened; }
79 std::string filterAsString;
81 return setFilter(filterAsString);
89 virtual bool setFilter(std::string filterAsString) = 0;
95 virtual bool clearFilter() = 0;
99 #endif // PCAPPP_DEVICE The main namespace for the PcapPlusPlus lib.
Definition: PointerVector.h:24
Definition: PcapFilter.h:136
bool isOpened()
Definition: Device.h:51
virtual void parseToString(std::string &result)=0
PointerVector< RawPacket > RawPacketVector
Definition: Device.h:17
virtual bool setFilter(GeneralFilter &filter)
Definition: Device.h:77