FACT++  1.0
void FactGui::handleFadDNA ( const DimData d)
inlineprivate

Definition at line 1497 of file FactGui.h.

References i, and DimData::ptr().

Referenced by infoHandler().

1498  {
1499  if (!CheckSize(d, 40*sizeof(uint64_t)))
1500  return;
1501 
1502  const uint64_t *ptr = d.ptr<uint64_t>();
1503 
1504  ostringstream tip;
1505  tip << "<table width='100%'>";
1506  tip << "<tr><th>Crate</th><td></td><th>Board</th><td></td><th>DNA</th></tr>";
1507 
1508  for (int i=0; i<40; i++)
1509  {
1510  tip << dec;
1511  tip << "<tr>";
1512  tip << "<td align='center'>" << i/10 << "</td><td>:</td>";
1513  tip << "<td align='center'>" << i%10 << "</td><td>:</td>";
1514  tip << hex;
1515  tip << "<td>0x" << setfill('0') << setw(16) << ptr[i] << "</td>";
1516  tip << "</tr>";
1517  }
1518  tip << "</table>";
1519 
1520  fFadDNA->setText(tip.str().c_str());
1521  }
int i
Definition: db_dim_client.c:21
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
Definition: FactGui.h:639
const T * ptr(uint32_t offset=0) const
Definition: DimData.h:32

+ Here is the call graph for this function:

+ Here is the caller graph for this function: