X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FDebugModules.hh;h=1a38d4b9ada40488367850826dc69d34433302a0;hb=48bbf27e9e89d6eba4754fba65d70a15b115ac8b;hp=8730ad73fa93710adfbb3b58665a1d7c986f7ff3;hpb=7465ea4f6d3d54622bd783106cf8b60d5f133343;p=senf.git diff --git a/PPI/DebugModules.hh b/PPI/DebugModules.hh index 8730ad7..1a38d4b 100644 --- a/PPI/DebugModules.hh +++ b/PPI/DebugModules.hh @@ -28,6 +28,7 @@ // Custom includes #include +#include "Utils/SafeBool.hh" #include "Packets/Packets.hh" #include "Module.hh" @@ -40,7 +41,8 @@ namespace module { namespace debug { class ActivePacketSource - : public Module + : public Module, + public SafeBool { public: connector::ActiveOutput output; @@ -48,6 +50,8 @@ namespace debug { ActivePacketSource(); void submit(Packet packet); + + bool boolean_test() const; }; class PassivePacketSource @@ -75,7 +79,8 @@ namespace debug { }; class ActivePacketSink - : public Module + : public Module, + public SafeBool { public: connector::ActiveInput input; @@ -83,6 +88,8 @@ namespace debug { ActivePacketSink(); Packet request(); + + bool boolean_test() const; }; class PassivePacketSink