projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first functional filter factory implementation plus test case added
[metaproxy-moved-to-github.git]
/
src
/
filter.hpp
diff --git
a/src/filter.hpp
b/src/filter.hpp
index
73bf2ca
..
8f053b5
100644
(file)
--- 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 <stdexcept>
#ifndef FILTER_HPP
#define FILTER_HPP
#include <stdexcept>
+#include <libxml/tree.h>
namespace yp2 {
namespace yp2 {
@@
-14,9
+20,9
@@
namespace yp2 {
virtual ~Base(){};
///sends Package off to next Filter, returns altered Package
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 {
/// 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
* Local variables:
* c-basic-offset: 4
* indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
*/
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
*/