RouterFleXML now reads XML simple config and make proper runtime
[metaproxy-moved-to-github.git] / src / router_chain.hpp
1 /* $Id: router_chain.hpp,v 1.4 2006-01-09 13:43:59 adam Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef ROUTER_CHAIN_HPP
8 #define ROUTER_CHAIN_HPP
9
10
11 #include "router.hpp"
12
13 #include <boost/scoped_ptr.hpp>
14 #include <stdexcept>
15
16 namespace yp2 {
17     class RouterChain : public Router {
18         class Rep;
19         class Pos;
20     public:
21         RouterChain();
22         virtual ~RouterChain();
23 #if ROUTE_POS
24         virtual RoutePos *createpos() const;
25 #else
26         virtual const filter::Base *move(const filter::Base *filter,
27                                          const Package *package) const;
28 #endif
29         RouterChain & append(const filter::Base &filter);
30     private:
31         boost::scoped_ptr<Rep> m_p;
32         /// disabled because class is singleton
33         RouterChain(const RouterChain &);
34
35         /// disabled because class is singleton
36         RouterChain& operator=(const RouterChain &);
37     };
38 }
39
40 #endif
41 /*
42  * Local variables:
43  * c-basic-offset: 4
44  * indent-tabs-mode: nil
45  * c-file-style: "stroustrup"
46  * End:
47  * vim: shiftwidth=4 tabstop=8 expandtab
48  */