#include <filter.h>
Inherits ace::Filter.
Public Types | |
| typedef std::vector< multirule_t > | rules_t |
| The rules are stored within container. | |
Public Member Functions | |
| void | add_rule (multirule_t &rule) |
| Adds given rule to filter. | |
| const rules_t & | get_rules (void) const |
| bool | match (const multirule_t &value, bool include_in_stats=true) |
| Essencial filter method - checks, if given value matches the filter. | |
| virtual bool | is_on (void) const |
| bool | read_rules (const char *rules_filename, size_t only_of_size=0) |
| Reads rules from given file. | |
Private Attributes | |
| rules_t | _rules |
| Rules container. | |
Multirule is rule which may contain any number of parts (strings).
| typedef std::vector<multirule_t> ace::MultiRulesFilter::rules_t |
The rules are stored within container.
| void ace::MultiRulesFilter::add_rule | ( | multirule_t & | rule | ) |
Adds given rule to filter.
| rule | Rule to add. |
| const rules_t& ace::MultiRulesFilter::get_rules | ( | void | ) | const [inline] |
| bool ace::MultiRulesFilter::match | ( | const multirule_t & | value, | |
| bool | include_in_stats = true | |||
| ) |
Essencial filter method - checks, if given value matches the filter.
| value | Value to check. | |
| include_in_stats | Include this one in statistics? |
| virtual bool ace::MultiRulesFilter::is_on | ( | void | ) | const [inline, virtual] |
| bool ace::MultiRulesFilter::read_rules | ( | const char * | rules_filename, | |
| size_t | only_of_size = 0 | |||
| ) |
Reads rules from given file.
| rules_filename | Pointer to C-string with filename. | |
| only_of_size | Store only rules of given size (0 stands for all sizes). |
rules_t ace::MultiRulesFilter::_rules [private] |
Rules container.
1.5.6