Utils/Logger: BUGFIX: add SENF_LOG_TPL variants which work with templatized log param...
[senf.git] / PPI / Route.cci
index 100b09c..252a37c 100644 (file)
@@ -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_