mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
Code cleanup Description: Finish checkin of H5A API cleanups with header files I forgot on the first checkin pass. Platforms tested: Tested h5committest {arabica (fortran), eirene (fortran, C++) modi4 (parallel, fortran)} FreeBSD 4.7 (sleipnir)
52 lines
2.1 KiB
C
52 lines
2.1 KiB
C
/****************************************************************************
|
|
* NCSA HDF *
|
|
* Software Development Group *
|
|
* National Center for Supercomputing Applications *
|
|
* University of Illinois at Urbana-Champaign *
|
|
* 605 E. Springfield, Champaign IL 61820 *
|
|
* *
|
|
* For conditions of distribution and use, see the accompanying *
|
|
* hdf/COPYING file. *
|
|
* *
|
|
****************************************************************************/
|
|
|
|
/*
|
|
* This file contains public declarations for the H5A module.
|
|
*/
|
|
#ifndef _H5Apublic_H
|
|
#define _H5Apublic_H
|
|
|
|
/* Public headers needed by this file */
|
|
#include "H5Ipublic.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef herr_t (*H5A_operator_t)(hid_t location_id/*in*/,
|
|
const char *attr_name/*in*/, void *operator_data/*in,out*/);
|
|
|
|
/* Public function prototypes */
|
|
H5_DLL hid_t H5Acreate(hid_t loc_id, const char *name, hid_t type_id,
|
|
hid_t space_id, hid_t plist_id);
|
|
H5_DLL hid_t H5Aopen_name(hid_t loc_id, const char *name);
|
|
H5_DLL hid_t H5Aopen_idx(hid_t loc_id, unsigned idx);
|
|
H5_DLL herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf);
|
|
H5_DLL herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf);
|
|
H5_DLL herr_t H5Aclose(hid_t attr_id);
|
|
H5_DLL hid_t H5Aget_space(hid_t attr_id);
|
|
H5_DLL hid_t H5Aget_type(hid_t attr_id);
|
|
H5_DLL ssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf);
|
|
H5_DLL hsize_t H5Aget_storage_size(hid_t attr_id);
|
|
H5_DLL int H5Aget_num_attrs(hid_t loc_id);
|
|
H5_DLL herr_t H5Arename(hid_t loc_id, const char *old_name, const char *new_name);
|
|
H5_DLL herr_t H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op,
|
|
void *op_data);
|
|
H5_DLL herr_t H5Adelete(hid_t loc_id, const char *name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _H5Apublic_H */
|