// $Id$
//
-// Copyright (C) 2008
+// Copyright (C) 2008
// Fraunhofer Institute for Open Communication Systems (FOKUS)
// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
#include "MultiConnectorMixin.hh"
//#include "AnnotationRouter.mpp"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
namespace senf {
namespace ppi {
The \a AnnotationType template parameter defines the routing key. This annotation must
support the following operations:
\li Comparison with '<' (\c LessThanComparable concept)
- \li Copy construction and copy assignment (\c Copyable und \c Assignable concepts)
+ \li Copy construction and copy assignment (\c Copyable and \c Assignable concepts)
(e.g. via compiler synthesized copy constructor and assignment operator)
\li Output streaming to an ostream via '\c <<' (for error description purposes) (\c
OutputStreamable concept)
{
senf::MACAddress mac;
- bool operator< (TargetInterface const & other)
+ bool operator< (TargetInterface const & other)
{ return mac < other.mac; }
- TargetInterface(senf::MACAddress const & m)
+ TargetInterface(senf::MACAddress const & m)
: mac (m) {}
};
\ingroup routing_modules
\todo Call Module::v_init() on every connection change and remove disconnected connections
- from the container
+ from the container
*/
template <class AnnotationType>
- class AnnotationRouter
- : public Module,
+ class AnnotationRouter
+ : public Module,
public MultiConnectorMixin< AnnotationRouter<AnnotationType>,
connector::ActiveOutput<>,
AnnotationType >
AnnotationRouter();
struct DuplicateKeyException : public senf::Exception
- { DuplicateKeyException(AnnotationType const & key)
+ { DuplicateKeyException(AnnotationType const & key)
: senf::Exception("Duplicate senf::ppi::module::AnnotationRouter routing key ")
{ append( senf::str(key)); } };
}}}
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
//#include "AnnotationRouter.cci"
#include "AnnotationRouter.ct"
//#include "AnnotationRouter.cti"