X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FDebugModules.hh;h=990df6bf1093b5f33d133b471411e5c4ca8b6bb9;hb=949e357e249299c8519aa3af62245a0010dcce44;hp=bfa0979654ae9cd616e84be5c833ce204c3e1abb;hpb=8d2d26f114d3df0a60c5c516fcf40671b1e55558;p=senf.git diff --git a/PPI/DebugModules.hh b/PPI/DebugModules.hh index bfa0979..990df6b 100644 --- a/PPI/DebugModules.hh +++ b/PPI/DebugModules.hh @@ -28,11 +28,11 @@ // Custom includes #include -#include "../Utils/SafeBool.hh" +#include "../Utils/safe_bool.hh" #include "../Packets/Packets.hh" #include "Module.hh" #include "ActiveFeeder.hh" -#include "../Utils/Logger.hh" +#include "../Utils/Logger/SenfLog.hh" //#include "DebugModules.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -75,7 +75,7 @@ namespace debug { */ class ActiveSource : public Module, - public SafeBool + public safe_bool { SENF_PPI_MODULE(ActiveSource); @@ -136,7 +136,7 @@ namespace debug { */ class ActiveSink : public Module, - public SafeBool + public safe_bool { SENF_PPI_MODULE(ActiveSink); @@ -264,20 +264,20 @@ namespace debug { /** \brief Log received packets This module will log all packets sent to it's input using SENF_LOG to the given log - \a Stream, \a Area and \a level. + \a Stream, \a Area and \a Level. */ - template < class Stream = log::Debug, - class Area = log::DefaultArea, - senf::log::Level level = log::VERBOSE > - class LogWriter + template < class Stream = log::Debug, + class Area = log::DefaultArea, + class Level = log::VERBOSE > + class LogSink : public module::Module { - SENF_PPI_MODULE(LogWriter); + SENF_PPI_MODULE(LogSink); public: connector::PassiveInput input; - LogWriter(); + LogSink(); private: void request();