removed some useless spaces; not very important, I know :)
[senf.git] / PPI / Route.cci
index 100b09c..0a3117a 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
-// Copyright (C) 2007 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -24,6 +24,8 @@
     \brief Route inline non-template implementation */
 
 // Custom includes
+#include "Connectors.hh"
+#include "Events.hh"
 
 #define prefix_ inline
 ///////////////////////////////cci.p///////////////////////////////////////
@@ -31,6 +33,9 @@
 ///////////////////////////////////////////////////////////////////////////
 // senf::ppi::RouteBase
 
+prefix_ senf::ppi::RouteBase::~RouteBase()
+{}
+
 ////////////////////////////////////////
 // protected members
 
@@ -38,6 +43,46 @@ prefix_ senf::ppi::RouteBase::RouteBase(module::Module & module)
     : module_(&module)
 {}
 
+///////////////////////////////////////////////////////////////////////////
+// senf::ppi::ForwardingRoute
+
+prefix_ bool senf::ppi::ForwardingRoute::autoThrottling()
+    const
+{
+    return autoThrottling_;
+}
+
+prefix_ void senf::ppi::ForwardingRoute::autoThrottling(bool state)
+{
+    autoThrottling_ = state;
+}
+
+prefix_ bool senf::ppi::ForwardingRoute::throttled()
+    const
+{
+    return v_throttled();
+}
+
+////////////////////////////////////////
+// protected members
+
+prefix_ senf::ppi::ForwardingRoute::ForwardingRoute(module::Module & module)
+    : RouteBase(module), autoThrottling_(true)
+{}
+
+////////////////////////////////////////
+// private members
+
+prefix_ void senf::ppi::ForwardingRoute::notifyThrottle()
+{
+    v_notifyThrottle();
+}
+
+prefix_ void senf::ppi::ForwardingRoute::notifyUnthrottle()
+{
+    v_notifyUnthrottle();
+}
+
 ///////////////////////////////cci.e///////////////////////////////////////
 #undef prefix_