w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RlinkContext.hpp
Go to the documentation of this file.
1// $Id: RlinkContext.hpp 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.2 BUGFIX: use proper polarity of status mask
8// 2017-04-07 868 1.1.1 Dump(): add detail arg
9// 2015-03-28 660 1.1 add SetStatus(Value|Mask)()
10// 2013-02-23 492 1.0 Initial version
11// ---------------------------------------------------------------------------
12
13
18#ifndef included_Retro_RlinkContext
19#define included_Retro_RlinkContext 1
20
21#include <cstdint>
22
23namespace Retro {
24
26 public:
29
30 void SetStatus(uint8_t stat, uint8_t statmsk=0x00);
31
32 void SetStatusValue(uint8_t stat);
33 void SetStatusMask(uint8_t statmsk);
34
35 uint8_t StatusValue() const;
36 uint8_t StatusMask() const;
37
38 bool StatusIsChecked() const;
39 bool StatusCheck(uint8_t val) const;
40
41 void IncErrorCount(size_t inc = 1);
42 void ClearErrorCount();
43 size_t ErrorCount() const;
44
45 void Dump(std::ostream& os, int ind=0, const char* text=0,
46 int detail=0) const;
47
48 protected:
49 uint8_t fStatusVal;
50 uint8_t fStatusMsk;
51 size_t fErrCnt;
52 };
53
54} // end namespace Retro
55
56#include "RlinkContext.ipp"
57
58#endif
size_t ErrorCount() const
FIXME_docs.
void SetStatusMask(uint8_t statmsk)
FIXME_docs.
void IncErrorCount(size_t inc=1)
FIXME_docs.
~RlinkContext()
Destructor.
uint8_t StatusValue() const
FIXME_docs.
bool StatusCheck(uint8_t val) const
FIXME_docs.
bool StatusIsChecked() const
FIXME_docs.
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
void ClearErrorCount()
FIXME_docs.
uint8_t fStatusVal
status value
size_t fErrCnt
error count
void SetStatus(uint8_t stat, uint8_t statmsk=0x00)
FIXME_docs.
RlinkContext()
Default constructor.
uint8_t StatusMask() const
FIXME_docs.
uint8_t fStatusMsk
status mask
void SetStatusValue(uint8_t stat)
FIXME_docs.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47