EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
List of all members

#include <BintableHdu.h>

Detailed Description

Binary table HDU reader-writer.

Examples
EleFitsBintableExample.cpp, and EleFitsTutorial.cpp.

Public Member Functions

Properties
HduCategory category () const override
 Read the category of the HDU. More...
 
Element access
const BintableColumnscolumns () const
 Access the data unit column-wise. More...
 
Operations
long read_column_count () const
 Read the number of columns.
 
long read_row_count () const
 Read the number of rows.
 
template<typename T , long N = 1>
VecColumn< T, N > read_column (ColumnKey key) const
 Read a column with given name or index.
 
template<typename TColumn >
void write_column (const TColumn &column) const
 Write a column.
 
- Public Member Functions inherited from Hdu
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...
 
std::size_t size_in_file () const
 Read the number of bytes used by the Hdu. More...
 
const Headerheader () const
 Access the header unit to read and write records. More...
 
template<typename T >
const T & as () const
 View as an ImageHdu, ImageRaster, BintableHdu or BintableColumns (if possible).
 
std::string read_name () const
 Read the extension name.
 
long read_version () const
 Read the extension version.
 
void update_name (const std::string &name) const
 Write or update the extension name.
 
void update_version (long version) const
 Write or update the extension version.
 
void verify_checksums () const
 Compute the HDU and data checksums and compare them to the values in the header. More...
 
void update_checksums () const
 Compute and write (or update) the HDU and data checksums. More...
 
HduCategory readCategory () const
 
std::string readName () const
 
long readVersion () const
 
void updateName (const std::string &name) const
 
void updateVersion (long version) const
 
void verifyChecksums () const
 
void updateChecksums () const
 

Deprecated

long readColumnCount () const
 
long readRowCount () const
 
template<typename T , long N = 1>
VecColumn< T, N > readColumn (ColumnKey key) const
 
template<typename TColumn >
void writeColumn (const TColumn &column) const
 

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