1 /* This file is part of mp-xquery
2 Copyright (C) Index Data
4 Metaproxy is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2, or (at your option) any later
9 Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 #include <metaproxy/package.hpp>
20 #include <metaproxy/util.hpp>
22 namespace mp = metaproxy_1;
23 namespace yf = mp::filter;
26 namespace metaproxy_1 {
28 class XQuery : public Base {
32 void process(metaproxy_1::Package & package) const;
33 void configure(const xmlNode * ptr, bool test_only,
36 void stop(int signo) const;
42 void yf::XQuery::start() const
46 void yf::XQuery::stop(int signo) const
50 void yf::XQuery::process(Package &package) const
55 void yf::XQuery::configure(const xmlNode * ptr, bool test_only,
60 static yf::Base* filter_creator()
62 return new mp::filter::XQuery;
66 struct metaproxy_1_filter_struct metaproxy_1_filter_xquery = {
77 * c-file-style: "Stroustrup"
78 * indent-tabs-mode: nil
80 * vim: shiftwidth=4 tabstop=8 expandtab