Definition at line 1475 of file smartfact.cc.
References EventImp::GetJavaDate(), i, HTML::kGreen, HTML::kRed, HTML::kWhite, HTML::kYellow, and EventImp::Ptr().
Referenced by StateMachineSmartFACT().
1485 const uint8_t *ptr = d.
Ptr<uint8_t>();
1487 int c[4] = {
'.',
'.',
'.',
'.' };
1489 for (
int i=0;
i<40;
i++)
1491 const uint8_t stat1 = ptr[
i]&3;
1492 const uint8_t stat2 = ptr[
i]>>3;
1494 if (stat1==0 && stat2==0)
1497 if (stat1>=2 && stat2==8)
1498 rc[
i] = stat1==2?
'+':
'*';
1505 for (
int i=0;
i<4;
i++)
1515 out << setprecision(3);
1517 out << col[0] <<
'\t' << rc.substr( 0, 10) <<
'\n';
1518 out << col[1] <<
'\t' << rc.substr(10, 10) <<
'\n';
1519 out << col[2] <<
'\t' << rc.substr(20, 10) <<
'\n';
1520 out << col[3] <<
'\t' << rc.substr(30, 10) <<
'\n';
1521 ofstream(
fPath+
"/fad.data") << out.str();
int GetCurrentState() const
return the current state of the machine
static const string kYellow
bool CheckDataSize(const EventImp &d, const char *name, size_t size, bool min=false)
static const string kWhite
uint64_t GetJavaDate() const
static const string kGreen
const T * Ptr(size_t offset=0) const