w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RtclGet.hpp
Go to the documentation of this file.
1// $Id: RtclGet.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_RtclGet
17#define included_Retro_RtclGet 1
18
19#include "tcl.h"
20
21#include <cstdint>
22#include <string>
23#include <functional>
24
25#include "RtclGetBase.hpp"
26
27namespace Retro {
28
29 template <class TP>
30 class RtclGet : public RtclGetBase {
31 public:
32 explicit RtclGet(std::function<TP()>&& get);
33 ~RtclGet();
34
35 virtual Tcl_Obj* operator()() const;
36
37 protected:
38 std::function<TP()> fGet;
39 };
40
41
42} // end namespace Retro
43
44#include "RtclGet.ipp"
45
46#endif
Implemenation (inline) of class RtclGet.
Definition: RtclGet.hpp:30
~RtclGet()
FIXME_docs.
Definition: RtclGet.ipp:44
virtual Tcl_Obj * operator()() const
std::function< TP()> fGet
Definition: RtclGet.hpp:38
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47