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

◆ read_n_to() [1/4]

void read_n_to ( std::vector< ColumnKey keys,
TColumns &...  columns 
) const

Read a sequence of columns with given names or indices into existing Columns.

Example usages:

// Heterogeneous sequence (returns a tuple)
auto columns = ext.read_n(as<int>("A"), as<float, 2>("B"), as<std::string>("C"));
auto columns = ext.read_n(as<int>(0), as<float, 2>(3), as<std::string>(4));
// Homogeneous sequence (returns a vector)
auto columns = ext.read_n<int, 2>({"A", "B", "C"});
auto columns = ext.read_n<int, 2>({0, 3, 4});
Warning
Multidimensional columns are read as vector columns as of today.