IdleEvent.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_IdleEvent_
18 #define HH_SENF_PPI_IdleEvent_ 1
19 
20 // Custom includes
22 #include "Events.hh"
23 
24 //#include "IdleEvent.mpp"
25 //-/////////////////////////////////////////////////////////////////////////////////////////////////
26 
27 namespace senf {
28 namespace ppi {
29 
37  class IdleEvent
38  : public EventImplementation<>
39  {
40  public:
41  IdleEvent(std::string const & name = "");
42 
43  private:
44  virtual void v_enable();
45  virtual void v_disable();
46 
47  void cb();
48 
49  scheduler::TimerEvent timer_;
50  };
51 
52 }}
53 
54 
55 //-/////////////////////////////////////////////////////////////////////////////////////////////////
56 #include "IdleEvent.cci"
57 //#include "IdleEvent.ct"
58 //#include "IdleEvent.cti"
59 #endif
60 
61 
62 // Local Variables:
63 // mode: c++
64 // fill-column: 100
65 // comment-column: 40
66 // c-file-style: "senf"
67 // indent-tabs-mode: nil
68 // ispell-local-dictionary: "american"
69 // compile-command: "scons -u test"
70 // End:
IdleEvent(std::string const &name="")
Continually signaled event.
Definition: IdleEvent.hh:37
Event implementation base class.
Definition: Events.hh:169
unspecified_keyword_type name
Events public header.