H5T_COMMIT2 saves a transient datatype as an immutable committed datatype in a file. The datatype specified by dtype_id is committed to the file with the name name at the location specified by loc_id and with the datatype creation and access property lists tcpl_id and tapl_id , respectively. loc_id may be a file identifier, or a group identifier within that file. name may be either an absolute path in the file or a relative path from loc_id naming the newly-commited datatype.
The link creation property list, lcpl_id , governs creation of the link(s) by which the new committed datatype is accessed and the creation of any intermediate groups that may be missing. Once commited, this datatype may be used to define the datatype of any other dataset or attribute in the file. This function will not accept a datatype that cannot actually hold data. This currently includes compound datatypes with no fields and enumerated datatypes with no members. Committed datatypes are sometimes referred to as named datatypes. |