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
"
18
#include "
librtools/RosPrintf.hpp
"
19
#include "
librtools/RosPrintBvi.hpp
"
20
21
#include "
RlinkContext.hpp
"
22
23
using namespace
std;
24
30
// all method definitions in namespace Retro
31
namespace
Retro
{
32
33
//------------------------------------------+-----------------------------------
35
36
RlinkContext::RlinkContext
()
37
: fStatusVal(0),
38
fStatusMsk(0x00),
39
fErrCnt(0)
40
{}
41
42
//------------------------------------------+-----------------------------------
44
45
RlinkContext::~RlinkContext
()
46
{}
47
48
//------------------------------------------+-----------------------------------
50
51
void
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.hpp
RosFill.hpp
RosPrintBvi.hpp
RosPrintf.hpp
Retro::RlinkContext::~RlinkContext
~RlinkContext()
Destructor.
Definition:
RlinkContext.cpp:45
Retro::RlinkContext::Dump
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Definition:
RlinkContext.cpp:51
Retro::RlinkContext::fStatusVal
uint8_t fStatusVal
status value
Definition:
RlinkContext.hpp:49
Retro::RlinkContext::fErrCnt
size_t fErrCnt
error count
Definition:
RlinkContext.hpp:51
Retro::RlinkContext::RlinkContext
RlinkContext()
Default constructor.
Definition:
RlinkContext.cpp:36
Retro::RlinkContext::fStatusMsk
uint8_t fStatusMsk
status mask
Definition:
RlinkContext.hpp:50
Retro::RosFill
I/O appicator to generate fill characters.
Definition:
RosFill.hpp:24
Retro::RosPrintBvi
FIXME_docs.
Definition:
RosPrintBvi.hpp:23
Retro::RosPrintf
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
Retro
Declaration of class ReventLoop.
Definition:
ReventLoop.cpp:47
librlink
RlinkContext.cpp
Generated on Thu Feb 9 2023 12:40:56 for w11 - cpp by
1.9.6