Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5LT_GET_ATTRIBUTE_LONG

Reads an attribute from disk.

Procedure:

H5LT_GET_ATTRIBUTE_LONG(loc_id, obj_name, attr_name, data)

Signature:

herr_t H5LTget_attribute_long( hid_t loc_id, const char *obj_name, const char *attr_name,  long *data )

Parameters:
hid_t loc_idIN: Identifier of the object ( dataset or group) to read the attribute from.
const char *obj_nameIN: The name of the object that the attribute is attached to.
const char *attr_nameIN: The attribute name.
long * data

OUT: Buffer with data.

Description:

H5LTget_attribute_long reads an attribute named attr_name that is attached to the object specified by the name obj_name. The HDF5 datatype of the attribute is H5T_NATIVE_LONG.

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

Coming Soon!

--- Last Modified: December 04, 2017 | 07:10 AM