Name: H5Tget_member_index

Signature:

            int H5Tget_member_index(hid_t type_id, const char* name)

Purpose:

            Retrieve the index of a member of a compound or enumeration data type.

Description:

            H5Tget_member_index retrieves the index of a member of a compound or

enumeration data type by its name.  The index is between 0 and N-1, where N is the value returned by H5Tget_nmembers().  It returns FAIL(-1) if this function fails or the name doesn’t match any member.

Parameters:

hid_t     type_id

            Identifier of datatype to be queried.

const char* name

            The name of the data type member to be retrieved.

Returns:

            Returns index number of the named member, otherwise returns FAIL(-1).