added first shot on load balance filter which removes all but one vhost from Z39...
[metaproxy-moved-to-github.git] / src / filter_load_balance.hpp
1 /* $Id: filter_load_balance.hpp,v 1.1 2007-01-02 15:35:36 marc Exp $
2    Copyright (c) 2005-2006, Index Data.
3
4    See the LICENSE file for details
5  */
6
7 // Filter that does nothing. Use as load_balance for new filters 
8 #ifndef FILTER_LOAD_BALANCE_HPP
9 #define FILTER_LOAD_BALANCE_HPP
10
11 #include <boost/scoped_ptr.hpp>
12
13 #include "filter.hpp"
14
15 namespace metaproxy_1 {
16     namespace filter {
17         class LoadBalance : public Base {
18             class Impl;
19             boost::scoped_ptr<Impl> m_p;
20         public:
21             LoadBalance();
22             ~LoadBalance();
23             void process(metaproxy_1::Package & package) const;
24             void configure(const xmlNode * ptr);
25         };
26     }
27 }
28
29 extern "C" {
30     extern struct metaproxy_1_filter_struct metaproxy_1_filter_load_balance;
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  */