EleFits  4.0.1
A modern C++ API on top of CFitsIO
Functions
Euclid::Cfitsio::BintableIo Namespace Reference

Detailed Description

Binary table-related functions.

Functions

long columnCount (fitsfile *fptr)
 Get the number of columns.
 
long rowCount (fitsfile *fptr)
 Get the number of rows.
 
bool hasColumn (fitsfile *fptr, const std::string &name)
 Check whether a given column exists.
 
std::string columnName (fitsfile *fptr, long index)
 Get the name of a given column.
 
void updateColumnName (fitsfile *fptr, long index, const std::string &newName)
 Update the name of a given column.
 
long columnIndex (fitsfile *fptr, const std::string &name)
 Get the index of a binary table column.
 
template<typename T >
Fits::ColumnInfo< T > readColumnInfo (fitsfile *fptr, long index)
 Read the metadata of a binary table column with given index.
 
template<typename T >
Fits::VecColumn< T > readColumn (fitsfile *fptr, long index)
 Read the binary table column with given index.
 
template<typename T >
void readColumnSegment (fitsfile *fptr, const Fits::Segment &rows, long index, Fits::Column< T > &column)
 Read the segment of a binary table column with given index.
 
template<typename T >
Fits::VecColumn< T > readColumn (fitsfile *fptr, const std::string &name)
 Read a binary table column with given name.
 
template<typename... Ts>
std::tuple< Fits::VecColumn< Ts >... > readColumns (fitsfile *fptr, const std::vector< long > &indices)
 Read several binary table columns with given indices.
 
template<typename... Ts>
std::tuple< Fits::VecColumn< Ts >... > readColumns (fitsfile *fptr, const std::vector< std::string > &names)
 Read several binary table columns with given names.
 
template<typename T >
void writeColumn (fitsfile *fptr, const Fits::Column< T > &column)
 Write a binary table column.
 
template<typename T >
void writeColumnSegment (fitsfile *fptr, long firstRow, const Fits::Column< T > &column)
 Write a segment of a binary table column.
 
template<typename... Ts>
void writeColumns (fitsfile *fptr, const Fits::Column< Ts > &... columns)
 Write several binary table columns.
 
template<typename T >
void insertColumn (fitsfile *fptr, long index, const Fits::Column< T > &column)
 Insert a binary table column at given index.
 
template<typename... Ts>
void insertColumns (fitsfile *fptr, long index, const Fits::Column< Ts > &... columns)
 Insert several binary table columns at given index.
 
template<typename T >
void appendColumn (fitsfile *fptr, const Fits::Column< T > &column)
 Append a binary table column.
 
template<typename... Ts>
void appendColumns (fitsfile *fptr, const Fits::Column< Ts > &... columns)
 Append several binary table columns.