filter factory in working shape, see example in test_filer_factory.cpp
[metaproxy-moved-to-github.git] / src / filter_backend_test.hpp
1 /* $Id: filter_backend_test.hpp,v 1.3 2005-10-29 22:23:36 marc Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef FILTER_BACKEND_TEST_HPP
8 #define FILTER_BACKEND_TEST_HPP
9
10 #include <stdexcept>
11 #include <list>
12 #include <boost/scoped_ptr.hpp>
13
14 #include "filter.hpp"
15
16 namespace yp2 {
17     namespace filter {
18         class Backend_test : public Base {
19             class Rep;
20         public:
21             ~Backend_test();
22             Backend_test();
23             void process(yp2::Package & package) const;
24             const std::string type() const {
25                 return "Backend_test";
26             };
27         private:
28             boost::scoped_ptr<Rep> m_p;
29         };
30     }
31 }
32
33 #endif
34 /*
35  * Local variables:
36  * c-basic-offset: 4
37  * indent-tabs-mode: nil
38  * c-file-style: "stroustrup"
39  * End:
40  * vim: shiftwidth=4 tabstop=8 expandtab
41  */