mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-18 17:40:55 +08:00
[svn-r544] Added code for H5Sselect_none call.
This commit is contained in:
parent
ca426e2f32
commit
3a6a09d4fd
1192
src/.distdep
1192
src/.distdep
File diff suppressed because it is too large
Load Diff
@ -65,6 +65,7 @@ H5S_class_t H5Sextent_class (hid_t space_id);
|
||||
herr_t H5Sset_extent_none (hid_t space_id);
|
||||
herr_t H5Sextent_copy (hid_t dst_id,hid_t src_id);
|
||||
herr_t H5Sselect_all (hid_t spaceid);
|
||||
herr_t H5Sselect_none (hid_t spaceid);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -528,6 +528,50 @@ done:
|
||||
FUNC_LEAVE (ret_value);
|
||||
} /* H5Sselect_all() */
|
||||
|
||||
/*--------------------------------------------------------------------------
|
||||
NAME
|
||||
H5Sselect_none
|
||||
PURPOSE
|
||||
Specify that nothing is selected in the extent
|
||||
USAGE
|
||||
herr_t H5Sselect_elements(dsid)
|
||||
hid_t dsid; IN: Dataspace ID of selection to modify
|
||||
RETURNS
|
||||
SUCCEED/FAIL
|
||||
DESCRIPTION
|
||||
This function de-selects the entire extent for a dataspace.
|
||||
GLOBAL VARIABLES
|
||||
COMMENTS, BUGS, ASSUMPTIONS
|
||||
EXAMPLES
|
||||
REVISION LOG
|
||||
--------------------------------------------------------------------------*/
|
||||
herr_t H5Sselect_none (hid_t spaceid)
|
||||
{
|
||||
H5S_t *space = NULL; /* Dataspace to modify selection of */
|
||||
herr_t ret_value=FAIL; /* return value */
|
||||
|
||||
FUNC_ENTER (H5Sselect_none, FAIL);
|
||||
|
||||
/* Check args */
|
||||
if (H5_DATASPACE != H5I_group(spaceid) ||
|
||||
NULL == (space=H5I_object(spaceid))) {
|
||||
HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data space");
|
||||
}
|
||||
|
||||
/* Remove current selection first */
|
||||
if(H5S_select_release(space)<0) {
|
||||
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL,
|
||||
"can't release hyperslab");
|
||||
} /* end if */
|
||||
|
||||
/* Set selection type */
|
||||
space->select.type=H5S_SEL_NONE;
|
||||
ret_value=SUCCEED;
|
||||
|
||||
done:
|
||||
FUNC_LEAVE (ret_value);
|
||||
} /* H5Sselect_none() */
|
||||
|
||||
/*--------------------------------------------------------------------------
|
||||
NAME
|
||||
H5Sselect_npoints
|
||||
|
@ -27,7 +27,7 @@
|
||||
/* Version numbers */
|
||||
#define H5_VERS_MAJOR 1 /* For major interface/format changes */
|
||||
#define H5_VERS_MINOR 0 /* For minor interface/format changes */
|
||||
#define H5_VERS_RELEASE 36 /* For tweaks, bug-fixes, or development */
|
||||
#define H5_VERS_RELEASE 38 /* For tweaks, bug-fixes, or development */
|
||||
|
||||
#define H5check() H5vers_check(H5_VERS_MAJOR,H5_VERS_MINOR, \
|
||||
H5_VERS_RELEASE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user