w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RlinkContext.cpp
Go to the documentation of this file.
1// $Id: RlinkContext.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-03-16 1122 1.1 BUGFIX: use proper polarity of status mask
8// 2018-12-18 1089 1.0.2 use c++ style casts
9// 2017-04-07 868 1.0.1 Dump(): add detail arg
10// 2013-02-23 492 1.0 Initial version
11// ---------------------------------------------------------------------------
12
17#include "librtools/RosFill.hpp"
20
21#include "RlinkContext.hpp"
22
23using namespace std;
24
30// all method definitions in namespace Retro
31namespace Retro {
32
33//------------------------------------------+-----------------------------------
35
37 : fStatusVal(0),
38 fStatusMsk(0x00),
39 fErrCnt(0)
40{}
41
42//------------------------------------------+-----------------------------------
44
46{}
47
48//------------------------------------------+-----------------------------------
50
51void RlinkContext::Dump(std::ostream& os, int ind, const char* text,
52 int /*detail*/) const
53{
54 RosFill bl(ind);
55 os << bl << (text?text:"--") << "RlinkContext @ " << this << endl;
56
57 os << bl << " fStatusVal: " << RosPrintBvi(fStatusVal,0) << endl;
58 os << bl << " fStatusMsk: " << RosPrintBvi(fStatusMsk,0) << endl;
59 os << bl << " fErrCnt: " << RosPrintf(int(fErrCnt),"d") << endl;
60 return;
61}
62
63} // end namespace Retro
~RlinkContext()
Destructor.
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
uint8_t fStatusVal
status value
size_t fErrCnt
error count
RlinkContext()
Default constructor.
uint8_t fStatusMsk
status mask
I/O appicator to generate fill characters.
Definition: RosFill.hpp:24
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