Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5O_TOKEN_CMP

Compares two VOL connector object tokens

Procedure:

H5O_TOKEN_CMP ( loc_id, token1, token2, cmp_value )

Signature:

herr_t H5Otoken_cmp ( hid_t loc_id, const H5O_token_t *token1, const H5O_token_t *token2, int *cmp_value )

  SUBROUTINE h5otoken_cmp_f(loc_id, token1, token2, cmp_value, hdferr)
    IMPLICIT NONE
    INTEGER(HID_T)  , INTENT(IN)  :: loc_id
    TYPE(H5O_TOKEN_T_F), INTENT(IN) :: token1 ! First token
    TYPE(H5O_TOKEN_T_F), INTENT(IN) :: token2 ! First token
    INTEGER         , INTENT(OUT) :: cmp_value
    INTEGER         , INTENT(OUT) :: hdferr

Parameters:
hid_t loc_idIN: Location identifier of object
const H5O_token_t *token1IN: First object token
const H5O_token_t *token2IN: Second object token
int *cmp_valueOUT: Comparison value

Description:

H5O_TOKEN_CMP compares two VOL connector object tokens, token1 and token2 for the file or group identifier specified by loc_id.  Both object tokens must be from the same VOL connector class.

H5O_token_t is defined in H5public.h as follows:

Include Bitbucket Server for Confluence: File content cannot be shown

Unauthenticated access to this resource is not allowed. Please login to Confluence first.

A comparison value, cmp_value, is returned, which indicates the result of the comparison:

cmp_valueResult
> 0token1 > token2
< 0

token1 < token2

0

token1 = token2

Returns:

On success, it returns a non-negative.

On failure it returns a negative.

Example:

Include Bitbucket Server for Confluence: File content cannot be shown

Unauthenticated access to this resource is not allowed. Please login to Confluence first.

Include Bitbucket Server for Confluence: File content cannot be shown

Unauthenticated access to this resource is not allowed. Please login to Confluence first.

History:
ReleaseChange
1.12.0Function introduced in this release.

--- Last Modified: March 17, 2020 | 12:47 PM