w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RtclRw11UnitStream.cpp
Go to the documentation of this file.
1// $Id: RtclRw11UnitStream.cpp 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// 2019-02-23 1114 1.1.3 use std::bind instead of lambda
8// 2018-12-15 1082 1.1.2 use lambda instead of boost::bind
9// 2018-10-06 1053 1.1.1 move using after includes (clang warning)
10// 2017-04-08 870 1.1 use Rw11UnitStream& ObjUV(); inh from RtclRw11Unit
11// 2013-05-01 513 1.0 Initial version
12// ---------------------------------------------------------------------------
13
18#include <functional>
19
21
22using namespace std;
23using namespace std::placeholders;
24
30// all method definitions in namespace Retro
31namespace Retro {
32
33//------------------------------------------+-----------------------------------
35
37 : RtclRw11Unit(type)
38{}
39
40//------------------------------------------+-----------------------------------
42
44{}
45
46
47//------------------------------------------+-----------------------------------
49
51{
52 // this can't be in ctor because pure virtual is called which is available
53 // only when more derived class is being constructed. SetupGetSet() must be
54 // called in ctor of a more derived class.
55
56 Rw11UnitStream* pobj = &ObjUV();
57
58 fGets.Add<int> ("pos", bind(&Rw11UnitStream::Pos, pobj));
59
60 fSets.Add<int> ("pos", bind(&Rw11UnitStream::SetPos,pobj, _1));
61
62 return;
63}
64} // end namespace Retro
void Add(const std::string &name, get_uptr_t &&upget)
FIXME_docs.
Definition: RtclGetList.cpp:52
RtclRw11UnitStream(const std::string &type)
Constructor.
virtual Rw11UnitStream & ObjUV()=0
void Add(const std::string &name, set_uptr_t &&upset)
FIXME_docs.
Definition: RtclSetList.cpp:52
void SetPos(int pos)
FIXME_docs.
int Pos()
FIXME_docs.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47