Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

H5P.get_attr_creation_order

Return tracking order and indexing settings

Syntax

crt_order_flags = H5P.get_attr_creation_order(ocpl_id)

Description

crt_order_flags = H5P.get_attr_creation_order(ocpl_id) retrieves tracking and indexing settings for attribute creation order. If crt_order_flags is zero, then the attribute creation order is neither tracked or indexed. Otherwise the creation order flags should be one of the following constant values:

H5P_CRT_ORDER_TRACKED
H5P_CRT_ORDER_INDEXED

Examples

fid = H5F.open('example.h5');
dset_id = H5D.open(fid,'/g3/integer');
dcpl = H5D.get_create_plist(dset_id);
flags = H5P.get_attr_creation_order(dcpl);
switch ( flags )
    case 0
        fprintf('neither tracked nor indexed\n');
    case H5ML.get_constant_value('H5P_CRT_ORDER_TRACKED')
        fprintf('tracked\n');
    case H5ML.get_constant_value('H5P_CRT_ORDER_INDEXED')
        fprintf('indexed\n');
end
H5P.close(dcpl);
H5D.close(dset_id);
H5F.close(fid);
Was this topic helpful?