mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-01 17:16:23 +00:00
305efb0961
- copyright header for all files
34 lines
701 B
C++
34 lines
701 B
C++
/*
|
|
* Copyright (c) 2008 Andrew Garrett.
|
|
* Copyright (c) 2008 River Tarnell <river@wikimedia.org>
|
|
* Derived from public domain code contributed by Victor Vasiliev.
|
|
*
|
|
* Permission is granted to anyone to use this software for any purpose,
|
|
* including commercial applications, and to alter it and redistribute it
|
|
* freely. This software is provided 'as-is', without any express or
|
|
* implied warranty.
|
|
*/
|
|
|
|
#ifndef REQUEST_H
|
|
#define REQUEST_H
|
|
|
|
#include <string>
|
|
#include <istream>
|
|
|
|
#include "filter_evaluator.h"
|
|
|
|
namespace afp {
|
|
|
|
struct request {
|
|
bool load(std::istream &);
|
|
bool evaluate(void);
|
|
|
|
private:
|
|
filter_evaluator f;
|
|
std::string filter;
|
|
};
|
|
|
|
} // namespace afp
|
|
|
|
#endif /* !REQUEST_H */
|