Class FitsColumnReader

Class Documentation

class FitsColumnReader

Polymorphic reader interface used to read different kinds of objects from one or more FITS binary table columns.

Public Functions

FitsColumnReader()
FitsColumnReader(FitsColumnReader const&)
FitsColumnReader(FitsColumnReader&&)
FitsColumnReader &operator=(FitsColumnReader const&)
FitsColumnReader &operator=(FitsColumnReader&&)
virtual void prepRead(std::size_t firstRow, std::size_t nRows, fits::Fits &fits)

Optionally read ahead and cache values from multiple rows.

Subclasses are not required to implement this method; if they do, they should indicate to readCell that cached values should be used instead. Subclasses should not assume that prepRead will always be called, however.

Parameters
  • [in] firstRow: Index of the first row to read.

  • [in] nRows: Number of rows to read.

  • [in] fits: FITS file manager object.

virtual void readCell(BaseRecord &record, std::size_t row, fits::Fits &fits, std::shared_ptr<InputArchive> const &archive) const = 0

Read values from a single row.

Parameters
  • [inout] record: Record to populate.

  • [in] row: Index of the row to read from.

  • [in] fits: FITS file manager object.

  • [in] archive: Archive holding persisted objects, loaded from other HDUs. May be null.

virtual ~FitsColumnReader()