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

◆ make_column_info()

ColumnInfo< T, sizeof...(Longs)> make_column_info ( 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 string_info = make_column_info<std::string>("String", "", 6);
auto scalar_info = make_column_info<int>("Scalar");
auto vector_info = make_column_info<int>("Vector", "", 3);
auto multidim_info = make_column_info<int>("Multidim", "", 3, 2);