X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fmetaproxy%2Frouter.hpp;h=3031527f5de2b941552225e882ff992febd91442;hb=699075159011e4fd3e0e37f58579201b4630de46;hp=392f04898102fe68500ff3578ddb981980b34abe;hpb=e6d572ef110d14fa55115021505b808620457bd3;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/router.hpp b/include/metaproxy/router.hpp index 392f048..3031527 100644 --- a/include/metaproxy/router.hpp +++ b/include/metaproxy/router.hpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2010 Index Data + Copyright (C) 2005-2013 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -23,25 +23,27 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include -namespace metaproxy_1 +namespace metaproxy_1 { namespace filter { class Base; } class RoutePos; - + class RouterException : public std::runtime_error { public: RouterException(const std::string message) : std::runtime_error("RouterException: " + message){}; }; - + class Router : boost::noncopyable { public: Router(){}; virtual ~Router(){}; virtual RoutePos *createpos() const = 0; + virtual void start() = 0; + virtual void stop() = 0; }; class RoutePos : boost::noncopyable {