w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitRK11.cpp
Go to the documentation of this file.
1// $Id: Rw11UnitRK11.cpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2017 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2017-04-07 868 1.0.1 Dump(): add detail arg
8// 2013-04-20 508 1.0 Initial version
9// 2013-02-05 483 0.1 First draft
10// ---------------------------------------------------------------------------
11
16#include "librtools/RosFill.hpp"
17#include "Rw11CntlRK11.hpp"
18
19#include "Rw11UnitRK11.hpp"
20
21using namespace std;
22
28// all method definitions in namespace Retro
29namespace Retro {
30
31//------------------------------------------+-----------------------------------
33
35 : Rw11UnitDiskBase<Rw11CntlRK11>(pcntl, index),
36 fRkds(0)
37{
38 // setup disk geometry: only rk05 supported, no rk05f !
39 fType = "rk05";
40 fEnabled = true;
41 fNCyl = 203;
42 fNHead = 2;
43 fNSect = 12;
44 fBlksize = 512;
46}
47
48//------------------------------------------+-----------------------------------
50
52{}
53
54//------------------------------------------+-----------------------------------
56
57void Rw11UnitRK11::Dump(std::ostream& os, int ind, const char* text,
58 int detail) const
59{
60 RosFill bl(ind);
61 os << bl << (text?text:"--") << "Rw11UnitRK11 @ " << this << endl;
62 os << bl << " fRkds: " << fRkds << endl;
63
64 Rw11UnitDiskBase<Rw11CntlRK11>::Dump(os, ind, " ^", detail);
65 return;
66}
67
68} // end namespace Retro
I/O appicator to generate fill characters.
Definition: RosFill.hpp:24
Implemenation (inline) of Rw11UnitDiskBase.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
size_t fBlksize
block size (in bytes)
bool fEnabled
unit enabled
std::string fType
drive type
Rw11UnitRK11(Rw11CntlRK11 *pcntl, size_t index)
Constructor.
~Rw11UnitRK11()
Destructor.
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