EventBinding.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 "EventBinding.hh"
18 //#include "EventBinding.ih"
19 
20 // Custom includes
21 #include <senf/PPI/EventManager.hh>
22 #include <senf/PPI/Module.hh>
23 
24 //#include "EventBinding.mpp"
25 #define prefix_
26 //-/////////////////////////////////////////////////////////////////////////////////////////////////
27 
29 {
30  descriptor_->enabled(false);
31  module().unregisterEvent(*descriptor_);
32  descriptor_->binding_ = nullptr;
33 }
34 
36 {
37  // It's hard to make this inline because of a circular header dependency ...
38  manager_->eventTime(time);
39 }
40 
41 //-/////////////////////////////////////////////////////////////////////////////////////////////////
42 #undef prefix_
43 //#include "EventBinding.mpp"
44 
45 
46 // Local Variables:
47 // mode: c++
48 // fill-column: 100
49 // comment-column: 40
50 // c-file-style: "senf"
51 // indent-tabs-mode: nil
52 // ispell-local-dictionary: "american"
53 // compile-command: "scons -u ../test"
54 // End:
config::time_type clock_type
Module public header.
void eventTime(ClockService::clock_type time)
Definition: EventBinding.cc:35
EventManager public header.
#define prefix_
Definition: EventBinding.cc:25
module::Module & module() const
bool enabled() const
Check, whether the event is currently enabled.
EventBinding public header.