Put Virt_db private classes inside Virt_db scope
[metaproxy-moved-to-github.git] / src / filter_virt_db.hpp
1 /* $Id: filter_virt_db.hpp,v 1.9 2006-01-12 14:45:04 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
14 #include "filter.hpp"
15
16 namespace yp2 {
17     namespace filter {
18         class Virt_db : public Base {
19             class Rep;
20             class Frontend;
21             class Map;
22             class Set;
23         public:
24             ~Virt_db();
25             Virt_db();
26             void process(yp2::Package & package) const;
27             void configure(const xmlNode * ptr);
28             void add_map_db2vhost(std::string db, std::string vhost,
29                                   std::string route);
30         private:
31             boost::scoped_ptr<Rep> m_p;
32         };
33     }
34 }
35
36 extern "C" {
37     extern struct yp2_filter_struct yp2_filter_virt_db;
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  */