X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_virt_db.hpp;h=e16fc3448d8cf6df986fbdfbff899d0403da62e8;hb=f47e8cf4cde2ba5465106e219c803e6424a4f177;hp=72065e50bae00ed7ebe47ed3c5225792823c983a;hpb=ab7e93327d08e7123242c5a55a79f49926ceda11;p=metaproxy-moved-to-github.git diff --git a/src/filter_virt_db.hpp b/src/filter_virt_db.hpp index 72065e5..e16fc34 100644 --- a/src/filter_virt_db.hpp +++ b/src/filter_virt_db.hpp @@ -1,4 +1,4 @@ -/* $Id: filter_virt_db.hpp,v 1.9 2006-01-12 14:45:04 adam Exp $ +/* $Id: filter_virt_db.hpp,v 1.13 2006-01-16 15:51:56 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -10,6 +10,7 @@ #include #include #include +#include #include "filter.hpp" @@ -20,13 +21,20 @@ namespace yp2 { class Frontend; class Map; class Set; + class Backend; + typedef boost::shared_ptr BackendPtr; + typedef boost::shared_ptr FrontendPtr; public: ~Virt_db(); Virt_db(); void process(yp2::Package & package) const; void configure(const xmlNode * ptr); - void add_map_db2vhost(std::string db, std::string vhost, - std::string route); + 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; };