RateFilter.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
17 #ifndef HH_SENF_PPI_RateFilter_
18 #define HH_SENF_PPI_RateFilter_ 1
19 
20 // Custom includes
21 #include "Connectors.hh"
22 #include "Module.hh"
23 #include "IntervalTimer.hh"
24 
25 //#include "RateFilter.mpp"
26 //-/////////////////////////////////////////////////////////////////////////////////////////////////
27 
28 namespace senf {
29 namespace ppi {
30 namespace module {
31 
33  : public Module
34 {
36 
37 public:
39  void interval(ClockService::clock_type interval);
41 
44 
45 private:
46  void timeout();
47  ppi::IntervalTimer timer_;
48 };
49 
50 }}} //namespaces
51 
52 //-/////////////////////////////////////////////////////////////////////////////////////////////////
53 //#include "RateFilter.cci"
54 //#include "RateFilter.ct"
55 //#include "RateFilter.cti"
56 #endif
57 
58 
59 // Local Variables:
60 // mode: c++
61 // fill-column: 100
62 // c-file-style: "senf"
63 // indent-tabs-mode: nil
64 // ispell-local-dictionary: "american"
65 // compile-command: "scons -u test"
66 // comment-column: 40
67 // End:
Connector actively sending packets.
Definition: Connectors.hh:677
config::time_type clock_type
Module base-class.
Definition: Module.hh:169
Connectors public header.
Module public header.
High precision regularly signaled event.
Connector actively reading packets.
Definition: Connectors.hh:632
ClockService::clock_type interval() const
Definition: RateFilter.cc:39
connector::ActiveInput input
Definition: RateFilter.hh:42
#define SENF_PPI_MODULE(name)
Define PPI Module.
Definition: Module.hh:346
RateFilter(ClockService::clock_type interval)
Definition: RateFilter.cc:26
IntervalTimer public header.
connector::ActiveOutput output
Definition: RateFilter.hh:43