w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitTapeBase.ipp
Go to the documentation of this file.
1// $Id: Rw11UnitTapeBase.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2015-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-09 1080 1.0.2 use HasVirt(); Virt() returns ref
8// 2017-04-07 868 1.0.1 Dump(): add detail arg
9// 2015-06-04 686 1.0 Initial version
10// 2015-05-17 683 0.1 First draft
11// ---------------------------------------------------------------------------
12
17#include "Rw11UnitTapeBase.hpp"
18
24// all method definitions in namespace Retro
25namespace Retro {
26
27//------------------------------------------+-----------------------------------
29
30template <class TC>
32 : Rw11UnitTape(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>
56void Rw11UnitTapeBase<TC>::Dump(std::ostream& os, int ind, const char* text,
57 int detail) const
58{
59 RosFill bl(ind);
60 os << bl << (text?text:"--") << "Rw11UnitTapeBase @ " << this << std::endl;
61 os << bl << " fpCntl: " << fpCntl << std::endl;
62 Rw11UnitTape::Dump(os, ind, " ^", detail);
63 return;
64}
65
66//------------------------------------------+-----------------------------------
68
69template <class TC>
71{
72 // transfer, if defined capacity from unit to virt
73 if (Capacity()!=0 && Virt().Capacity()==0) Virt().SetCapacity(Capacity());
74 Cntl().UnitSetup(Index());
75 return;
76}
77
78
79//------------------------------------------+-----------------------------------
81
82template <class TC>
84{
85 Cntl().UnitSetup(Index());
86 return;
87}
88
89} // end namespace Retro
I/O appicator to generate fill characters.
Definition: RosFill.hpp:24
virtual void AttachDone()
FIXME_docs.
virtual void DetachDone()
FIXME_docs.
TC & Cntl() const
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Rw11UnitTapeBase(TC *pcntl, size_t index)
Default constructor.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47