#include <rule.hpp>
Public Types | |
typedef std::vector< shared_ptr< Checker > > | CheckerList |
Public Member Functions | |
Rule (const std::string &id) | |
virtual | ~Rule () |
const std::string & | getId () |
void | addFilter (const shared_ptr< Filter > &filter) |
void | addChecker (const shared_ptr< Checker > &checker) |
bool | match (const Packet &packet) |
template<class ValidatedCallback , class ValidationFailureCallback > | |
int8_t | check (const Packet &packet, const ValidatedCallback &onValidated, const ValidationFailureCallback &onValidationFailed) |
check if packet satisfies certain condition More... | |
Public Attributes | |
NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE | __pad0__: typedef std::vector<shared_ptr<Filter>> FilterList |
std::string | m_id |
FilterList | m_filters |
CheckerList | m_checkers |
typedef std::vector<shared_ptr<Checker> > ndn::security::conf::Rule< Packet >::CheckerList |
|
inlineexplicit |
|
inlinevirtual |
|
inline |
Definition at line 52 of file rule.hpp.
References ndn::security::conf::Rule< Packet >::m_id.
|
inline |
Definition at line 58 of file rule.hpp.
References ndn::security::conf::Rule< Packet >::m_filters.
|
inline |
Definition at line 64 of file rule.hpp.
References ndn::security::conf::Rule< Packet >::m_checkers.
|
inline |
Definition at line 70 of file rule.hpp.
References ndn::security::conf::Rule< Packet >::m_filters.
|
inline |
check if packet satisfies certain condition
packet | The packet |
onValidated | Callback function which is called when packet is immediately valid |
onValidationFailed | Call function which is called when packet is immediately invalid |
Definition at line 97 of file rule.hpp.
References ndn::security::conf::Rule< Packet >::m_checkers, and NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE.
NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE ndn::security::conf::Rule< Packet >::__pad0__ |
std::string ndn::security::conf::Rule< Packet >::m_id |
Definition at line 124 of file rule.hpp.
Referenced by ndn::security::conf::Rule< Packet >::getId().
FilterList ndn::security::conf::Rule< Packet >::m_filters |
Definition at line 125 of file rule.hpp.
Referenced by ndn::security::conf::Rule< Packet >::addFilter(), and ndn::security::conf::Rule< Packet >::match().
CheckerList ndn::security::conf::Rule< Packet >::m_checkers |
Definition at line 126 of file rule.hpp.
Referenced by ndn::security::conf::Rule< Packet >::addChecker(), and ndn::security::conf::Rule< Packet >::check().