w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitDEUNA.cpp
Go to the documentation of this file.
1// $Id: Rw11UnitDEUNA.cpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2014-2019 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-14 1081 1.0.3 use std::bind instead of boost::bind
8// 2018-12-09 1080 1.0.2 use HasVirt(); Virt() returns ref
9// 2018-12-01 1076 1.0.1 use unique_ptr
10// 2017-01-29 847 1.0 Initial version
11// 2014-06-09 561 0.1 First draft
12// ---------------------------------------------------------------------------
13
18#include <functional>
19
20#include "librtools/RosFill.hpp"
21#include "Rw11CntlDEUNA.hpp"
22
23#include "Rw11UnitDEUNA.hpp"
24
25using namespace std;
26using namespace std::placeholders;
27
33// all method definitions in namespace Retro
34namespace Retro {
35
36//------------------------------------------+-----------------------------------
38
40 : Rw11UnitVirt<Rw11VirtEth>(pcntl, index),
41 fpCntl(pcntl)
42{}
43
44//------------------------------------------+-----------------------------------
46
48{}
49
50//------------------------------------------+-----------------------------------
52
53void Rw11UnitDEUNA::Dump(std::ostream& os, int ind, const char* text,
54 int detail) const
55{
56 RosFill bl(ind);
57 os << bl << (text?text:"--") << "Rw11UnitDEUNA @ " << this << endl;
58 os << bl << " fpCntl: " << fpCntl << std::endl;
59 Rw11UnitVirt<Rw11VirtEth>::Dump(os, ind, " ^", detail);
60 return;
61}
62
63//------------------------------------------+-----------------------------------
65
67{
69 Cntl().UnitSetup(0);
70 return;
71}
72
73//------------------------------------------+-----------------------------------
75
77{
78 Cntl().UnitSetup(0);
79 return;
80}
81
82} // end namespace Retro
I/O appicator to generate fill characters.
Definition: RosFill.hpp:24
virtual void UnitSetup(size_t ind)
FIXME_docs.
bool RcvCallback(RethBuf::pbuf_t &pbuf)
FIXME_docs.
~Rw11UnitDEUNA()
Destructor.
virtual void DetachDone()
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.
Rw11CntlDEUNA * fpCntl
Rw11UnitDEUNA(Rw11CntlDEUNA *pcntl, size_t index)
Constructor.
Rw11CntlDEUNA & Cntl() const
FIXME_docs.
Implemenation (inline) of Rw11UnitVirt.
Rw11VirtEth & Virt()
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
void SetupRcvCallback(rcvcbfo_t &&rcvcbfo)
FIXME_docs.
Definition: Rw11VirtEth.ipp:31
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47