X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_virt_db.hpp;h=49faeba27a54b8911879161dd722dabaafe370d9;hb=30c0a93ac5646f497d4f1eabd3ddb5132ea1c37a;hp=39647ed7f7321a2f57d84837ebac7d29bbc6456f;hpb=0c26d703ff27cfbde7ec568a9ca5659b9d088bd1;p=metaproxy-moved-to-github.git diff --git a/src/filter_virt_db.hpp b/src/filter_virt_db.hpp index 39647ed..49faeba 100644 --- a/src/filter_virt_db.hpp +++ b/src/filter_virt_db.hpp @@ -1,7 +1,7 @@ -/* $Id: filter_virt_db.hpp,v 1.7 2006-01-09 15:32:46 adam Exp $ - Copyright (c) 2005, Index Data. +/* $Id: filter_virt_db.hpp,v 1.17 2006-09-29 08:42:47 marc Exp $ + Copyright (c) 2005-2006, Index Data. -%LICENSE% + See the LICENSE file for details */ #ifndef FILTER_VIRT_DB_HPP @@ -10,19 +10,31 @@ #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; + ~VirtualDB(); + VirtualDB(); + void process(metaproxy_1::Package & package) const; void configure(const xmlNode * ptr); - void add_map_db2vhost(std::string db, std::string vhost); + 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; }; @@ -30,7 +42,7 @@ namespace yp2 { } extern "C" { - extern struct yp2_filter_struct yp2_filter_virt_db; + extern struct metaproxy_1_filter_struct metaproxy_1_filter_virt_db; } #endif