X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPPI%2FAnnotationRouter.hh;h=fa4fbc5f5afb827de6f3848beca284873edfc158;hb=c505c034e5fdc932c02aa3dc3847a5551011d87e;hp=d52f58afd068848bd7474705a0af3d5a68bf287c;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/PPI/AnnotationRouter.hh b/senf/PPI/AnnotationRouter.hh index d52f58a..fa4fbc5 100644 --- a/senf/PPI/AnnotationRouter.hh +++ b/senf/PPI/AnnotationRouter.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -62,10 +62,10 @@ namespace module { { 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) {} }; @@ -91,11 +91,11 @@ namespace module { \ingroup routing_modules \todo Call Module::v_init() on every connection change and remove disconnected connections - from the container + from the container */ template - class AnnotationRouter - : public Module, + class AnnotationRouter + : public Module, public MultiConnectorMixin< AnnotationRouter, connector::ActiveOutput<>, AnnotationType > @@ -104,11 +104,11 @@ namespace module { public: connector::PassiveInput<> input; connector::ActiveOutput<> defaultOutput; - + 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)); } };