1 /* $Id: router_flexml.hpp,v 1.11 2006-01-09 13:43:59 adam Exp $
2 Copyright (c) 2005, Index Data.
9 #include "factory_filter.hpp"
13 #include <boost/scoped_ptr.hpp>
17 class RouterFleXML : public yp2::Router
23 RouterFleXML(std::string xmlconf, yp2::FactoryFilter &factory);
24 RouterFleXML(xmlDocPtr doc, yp2::FactoryFilter &factory);
29 virtual RoutePos *createpos() const;
31 /// determines next Filter to use from current Filter and Package
32 virtual const filter::Base *move(const filter::Base *filter,
33 const Package *package) const;
35 class XMLError : public std::runtime_error {
37 XMLError(const std::string msg) :
38 std::runtime_error("XMLError : " + msg) {} ;
41 boost::scoped_ptr<Rep> m_p;
50 * indent-tabs-mode: nil
51 * c-file-style: "stroustrup"
53 * vim: shiftwidth=4 tabstop=8 expandtab