FACT++  1.0
virtual bool fits::GetRow ( size_t  row,
bool  check = true 
)
inlinevirtual

Definition at line 827 of file fits.h.

References fits::Table::num_rows, and fits::Table::Column::offset.

Referenced by Compress(), and RawDataViewer::eventStepping().

828  {
829  if (check && row>=fTable.num_rows)
830  return false;
831 
832  const uint8_t offset = ReadRow(row);
833  if (!good())
834  return good();
835 
836  const char *ptr = fBufferRow.data() + offset;
837 
838  for (Addresses::const_iterator it=fAddresses.cbegin(); it!=fAddresses.cend(); it++)
839  {
840  const Table::Column &c = it->second;
841 
842  const char *src = ptr + c.offset;
843  char *dest = reinterpret_cast<char*>(it->first);
844 
845  MoveColumnDataToUserSpace(dest, src, c);
846  }
847 
848  return good();
849  }
virtual void MoveColumnDataToUserSpace(char *dest, const char *src, const Table::Column &c)
Definition: fits.h:814
size_t num_rows
Definition: fits.h:97
Table fTable
Definition: fits.h:502
std::vector< char > fBufferRow
Definition: fits.h:511
Addresses fAddresses
Definition: fits.h:505
uint8_t ReadRow(size_t row)
Definition: fits.h:790

+ Here is the caller graph for this function: