PPI: Checkin of first compiling (yet not working) version
[senf.git] / PPI / Queueing.hh
index 7410318..7b7421e 100644 (file)
@@ -25,6 +25,7 @@
 #define HH_Queueing_ 1
 
 // Custom includes
+#include "predecl.hh"
 
 //#include "Queueing.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
@@ -46,15 +47,18 @@ namespace ppi {
     class QueueingDiscipline
     {
     public:
+        virtual ~QueueingDiscipline();
+
         enum Event { ENQUEUE, DEQUEUE }; ///< Possible queueing events
         enum State { THROTTLED, UNTHROTTLED }; ///< Possible queueing states
-
-        State update(PassiveInput & input, Event event) = 0; ///< Calculate new queueing state
+        
+        virtual State update(connector::PassiveInput & input, Event event) = 0;
+                                        ///< Calculate new queueing state
                                         /**< Whenever the queue is manipulated, this member is
                                              called to calculate the new throttling state.
                                              
                                              \param[in] input Connector holding the queue
-                                             \param[in] event Type of event triggering the upate
+                                             \param[in] event Type of event triggering the update
                                              \returns new throttling state */
     };
 
@@ -74,4 +78,5 @@ namespace ppi {
 // indent-tabs-mode: nil
 // ispell-local-dictionary: "american"
 // compile-command: "scons -u test"
+// comment-column: 40
 // End: