94ec94c4f1d51d8e3db42aa62bb5c0367ecf344f
[metaproxy-moved-to-github.git] / src / router_chain.hpp
1 /* $Id: router_chain.hpp,v 1.7 2006-06-10 14:29:12 adam Exp $
2    Copyright (c) 2005-2006, Index Data.
3
4    See the LICENSE file for details
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 metaproxy_1 {
17     class RouterChain : public Router {
18         class Rep;
19         class Pos;
20     public:
21         RouterChain();
22         virtual ~RouterChain();
23         virtual RoutePos *createpos() const;
24         RouterChain & append(const filter::Base &filter);
25     private:
26         boost::scoped_ptr<Rep> m_p;
27         /// disabled because class is singleton
28         RouterChain(const RouterChain &);
29
30         /// disabled because class is singleton
31         RouterChain& operator=(const RouterChain &);
32     };
33 }
34
35 #endif
36 /*
37  * Local variables:
38  * c-basic-offset: 4
39  * indent-tabs-mode: nil
40  * c-file-style: "stroustrup"
41  * End:
42  * vim: shiftwidth=4 tabstop=8 expandtab
43  */