X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=include%2Fmetaproxy%2Frouter.hpp;h=114eb03bc0dede650f8a9da572e829bb4c671f49;hb=7bfa7de321ea5aa63e79f8cdd930f2f78fdc3e79;hp=5fdf382b0f2352260cd01da2a6b23aa996589446;hpb=74d5524719194de5dc96abd552562fa473088677;p=metaproxy-moved-to-github.git diff --git a/include/metaproxy/router.hpp b/include/metaproxy/router.hpp index 5fdf382..114eb03 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-2012 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,19 +23,19 @@ 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(){}; @@ -43,6 +43,7 @@ namespace metaproxy_1 virtual RoutePos *createpos() const = 0; virtual void start() = 0; + virtual void stop() = 0; }; class RoutePos : boost::noncopyable {