w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11Virt.cpp
Go to the documentation of this file.
1// $Id: Rw11Virt.cpp 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-19 1090 1.1.2 use RosPrintf(bool)
8// 2017-04-07 868 1.1.1 Dump(): add detail arg
9// 2017-04-02 864 1.1 add fWProt,WProt()
10// 2013-03-06 495 1.0 Initial version
11// 2013-02-13 488 0.1 First draft
12// ---------------------------------------------------------------------------
13
18#include "librtools/RosFill.hpp"
20
21#include "Rw11Virt.hpp"
22
23using namespace std;
24
30// all method definitions in namespace Retro
31namespace Retro {
32
33//------------------------------------------+-----------------------------------
35
37 : fpUnit(punit),
38 fUrl(),
39 fWProt(false),
40 fStats()
41{}
42
43//------------------------------------------+-----------------------------------
45
47{}
48
49//------------------------------------------+-----------------------------------
51
52bool Rw11Virt::WProt() const
53{
54 return fWProt;
55}
56
57//------------------------------------------+-----------------------------------
59
60void Rw11Virt::Dump(std::ostream& os, int ind, const char* text,
61 int detail) const
62{
63 RosFill bl(ind);
64 os << bl << (text?text:"--") << "Rw11Virt @ " << this << endl;
65
66 os << bl << " fpUnit: " << fpUnit << endl;
67 fUrl.Dump(os, ind+2, "fUrl: ");
68 os << bl << " fWProt: " << RosPrintf(fWProt) << endl;
69 fStats.Dump(os, ind+2, "fStats: ", detail-1);
70 return;
71}
72
73
74} // end namespace Retro
I/O appicator to generate fill characters.
Definition: RosFill.hpp:24
virtual void Dump(std::ostream &os, int ind=0, const char *text=0) const
FIXME_docs.
Definition: RparseUrl.cpp:219
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Definition: Rstats.cpp:178
FIXME_docs.
Definition: Rw11Unit.hpp:39
RparseUrl fUrl
Definition: Rw11Virt.hpp:66
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Definition: Rw11Virt.cpp:60
Rstats fStats
statistics
Definition: Rw11Virt.hpp:68
virtual bool WProt() const
FIXME_docs.
Definition: Rw11Virt.cpp:52
virtual ~Rw11Virt()
Destructor.
Definition: Rw11Virt.cpp:46
Rw11Unit * fpUnit
back ref to unit
Definition: Rw11Virt.hpp:65
Rw11Virt(Rw11Unit *punit)
Default constructor.
Definition: Rw11Virt.cpp:36
bool fWProt
write protected
Definition: Rw11Virt.hpp:67
RosPrintfS< bool > RosPrintf(bool value, const char *form=0, int width=0, int prec=0)
Creates a print object for the formatted output of a bool value.
Definition: RosPrintf.ipp:38
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47