w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitTermBase.ipp
Go to the documentation of this file.
1// $Id: Rw11UnitTermBase.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2019-05-12 1149 1.1 add AttachDone(),DetachDone()
8// 2017-04-07 868 1.0.1 Dump(): add detail arg
9// 2013-03-03 494 1.0 Initial version
10// 2013-02-22 490 0.1 First draft
11// ---------------------------------------------------------------------------
12
17#include "Rw11UnitTermBase.hpp"
18
24// all method definitions in namespace Retro
25namespace Retro {
26
27//------------------------------------------+-----------------------------------
30template <class TC>
32 : Rw11UnitTerm(pcntl, index),
33 fpCntl(pcntl)
34{}
35
36//------------------------------------------+-----------------------------------
38
39template <class TC>
41{}
42
43//------------------------------------------+-----------------------------------
45
46template <class TC>
48{
49 return *fpCntl;
50}
51
52//------------------------------------------+-----------------------------------
54
55template <class TC>
57{
58 fpCntl->Wakeup();
59 return;
60}
61
62//------------------------------------------+-----------------------------------
64
65template <class TC>
66void Rw11UnitTermBase<TC>::Dump(std::ostream& os, int ind, const char* text,
67 int detail) const
68{
69 RosFill bl(ind);
70 os << bl << (text?text:"--") << "Rw11UnitTermBase @ " << this << std::endl;
71 os << bl << " fpCntl: " << fpCntl << std::endl;
72 Rw11UnitTerm::Dump(os, ind, " ^", detail);
73 return;
74}
75
76//------------------------------------------+-----------------------------------
78
79template <class TC>
81{
82 Rw11UnitTerm::AttachDone(); // call base class handler
83 Cntl().UnitSetup(Index()); // inform controller
84 return;
85}
86
87//------------------------------------------+-----------------------------------
89
90template <class TC>
92{
93 Cntl().UnitSetup(Index());
94 return;
95}
96
97} // end namespace Retro
I/O appicator to generate fill characters.
Definition: RosFill.hpp:24
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
virtual void WakeupCntl()
FIXME_docs.
virtual void AttachDone()
FIXME_docs.
virtual void DetachDone()
FIXME_docs.
Rw11UnitTermBase(TC *pcntl, size_t index)
Default constructor.
TC & Cntl() const
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
virtual void AttachDone()
FIXME_docs.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47