#include <rule.hpp>
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... | |
|
inlineexplicit |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |