mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-29 00:10:26 +00:00
1912d62d09
- rewrote parser to use boost.spirit instead of a hand-written parser - refactored request loading into 'request' object - added 'expr', a command-line tool to test the new parser - some performance fixes for affunctions
19 lines
253 B
C++
19 lines
253 B
C++
#ifndef REQUEST_H
|
|
#define REQUEST_H
|
|
|
|
#include <string>
|
|
#include <istream>
|
|
|
|
#include "filter_evaluator.h"
|
|
|
|
struct request {
|
|
bool load(std::istream &);
|
|
bool evaluate(void);
|
|
|
|
private:
|
|
filter_evaluator f;
|
|
std::string filter;
|
|
};
|
|
|
|
#endif /* !REQUEST_H */
|