Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5O_SET_COMMENT

Sets comment for specified object

This function is deprecated in favor of object attributes.

Procedure:

H5O_SET_COMMENT(object_id, comment)

Signature:

herr_t H5Oset_comment( hid_t object_id, const char *comment )

SUBROUTINE h5oset_comment_f(obj_id, comment, hdferr)
    IMPLICIT NONE
    INTEGER(HID_T)  , INTENT(IN)  :: obj_id
    CHARACTER(LEN=*), INTENT(IN)  :: comment
    INTEGER         , INTENT(OUT) :: hdferr

Parameters:
hid_t object_id    IN: Identifier of the target object; may be a file, group, dataset, named datatype or attribute identifier
const char *comment    IN: The new comment

Description:

H5O_SET_COMMENT sets the comment for the specified object to the contents of comment. Any previously existing comment is overwritten.

The target object is specified by an identifier, object_id.

If comment is the empty string or a null pointer, any existing comment message is removed from the object.

Comments should be relatively short, null-terminated, ASCII strings.

Comments can be attached to any object that has an object header. Datasets, groups, and committed (named) datatypes have object headers. Symbolic links do not have object headers.

If a comment is being added to an object attribute, this comment will be attached to the object to which the attribute belongs and not to the attribute itself.

Returns:

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

Example:

Coming Soon!

History:
Release    C
1.8.11Fortran subroutine introduced in this release.
1.8.0Function introduced in this release.

--- Last Modified: May 07, 2018 | 12:35 PM