/** \file
\brief AnnotationRouter public header */
-#ifndef HH_AnnotationRouter_
-#define HH_AnnotationRouter_ 1
+#ifndef HH_SENF_PPI_AnnotationRouter_
+#define HH_SENF_PPI_AnnotationRouter_ 1
// Custom includes
#include <boost/ptr_container/ptr_map.hpp>
/** \brief Route packets to destination according to some annotation value
This router takes packet on a single input and directs them to one of it outputs depending
- on a packet annotation. Each output connected will be associated with a single annotation
- value. Incoming packets for which no matching output is found are directed to a default
- output. If this output is left unconnected, those packets will be dropped.
+ on a \link packet_usage_annotation packet annotation\endlink. Each output connected
+ will be associated with a single annotation value. Incoming packets for which no matching
+ output is found are directed to a default output. If this output is left unconnected, those
+ packets will be dropped.
The \a AnnotationType template parameter defines the routing key. This annotation must
support the following operations:
struct DuplicateKeyException : public senf::Exception
{ DuplicateKeyException(AnnotationType const & key)
- : senf::Exception("Duplicate senf::ppi::module::AnnotationRouter routing key")
+ : senf::Exception("Duplicate senf::ppi::module::AnnotationRouter routing key ")
{ append(boost::lexical_cast<std::string>(key)); } };
private: