w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitDiskBase.ipp
Go to the documentation of this file.
1// $Id: Rw11UnitDiskBase.ipp 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-09 1080 1.1.3 use HasVirt(); Virt() returns ref
8// 2018-10-27 1061 1.1.2 adapt to new Rw11VirtDisk::Setup interface
9// 2017-04-07 868 1.1.1 Dump(): add detail arg
10// 2013-05-03 515 1.1 use AttachDone(),DetachCleanup(),DetachDone()
11// 2013-04-14 506 1.0 Initial version
12// 2013-02-22 490 0.1 First draft
13// ---------------------------------------------------------------------------
14
19#include "Rw11UnitDiskBase.hpp"
20
26// all method definitions in namespace Retro
27namespace Retro {
28
29//------------------------------------------+-----------------------------------
31
32template <class TC>
34 : Rw11UnitDisk(pcntl, index),
35 fpCntl(pcntl)
36{}
37
38//------------------------------------------+-----------------------------------
40
41template <class TC>
43{}
44
45//------------------------------------------+-----------------------------------
47
48template <class TC>
50{
51 return *fpCntl;
52}
53
54//------------------------------------------+-----------------------------------
56
57template <class TC>
58void Rw11UnitDiskBase<TC>::Dump(std::ostream& os, int ind, const char* text,
59 int detail) const
60{
61 RosFill bl(ind);
62 os << bl << (text?text:"--") << "Rw11UnitDiskBase @ " << this << std::endl;
63 os << bl << " fpCntl: " << fpCntl << std::endl;
64 Rw11UnitDisk::Dump(os, ind, " ^", detail);
65 return;
66}
67
68//------------------------------------------+-----------------------------------
70
71template <class TC>
73{
74 Virt().Setup(BlockSize(), NBlock(), NCylinder(), NHead(), NSector());
75 Cntl().UnitSetup(Index());
76 return;
77}
78
79
80//------------------------------------------+-----------------------------------
82
83template <class TC>
85{
86 SetWProt(false);
87 Cntl().UnitSetup(Index());
88 return;
89}
90
91} // end namespace Retro
I/O appicator to generate fill characters.
Definition: RosFill.hpp:24
Rw11UnitDiskBase(TC *pcntl, size_t index)
Default constructor.
virtual void AttachDone()
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
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.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47