-/* $Id: filter_virt_db.hpp,v 1.6 2006-01-04 11:55:32 adam Exp $
+/* $Id: filter_virt_db.hpp,v 1.14 2006-02-02 11:33:46 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
#include <stdexcept>
#include <list>
#include <boost/scoped_ptr.hpp>
+#include <boost/shared_ptr.hpp>
#include "filter.hpp"
namespace filter {
class Virt_db : public Base {
class Rep;
+ struct Frontend;
+ struct Map;
+ struct Set;
+ struct 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 add_map_db2vhost(std::string db, std::string vhost);
+ void configure(const xmlNode * ptr);
+ 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;
};