New "finally" clause.
[metaproxy-moved-to-github.git] / src / filter_virt_db.hpp
index 7ce5dce..e16fc34 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_virt_db.hpp,v 1.8 2006-01-11 11:51:50 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 <stdexcept>
 #include <list>
 #include <boost/scoped_ptr.hpp>
+#include <boost/shared_ptr.hpp>
 
 #include "filter.hpp"
 
@@ -17,13 +18,23 @@ namespace yp2 {
     namespace filter {
         class Virt_db : public Base {
             class Rep;
+            class Frontend;
+            class Map;
+            class Set;
+            class Backend;
+            typedef boost::shared_ptr<Backend> BackendPtr;
+            typedef boost::shared_ptr<Frontend> 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<std::string> targets,
+                                    std::string route);
+            void add_map_db2target(std::string db,
+                                   std::string target,
+                                   std::string route);
         private:
             boost::scoped_ptr<Rep> m_p;
         };