25#ifndef _TABLE_FITSREADER_H
26#define _TABLE_FITSREADER_H
29#include <CCfits/CCfits>
146 void skip(
long rows)
override;
Provides information about the columns of a Table.
TableReader implementation for reading FITS tables.
void skip(long rows) override
Implements the TableReader::skip() contract.
virtual ~FitsReader()=default
Destructor.
FitsReader & operator=(FitsReader &&)=default
std::vector< std::string > m_column_names
std::unique_ptr< CCfits::FITS > m_fits
bool hasMoreRows() override
Implements the TableReader::hasMoreRows() contract.
const ColumnInfo & getInfo() override
Returns the column information of the table.
FitsReader & operator=(const FitsReader &)=delete
Table readImpl(long rows) override
Implements the TableReader::readImpl() contract.
std::reference_wrapper< const CCfits::HDU > m_hdu
FitsReader(const FitsReader &)=delete
std::shared_ptr< ColumnInfo > m_column_info
FitsReader(FitsReader &&)=default
std::size_t rowsLeft() override
Implements the TableReader::rowsLeft() contract.
std::string getComment() override
FitsReader & fixColumnNames(std::vector< std::string > column_names)
Overrides the column names of the table.
Interface for classes reading tables.