X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter.hpp;h=8f053b5eb59dc65d056f937bb3a7fd1ada4db0ed;hb=c3805961da509f3e6dc69d5134bd6512be4a8be8;hp=73bf2ca1aa4a6152d8a53a0a8c8aaa4a19aef295;hpb=b84218609efb976d5b5270bd9e95a3c421af3a13;p=metaproxy-moved-to-github.git diff --git a/src/filter.hpp b/src/filter.hpp index 73bf2ca..8f053b5 100644 --- a/src/filter.hpp +++ b/src/filter.hpp @@ -1,8 +1,14 @@ +/* $Id: filter.hpp,v 1.6 2005-10-24 09:53:06 adam Exp $ + Copyright (c) 2005, Index Data. + +%LICENSE% + */ #ifndef FILTER_HPP #define FILTER_HPP #include +#include namespace yp2 { @@ -14,9 +20,9 @@ namespace yp2 { virtual ~Base(){}; ///sends Package off to next Filter, returns altered Package - virtual void process(Package & package) const { - }; - virtual void configure(){}; + virtual void process(Package & package) const = 0; + + virtual void configure(const xmlNode * ptr = 0) { } ; /// get function - right val in assignment std::string name() const { @@ -54,6 +60,7 @@ namespace yp2 { * Local variables: * c-basic-offset: 4 * indent-tabs-mode: nil + * c-file-style: "stroustrup" * End: * vim: shiftwidth=4 tabstop=8 expandtab */