1 /* $Id: filter.hpp,v 1.13 2006-01-09 18:19:09 adam Exp $
2 Copyright (c) 2005, Index Data.
12 #include <libxml/tree.h>
23 ///sends Package off to next Filter, returns altered Package
24 virtual void process(Package & package) const = 0;
26 virtual void configure(const xmlNode * ptr) { };
29 class FilterException : public std::runtime_error {
31 FilterException(const std::string message)
32 : std::runtime_error("FilterException: " + message){
39 struct yp2_filter_struct {
42 yp2::filter::Base* (*creator)();
49 * indent-tabs-mode: nil
50 * c-file-style: "stroustrup"
52 * vim: shiftwidth=4 tabstop=8 expandtab