2008-08-08 12:35:13 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2008-08-08 00:01:22 +00:00
|
|
|
#ifndef REQUEST_H
|
|
|
|
#define REQUEST_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <istream>
|
|
|
|
|
|
|
|
#include "filter_evaluator.h"
|
2008-08-09 16:34:34 +00:00
|
|
|
#include "afstring.h"
|
2008-08-08 00:01:22 +00:00
|
|
|
|
2008-08-08 03:23:34 +00:00
|
|
|
namespace afp {
|
|
|
|
|
2008-08-08 00:01:22 +00:00
|
|
|
struct request {
|
|
|
|
bool load(std::istream &);
|
|
|
|
bool evaluate(void);
|
|
|
|
|
|
|
|
private:
|
2008-08-09 16:34:34 +00:00
|
|
|
u32filter_evaluator f;
|
|
|
|
u32string filter;
|
2008-08-08 00:01:22 +00:00
|
|
|
};
|
|
|
|
|
2008-08-08 03:23:34 +00:00
|
|
|
} // namespace afp
|
|
|
|
|
2008-08-08 00:01:22 +00:00
|
|
|
#endif /* !REQUEST_H */
|