25 #ifndef _TABLE_FITSREADER_H 26 #define _TABLE_FITSREADER_H 29 #include <CCfits/CCfits> 96 FitsReader(
const std::string& filename,
int hdu_index=1);
100 FitsReader(
const std::string& filename,
const std::string& hduName);
147 void skip(
long rows)
override;
164 std::unique_ptr<CCfits::FITS>
m_fits {
nullptr};
165 std::reference_wrapper<const CCfits::HDU>
m_hdu;
Interface for classes reading tables.
const ColumnInfo & getInfo() override
Returns the column information of the table.
std::shared_ptr< ColumnInfo > m_column_info
FitsReader & fixColumnNames(std::vector< std::string > column_names)
Overrides the column names of the table.
Table readImpl(long rows) override
Implements the TableReader::readImpl() contract.
std::reference_wrapper< const CCfits::HDU > m_hdu
FitsReader(const CCfits::HDU &hdu)
Creates a FitsReader that reads from the given HDU.
std::size_t rowsLeft() override
Implements the TableReader::rowsLeft() contract.
std::unique_ptr< CCfits::FITS > m_fits
virtual ~FitsReader()=default
Destructor.
FitsReader & operator=(FitsReader &&)=default
std::vector< std::string > m_column_names
Provides information about the columns of a Table.
void skip(long rows) override
Implements the TableReader::skip() contract.
TableReader implementation for reading FITS tables.
bool hasMoreRows() override
Implements the TableReader::hasMoreRows() contract.
std::string getComment() override