Filter virt_db reads XML config
[metaproxy-moved-to-github.git] / src / filter_virt_db.hpp
1 /* $Id: filter_virt_db.hpp,v 1.7 2006-01-09 15:32:46 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         public:
21             ~Virt_db();
22             Virt_db();
23             void process(yp2::Package & package) const;
24             void configure(const xmlNode * ptr);
25             void add_map_db2vhost(std::string db, std::string vhost);
26         private:
27             boost::scoped_ptr<Rep> m_p;
28         };
29     }
30 }
31
32 extern "C" {
33     extern struct yp2_filter_struct yp2_filter_virt_db;
34 }
35
36 #endif
37 /*
38  * Local variables:
39  * c-basic-offset: 4
40  * indent-tabs-mode: nil
41  * c-file-style: "stroustrup"
42  * End:
43  * vim: shiftwidth=4 tabstop=8 expandtab
44  */