w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RtclSet.hpp
Go to the documentation of this file.
1// $Id: RtclSet.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-15 1083 1.0.2 ctor: use rval ref and move semantics
8// 2018-12-14 1081 1.0.1 use std::function instead of boost
9// 2013-02-12 487 1.0 Initial version
10// ---------------------------------------------------------------------------
11
16#ifndef included_Retro_RtclSet
17#define included_Retro_RtclSet 1
18
19#include "tcl.h"
20
21#include <cstdint>
22#include <string>
23#include <functional>
24
26#include "RtclSetBase.hpp"
27
28namespace Retro {
29
30 template <class TP>
31 class RtclSet : public RtclSetBase {
32 public:
33 explicit RtclSet(std::function<void(TP)>&& set);
34 ~RtclSet();
35
36 virtual void operator()(RtclArgs& args) const;
37
38 protected:
39 std::function<void(TP)> fSet;
40 };
41
42
43} // end namespace Retro
44
45#include "RtclSet.ipp"
46
47#endif
FIXME_docs.
Definition: RtclArgs.hpp:41
Implemenation (inline) of class RtclSet.
Definition: RtclSet.hpp:31
~RtclSet()
FIXME_docs.
Definition: RtclSet.ipp:44
virtual void operator()(RtclArgs &args) const
std::function< void(TP)> fSet
Definition: RtclSet.hpp:39
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47