Put proper reference IDs in response PDUs properly.
[metaproxy-moved-to-github.git] / src / filter_virt_db.hpp
1 /* $Id: filter_virt_db.hpp,v 1.10 2006-01-13 15:09:35 adam Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #ifndef FILTER_VIRT_DB_HPP
8 #define FILTER_VIRT_DB_HPP
9
10 #include <stdexcept>
11 #include <list>
12 #include <boost/scoped_ptr.hpp>
13 #include <boost/shared_ptr.hpp>
14
15 #include "filter.hpp"
16
17 namespace yp2 {
18     namespace filter {
19         class Virt_db : public Base {
20             class Rep;
21             class Frontend;
22             class Map;
23             class Set;
24             class Backend;
25             typedef boost::shared_ptr<Virt_db::Backend> BackendPtr;
26         public:
27             ~Virt_db();
28             Virt_db();
29             void process(yp2::Package & package) const;
30             void configure(const xmlNode * ptr);
31             void add_map_db2vhost(std::string db, std::string vhost,
32                                   std::string route);
33         private:
34             boost::scoped_ptr<Rep> m_p;
35         };
36     }
37 }
38
39 extern "C" {
40     extern struct yp2_filter_struct yp2_filter_virt_db;
41 }
42
43 #endif
44 /*
45  * Local variables:
46  * c-basic-offset: 4
47  * indent-tabs-mode: nil
48  * c-file-style: "stroustrup"
49  * End:
50  * vim: shiftwidth=4 tabstop=8 expandtab
51  */