X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FRateFilter.hh;h=9877124b38cd03f9a2258d27b251fbe2a3f6d342;hb=fc1ad795c55b8f64bce4926e4ef9194c773342c8;hp=58f330be6ecc41cbf1aa0fc2520c7689f352d8a8;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/PPI/RateFilter.hh b/PPI/RateFilter.hh index 58f330b..9877124 100644 --- a/PPI/RateFilter.hh +++ b/PPI/RateFilter.hh @@ -17,14 +17,20 @@ // along with this program; if not, write to the // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef RATEFILTER_HH_ -#define RATEFILTER_HH_ + +/** \file + \brief RateFilter public header */ + +#ifndef HH_SENF_PPI_RateFilter_ +#define HH_SENF_PPI_RateFilter_ 1 // Custom includes #include "Connectors.hh" #include "Module.hh" #include "IntervalTimer.hh" +//#include "RateFilter.mpp" +///////////////////////////////hh.p//////////////////////////////////////// namespace senf { namespace ppi { @@ -34,19 +40,35 @@ class RateFilter : public Module { SENF_PPI_MODULE(RateFilter); -public: - - connector::ActiveInput<> input; - connector::ActiveOutput<> output; +public: RateFilter(senf::ClockService::clock_type interval); // void changeInterval(senf::ClockService::clock_type interval); not yet implemented! + senf::ClockService::clock_type interval() const; + + connector::ActiveInput<> input; + connector::ActiveOutput<> output; private: void timeout(); - ppi::IntervalTimer timer; + ppi::IntervalTimer timer_; }; }}} //namespaces -#endif /*RATEFILTER_HH_*/ +///////////////////////////////hh.e//////////////////////////////////////// +//#include "RateFilter.cci" +//#include "RateFilter.ct" +//#include "RateFilter.cti" +#endif + + +// Local Variables: +// mode: c++ +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 +// End: