EleFits  5.0.0
A modern C++ API on top of CFITSIO
Public Member Functions | List of all members

#include <BintableHdu.h>

Detailed Description

Binary table HDU reader-writer.

Public Member Functions

virtual ~BintableHdu ()=default
 Destructor.
 
const BintableColumnscolumns () const
 Access the data unit column-wise. More...
 
long readColumnCount () const
 Read the number of columns.
 
long readRowCount () const
 Read the number of rows.
 
HduCategory readCategory () const override
 Read the category of the HDU. More...
 
template<typename T , long N = 1>
VecColumn< T, N > readColumn (ColumnKey key) const
 Read a column with given name or index.
 
template<typename TColumn >
void writeColumn (const TColumn &column) const
 Write a column.
 
- Public Member Functions inherited from Hdu
virtual ~Hdu ()=default
 Destructor.
 
long index () const
 Get the 0-based index of the HDU.
 
HduCategory type () const
 Get the type of the HDU. More...
 
bool matches (HduFilter filter) const
 Check whether the HDU matches a given filter. More...
 
template<typename T >
const T & as () const
 View as an ImageHdu, ImageRaster, BintableHdu or BintableColumns (if possible).
 
const Headerheader () const
 Access the header unit to read and write records. More...
 
std::string readName () const
 Read the extension name.
 
long readVersion () const
 Read the extension version.
 
void updateName (const std::string &name) const
 Write or update the extension name.
 
void updateVersion (long version) const
 Write or update the extension version.
 
void verifyChecksums () const
 Compute the HDU and data checksums and compare them to the values in the header. More...
 
void updateChecksums () const
 Compute and write (or update) the HDU and data checksums. More...
 

The documentation for this class was generated from the following file: