Table.create

void create(hid_t locId, string tableName, string tableTitle, hsize_t numFields, hsize_t numRecords, size_t recordSize, const(char *)[] fieldNames, const size_t[] fieldOffsets, const hid_t[] fieldTypes, hsize_t chunkSize, void * fillData, int compress, const void * data)

Creates a new table.

Parameters

locIdLocation identifier (file or group handle)
tableNameName of the table to create
tableTitleTitle/description of the table
numFieldsNumber of fields in the table
numRecordsInitial number of records (usually 0)
recordSizeSize of each record in bytes
fieldNamesArray of field names
fieldOffsetsArray of field offsets within the record
fieldTypesArray of field datatype identifiers
chunkSizeChunk size for storage
fillDataFill data for uninitialized records (can be null)
compressCompression level (0 = none, 1-9 = gzip levels)
dataInitial data to write (can be null)

Throws

HDF5Exception if table creation fails
void create(T)(hid_t locId, string tableName, string tableTitle, hsize_t chunkSize = 10, int compress = 0) if (is(T == struct))

Creates a new table from a D struct type.

This template method automatically extracts field information from the struct type to create the table schema.

Parameters

TThe struct type representing a table record
locIdLocation identifier (file or group handle)
tableNameName of the table to create
tableTitleTitle/description of the table
chunkSizeChunk size for storage (default: 10)
compressCompression level (0 = none, default: 0)

Throws

HDF5Exception if table creation fails