22 #ifndef NDN_SECURITY_V2_VALIDATOR_CONFIG_FILTER_HPP 23 #define NDN_SECURITY_V2_VALIDATOR_CONFIG_FILTER_HPP 27 #include "../../../interest.hpp" 28 #include "../../../data.hpp" 29 #include "../../../util/regex.hpp" 34 namespace validator_config {
50 match(uint32_t pktType,
const Name& pktName);
60 static unique_ptr<Filter>
64 static unique_ptr<Filter>
65 createNameFilter(
const ConfigSection& configSection,
const std::string& configFilename);
69 matchName(
const Name& pktName) = 0;
97 matchName(
const Name& pktName)
override;
131 matchName(
const Name& pktName)
override;
142 #endif // NDN_SECURITY_V2_VALIDATOR_CONFIG_FILTER_HPP
Copyright (c) 2013-2017 Regents of the University of California.
Filter to check that packet name matches the specified regular expression.
virtual ~Filter()=default
bool match(uint32_t pktType, const Name &pktName)
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.