1 /* $Id: router.hpp,v 1.8 2006-01-09 13:43:59 adam Exp $
2 Copyright (c) 2005, Index Data.
10 #include <boost/noncopyable.hpp>
27 class RouterException : public std::runtime_error {
29 RouterException(const std::string message)
30 : std::runtime_error("RouterException: " + message){};
33 class Router : boost::noncopyable {
39 virtual RoutePos *createpos() const = 0;
41 /// determines next Filter to use from current Filter and Package
42 virtual const filter::Base *move(const filter::Base *filter,
43 const Package *package) const = 0;
51 virtual const filter::Base *move() = 0;
52 virtual RoutePos *clone() = 0;
53 virtual ~RoutePos() {};
62 * indent-tabs-mode: nil
63 * c-file-style: "stroustrup"
65 * vim: shiftwidth=4 tabstop=8 expandtab