ActiveFeeder.cc
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 #include "ActiveFeeder.hh"
18 //#include "ActiveFeeder.ih"
19 
20 // Custom includes
21 
22 //#include "ActiveFeeder.mpp"
23 #define prefix_
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 
26 //-/////////////////////////////////////////////////////////////////////////////////////////////////
27 // senf::ppi::module::ActiveFeeder
28 
30  : idle_("Active Feeder")
31 {
32  route(input,idle_);
33  route(idle_,output);
34  registerEvent(idle_, &ActiveFeeder::request);
35 }
36 
37 prefix_ void senf::ppi::module::ActiveFeeder::request()
38 {
39  output(input());
40 }
41 
42 //-/////////////////////////////////////////////////////////////////////////////////////////////////
43 #undef prefix_
44 //#include "ActiveFeeder.mpp"
45 
46 
47 // Local Variables:
48 // mode: c++
49 // fill-column: 100
50 // comment-column: 40
51 // c-file-style: "senf"
52 // indent-tabs-mode: nil
53 // ispell-local-dictionary: "american"
54 // compile-command: "scons -u test"
55 // End:
Route< connector::InputConnector, connector::OutputConnector > & route(connector::InputConnector &input, connector::OutputConnector &output)
Define flow information.
Definition: Module.cc:39
connector::ActiveInput input
Definition: ActiveFeeder.hh:46
connector::ActiveOutput output
Definition: ActiveFeeder.hh:49
ActiveFeeder public header.
void registerEvent(EventDescriptor &descriptor, Target target)
Register an external event.
#define prefix_
Definition: ActiveFeeder.cc:23