EleFits  5.0.0
A modern C++ API on top of CFITSIO

◆ makeColumnInfo()

ColumnInfo< T, sizeof...(Longs)> makeColumnInfo ( const std::string name,
const std::string unit,
Longs...  shape 
)
related

Shortcut to create column informations without specifying the dimension template parameters.

Template Parameters
TThe value type, must be specified
LongsThe axes lengths, should not be specified (automatically deduced)
Parameters
nameThe column name
unitThe column unit, or "" to omit it
shapeThe shape as a comma-separated list of longs can be left empty for scalar columns
Example
auto stringInfo = makeColumnInfo<std::string>("String", "", 6);
auto scalarInfo = makeColumnInfo<int>("Scalar");
auto vectorInfo = makeColumnInfo<int>("Vector", "", 3);
auto multidimInfo = makeColumnInfo<int>("Multidim", "", 3, 2);