[ HDF5 High Level Tutorial Top ] [ Next ] [ Prev ]

H5TB: HDF5 Table
Tables

Inserting records

It is possible to insert records in any position of a table. To insert records in a table we use the H5TBinsert_record function. This function parameters are similar to the H5TBdelete_record function, having an extra parameter for the data being written. In the example we call this function as

H5TBinsert_record( file_id, "Table1", 3, 2, dst_size, dst_offset, data );

This function call inserts 2 records from "Table1", starting at position 3. The records that are after the inserted ones are pushed down.

Programming Example

The following C program provide an example of how to insert records in a table. The corresponding HDF5 file that is generated is also referenced here. You can use an HDF5 file browser to access this file by clicking on the link below.

NOTE: To download a tar file of all of the examples, including a Makefile, please go to the Index page.


HDF Help Desk
Last modified: November 18, 2002