1 /* $Id: filter.hpp,v 1.8 2005-10-31 09:40:18 marc Exp $
2 Copyright (c) 2005, Index Data.
11 #include <libxml/tree.h>
22 ///sends Package off to next Filter, returns altered Package
23 virtual void process(Package & package) const = 0;
25 virtual void configure(const xmlNode * ptr = 0) { };
30 yp2::filter::Base* (*creator)();
33 class FilterException : public std::runtime_error {
35 FilterException(const std::string message)
36 : std::runtime_error("FilterException: " + message){
48 * indent-tabs-mode: nil
49 * c-file-style: "stroustrup"
51 * vim: shiftwidth=4 tabstop=8 expandtab