Handle Z39.50 Options better
[metaproxy-moved-to-github.git] / src / filter.hpp
index 73bf2ca..8f053b5 100644 (file)
@@ -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 <stdexcept>
+#include <libxml/tree.h>
 
 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
  */