1 /* $Id: router_flexml.hpp,v 1.18 2008-02-20 15:07:53 adam Exp $
2 Copyright (c) 2005-2007, Index Data.
4 This file is part of Metaproxy.
6 Metaproxy is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
11 Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with Metaproxy; see the file LICENSE. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef ROUTER_FLEXML_HPP
23 #define ROUTER_FLEXML_HPP
27 #include "factory_filter.hpp"
31 #include <boost/scoped_ptr.hpp>
35 class RouterFleXML : public metaproxy_1::Router
41 RouterFleXML(std::string xmlconf, metaproxy_1::FactoryFilter &factory,
43 RouterFleXML(xmlDocPtr doc, metaproxy_1::FactoryFilter &factory,
48 virtual RoutePos *createpos() const;
49 class XMLError1 : public std::runtime_error {
51 XMLError1(const std::string msg) :
52 std::runtime_error("XMLError : " + msg) {} ;
55 boost::scoped_ptr<Rep> m_p;
64 * indent-tabs-mode: nil
65 * c-file-style: "stroustrup"
67 * vim: shiftwidth=4 tabstop=8 expandtab