w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitPC11.cpp
Go to the documentation of this file.
1// $Id: Rw11UnitPC11.cpp 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.1 AttachDone(): use base class AttachDone()
8// 2019-04-20 1134 1.1 add AttachDone()
9// 2017-04-07 868 1.0.1 Dump(): add detail arg
10// 2013-05-03 515 1.0 Initial version
11// ---------------------------------------------------------------------------
12
17#include "librtools/RosFill.hpp"
18#include "Rw11CntlPC11.hpp"
19
20#include "Rw11UnitPC11.hpp"
21
22using namespace std;
23
29// all method definitions in namespace Retro
30namespace Retro {
31
32//------------------------------------------+-----------------------------------
34
36 : Rw11UnitStreamBase<Rw11CntlPC11>(pcntl, index)
37{
38 // unit 0 -> reader -> read only stream
39 // unit 1 -> puncher -> write only stream
40 const char* opts = (index==0) ? "?ronly" : "?wonly";
41 SetAttachOpts(opts);
42}
43
44//------------------------------------------+-----------------------------------
46
48{}
49
50//------------------------------------------+-----------------------------------
52
53void Rw11UnitPC11::Dump(std::ostream& os, int ind, const char* text,
54 int detail) const
55{
56 RosFill bl(ind);
57 os << bl << (text?text:"--") << "Rw11UnitPC11 @ " << this << endl;
58 Rw11UnitStreamBase<Rw11CntlPC11>::Dump(os, ind, " ^", detail);
59 return;
60}
61
62//------------------------------------------+-----------------------------------
64
66{
67 // the base class AttachDone() calls Cntl().UnitSetup() for all UnitStream's
68 // the UnitPC11 specialization calls Cntl().AttachDone in addition
71 return;
72}
73
74} // end namespace Retro
I/O appicator to generate fill characters.
Definition: RosFill.hpp:24
void AttachDone(size_t ind)
FIXME_docs.
virtual void AttachDone()
FIXME_docs.
Rw11UnitPC11(Rw11CntlPC11 *pcntl, size_t index)
Constructor.
~Rw11UnitPC11()
Destructor.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Implemenation (inline) of Rw11UnitStreamBase.
Rw11CntlPC11 & Cntl() const
FIXME_docs.
virtual void AttachDone()
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
void SetAttachOpts(const std::string &opts)
FIXME_docs.
Definition: Rw11Unit.ipp:39
size_t Index() const
FIXME_docs.
Definition: Rw11Unit.ipp:23
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47