1 /* $Id: router.hpp,v 1.6 2005-11-10 23:10:42 adam Exp $
2 Copyright (c) 2005, Index Data.
10 #include <boost/noncopyable.hpp>
21 class RouterException : public std::runtime_error {
23 RouterException(const std::string message)
24 : std::runtime_error("RouterException: " + message){};
28 class Router : boost::noncopyable {
33 /// determines next Filter to use from current Filter and Package
34 virtual const filter::Base *move(const filter::Base *filter,
35 const Package *package) const = 0;
37 /// re-read configuration of routing tables
38 //virtual void configure(){};
40 /// add routing rule expressed as Filter to Router
41 //virtual Router & rule(const filter::Base &filter){
50 * indent-tabs-mode: nil
51 * c-file-style: "stroustrup"
53 * vim: shiftwidth=4 tabstop=8 expandtab