All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
ndn::ConfigFilter Class Referenceabstract

ConfigFilter is an abstract base class for RegexNameFilter, etc. More...

#include <config-filter.hpp>

Inheritance diagram for ndn::ConfigFilter:
ndn::ConfigRegexNameFilter ndn::ConfigRelationNameFilter

Public Member Functions

bool match (bool isForInterest, const Name &packetName)
 Call the virtual matchName method based on the packet type. More...
 

Static Public Member Functions

static ptr_lib::shared_ptr
< ConfigFilter
create (const BoostInfoTree &configSection)
 Create a filter from the configuration section. More...
 

Detailed Description

ConfigFilter is an abstract base class for RegexNameFilter, etc.

used by ValidatorConfig. The ValidatorConfig class consists of a set of rules. The Filter class is a part of a rule and is used to match a packet. Matched packets will be checked against the checkers defined in the rule.

Member Function Documentation

static ptr_lib::shared_ptr<ConfigFilter> ndn::ConfigFilter::create ( const BoostInfoTree configSection)
static

Create a filter from the configuration section.

Parameters
configSectionThe section containing the definition of the filter, e.g. one of <validator.rule.filter>.
Returns
A new filter created from the configuration section.
bool ndn::ConfigFilter::match ( bool  isForInterest,
const Name packetName 
)

Call the virtual matchName method based on the packet type.

Parameters
isForInterestTrue if packetName is for an Interest, false if for a Data packet.
packetNameThe packet name. For a signed interest, the last two components are skipped but not removed.
Returns
True for a match.

The documentation for this class was generated from the following file: