72 const std::vector<uint16_t>& blockmsk)
93 return (val & emsk) == eval;
102 for (
size_t i=0; i<size; i++) {
106 if ((pval[i] & emsk) != eval) nerr += 1;
117 if (ind >=
fBlockVal.size())
return false;
118 if (ind >=
fBlockMsk.size())
return true;
129 os << bl << (text?text:
"--") <<
"RlinkCommandExpect @ " <<
this << endl;
136 os << bl <<
" fBlockVal & Msk data: ";
137 size_t width = (
fBlockMsk.size()>0) ? 9 : 4;
138 size_t ncol = max(
size_t(1), (80-ind-4-5)/(width+1));
139 for (
size_t i=0; i<
fBlockVal.size(); i++) {
140 if (i%ncol == 0) os <<
"\n" << bl <<
" " <<
RosPrintf(i,
"d",3) <<
": ";
uint16_t fDataVal
data value
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
std::vector< uint16_t > fBlockVal
block value
std::vector< uint16_t > fBlockMsk
block mask
uint16_t fDataMsk
data mask
bool BlockCheck(size_t ind, uint16_t val) const
FIXME_docs.
~RlinkCommandExpect()
Destructor.
RlinkCommandExpect()
Default constructor.
bool BlockIsChecked(size_t ind) const
FIXME_docs.
I/O appicator to generate fill characters.
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.
Declaration of class ReventLoop.