w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rw11UnitTerm.ipp
Go to the documentation of this file.
1// $Id: Rw11UnitTerm.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2013-2017 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2017-02-25 855 1.0.2 inline RcvQueueEmpty(),RcvQueueSize()
8// 2013-04-20 508 1.0.1 add 7bit and non-printable masking; add log file
9// 2013-04-13 504 1.0 Initial version
10// 2013-03-02 493 0.1 First draft
11// ---------------------------------------------------------------------------
12
17// all method definitions in namespace Retro
18namespace Retro {
19
20//------------------------------------------+-----------------------------------
22
23inline void Rw11UnitTerm::SetTo7bit(bool to7bit)
24{
25 fTo7bit = to7bit;
26 return;
27}
28
29//------------------------------------------+-----------------------------------
31
32inline void Rw11UnitTerm::SetToEnpc(bool toenpc)
33{
34 fToEnpc = toenpc;
35 return;
36}
37
38//------------------------------------------+-----------------------------------
40
41inline void Rw11UnitTerm::SetTi7bit(bool ti7bit)
42{
43 fTi7bit = ti7bit;
44 return;
45}
46
47//------------------------------------------+-----------------------------------
49
50inline bool Rw11UnitTerm::To7bit() const
51{
52 return fTo7bit;
53}
54
55//------------------------------------------+-----------------------------------
57
58inline bool Rw11UnitTerm::ToEnpc() const
59{
60 return fToEnpc;
61}
62
63//------------------------------------------+-----------------------------------
65
66inline bool Rw11UnitTerm::Ti7bit() const
67{
68 return fTi7bit;
69}
70
71//------------------------------------------+-----------------------------------
73
74inline const std::string& Rw11UnitTerm::Log() const
75{
76 return fLogFname;
77}
78
79//------------------------------------------+-----------------------------------
81
83{
84 return fRcvQueue.empty();
85}
86
87//------------------------------------------+-----------------------------------
89
91{
92 return fRcvQueue.size();
93}
94
95
96} // end namespace Retro
bool ToEnpc() const
FIXME_docs.
void SetToEnpc(bool toenpc)
FIXME_docs.
bool fTi7bit
discard parity bit on input
void SetTo7bit(bool to7bit)
FIXME_docs.
virtual bool RcvQueueEmpty()
FIXME_docs.
virtual size_t RcvQueueSize()
FIXME_docs.
bool Ti7bit() const
FIXME_docs.
bool fTo7bit
discard parity bit on output
bool To7bit() const
FIXME_docs.
std::string fLogFname
log file name
bool fToEnpc
escape non-printables on output
const std::string & Log() const
FIXME_docs.
void SetTi7bit(bool ti7bit)
FIXME_docs.
std::deque< uint8_t > fRcvQueue
input queue
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47