H5DSpublic.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2. * Copyright by The HDF Group. *
  3. * Copyright by the Board of Trustees of the University of Illinois. *
  4. * All rights reserved. *
  5. * *
  6. * This file is part of HDF5. The full HDF5 copyright notice, including *
  7. * terms governing use, modification, and redistribution, is contained in *
  8. * the COPYING file, which can be found at the root of the source code *
  9. * distribution tree, or in https://www.hdfgroup.org/licenses. *
  10. * If you do not have access to either file, you may request a copy from *
  11. * help@hdfgroup.org. *
  12. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  13. #ifndef H5DSpublic_H
  14. #define H5DSpublic_H
  15. #define DIMENSION_SCALE_CLASS "DIMENSION_SCALE"
  16. #define DIMENSION_LIST "DIMENSION_LIST"
  17. #define REFERENCE_LIST "REFERENCE_LIST"
  18. #define DIMENSION_LABELS "DIMENSION_LABELS"
  19. typedef herr_t (*H5DS_iterate_t)(hid_t dset, unsigned dim, hid_t scale, void *visitor_data);
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. H5_HLDLL herr_t H5DSwith_new_ref(hid_t obj_id, hbool_t *with_new_ref);
  24. H5_HLDLL herr_t H5DSattach_scale(hid_t did, hid_t dsid, unsigned int idx);
  25. H5_HLDLL herr_t H5DSdetach_scale(hid_t did, hid_t dsid, unsigned int idx);
  26. H5_HLDLL herr_t H5DSset_scale(hid_t dsid, const char *dimname);
  27. H5_HLDLL int H5DSget_num_scales(hid_t did, unsigned int dim);
  28. H5_HLDLL herr_t H5DSset_label(hid_t did, unsigned int idx, const char *label);
  29. H5_HLDLL ssize_t H5DSget_label(hid_t did, unsigned int idx, char *label, size_t size);
  30. H5_HLDLL ssize_t H5DSget_scale_name(hid_t did, char *name, size_t size);
  31. H5_HLDLL htri_t H5DSis_scale(hid_t did);
  32. H5_HLDLL herr_t H5DSiterate_scales(hid_t did, unsigned int dim, int *idx, H5DS_iterate_t visitor,
  33. void *visitor_data);
  34. H5_HLDLL htri_t H5DSis_attached(hid_t did, hid_t dsid, unsigned int idx);
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif