1 /* $Id: filter.hpp,v 1.19 2007-01-25 14:05:54 adam Exp $
2 Copyright (c) 2005-2007, Index Data.
4 See the LICENSE file for details
12 #include <libxml/tree.h>
13 #include "xmlutil.hpp"
15 namespace metaproxy_1 {
24 ///sends Package off to next Filter, returns altered Package
25 virtual void process(Package & package) const = 0;
27 /// configuration during filter load
28 virtual void configure(const xmlNode * ptr);
31 class FilterException : public std::runtime_error {
33 FilterException(const std::string message)
34 : std::runtime_error("FilterException: " + message){
40 struct metaproxy_1_filter_struct {
43 metaproxy_1::filter::Base* (*creator)();
50 * indent-tabs-mode: nil
51 * c-file-style: "stroustrup"
53 * vim: shiftwidth=4 tabstop=8 expandtab