PcapPlusPlus  21.05+
pcpp::IFilterWithOperator Class Reference

#include <PcapFilter.h>

Inheritance diagram for pcpp::IFilterWithOperator:
pcpp::GeneralFilter pcpp::IPv4IDFilter pcpp::IPv4TotalLengthFilter pcpp::TcpWindowSizeFilter pcpp::UdpLengthFilter

Public Member Functions

void setOperator (FilterOperator op)
- Public Member Functions inherited from pcpp::GeneralFilter
virtual void parseToString (std::string &result)=0
bool matchPacketWithFilter (RawPacket *rawPacket)
virtual ~GeneralFilter ()

Detailed Description

An abstract class that is the base class for all filters which contain an operator (e.g X equals Y; A is greater than B; Z1 not equals Z2, etc.). This class cannot be instantiated
For deeper understanding of the filter concept please refer to PcapFilter.h

Member Function Documentation

◆ setOperator()

void pcpp::IFilterWithOperator::setOperator ( FilterOperator  op)

Set the operator for the filter

[in]opThe operator to set