1 /* $Id: router_chain.hpp,v 1.1 2005-10-26 10:21:03 marc Exp $
2 Copyright (c) 2005, Index Data.
7 #ifndef ROUTER_CHAIN_HPP
8 #define ROUTER_CHAIN_HPP
23 class RouterChain : public Router {
26 virtual ~RouterChain(){};
27 virtual const filter::Base *move(const filter::Base *filter,
28 const Package *package) const {
29 std::list<const filter::Base *>::const_iterator it;
30 it = m_filter_list.begin();
33 for (; it != m_filter_list.end(); it++)
40 if (it == m_filter_list.end())
42 //throw RouterException("no routing rules known");
47 virtual void configure(){};
48 RouterChain & rule(const filter::Base &filter){
49 m_filter_list.push_back(&filter);
53 std::list<const filter::Base *> m_filter_list;
55 /// disabled because class is singleton
56 RouterChain(const RouterChain &);
58 /// disabled because class is singleton
59 RouterChain& operator=(const RouterChain &);
70 * indent-tabs-mode: nil
71 * c-file-style: "stroustrup"
73 * vim: shiftwidth=4 tabstop=8 expandtab