22 #ifndef NDN_SECURITY_VALIDATOR_CONFIG_FILTER_HPP 23 #define NDN_SECURITY_VALIDATOR_CONFIG_FILTER_HPP 35 class ValidationState;
37 namespace validator_config {
53 match(uint32_t pktType,
const Name& pktName,
const shared_ptr<ValidationState>& state);
63 static unique_ptr<Filter>
67 static unique_ptr<Filter>
68 createNameFilter(
const ConfigSection& configSection,
const std::string& configFilename);
72 matchName(
const Name& pktName) = 0;
100 matchName(
const Name& pktName)
override;
134 matchName(
const Name& pktName)
override;
145 #endif // NDN_SECURITY_VALIDATOR_CONFIG_FILTER_HPP bool match(uint32_t pktType, const Name &pktName, const shared_ptr< ValidationState > &state)
Filter to check that packet name matches the specified regular expression.
virtual ~Filter()=default
Represents an absolute name.
static unique_ptr< Filter > create(const ConfigSection &configSection, const std::string &configFilename)
Create a filter from the configuration section.
boost::property_tree::ptree ConfigSection
Check that name is in relation to the packet name.
Filter is one of the classes used by ValidatorConfig.