X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Ffilter_virt_db.hpp;h=4daa8e1f872e1f0eec70f841e89317bd6dc330b4;hb=bb050094eaf8f0a8223a3bd2e9973d8d2e993154;hp=e33b74edc04055bfaf33a10c84a8b6fb8710e18c;hpb=7467b072bb64f5c8575daa9917cce7df62d832f1;p=metaproxy-moved-to-github.git diff --git a/src/filter_virt_db.hpp b/src/filter_virt_db.hpp index e33b74e..4daa8e1 100644 --- a/src/filter_virt_db.hpp +++ b/src/filter_virt_db.hpp @@ -1,7 +1,7 @@ -/* $Id: filter_virt_db.hpp,v 1.3 2005-10-29 22:23:36 marc Exp $ - Copyright (c) 2005, Index Data. +/* $Id: filter_virt_db.hpp,v 1.18 2007-01-25 14:05:54 adam Exp $ + Copyright (c) 2005-2007, Index Data. -%LICENSE% + See the LICENSE file for details */ #ifndef FILTER_VIRT_DB_HPP @@ -10,27 +10,41 @@ #include #include #include +#include #include "filter.hpp" -namespace yp2 { +namespace metaproxy_1 { namespace filter { - class Virt_db : public Base { + class VirtualDB : public Base { class Rep; + struct Frontend; + struct Map; + struct Set; + struct Backend; + typedef boost::shared_ptr BackendPtr; + typedef boost::shared_ptr FrontendPtr; public: - ~Virt_db(); - Virt_db(); - void process(yp2::Package & package) const; - const std::string type() const { - return "Virt_db"; - }; - void add_map_db2vhost(std::string db, std::string vhost); + ~VirtualDB(); + VirtualDB(); + void process(metaproxy_1::Package & package) const; + void configure(const xmlNode * ptr); + void add_map_db2targets(std::string db, + std::list targets, + std::string route); + void add_map_db2target(std::string db, + std::string target, + std::string route); private: boost::scoped_ptr m_p; }; } } +extern "C" { + extern struct metaproxy_1_filter_struct metaproxy_1_filter_virt_db; +} + #endif /* * Local variables: