diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-04-23 22:24:38 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-04-23 22:24:38 (GMT) |
commit | ca0a7c164e2e492d5c48d066bacf83a92e675c2e (patch) | |
tree | 37c5124c23ceddf677e9e6516e0dde696152655c /src/H5Apublic.h | |
parent | eba569241e9675494bcc7df4d0005b4a75a1d82d (diff) | |
download | hdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.zip hdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.tar.gz hdf5-ca0a7c164e2e492d5c48d066bacf83a92e675c2e.tar.bz2 |
[svn-r361] Added Attribute (H5A) code.
Diffstat (limited to 'src/H5Apublic.h')
-rw-r--r-- | src/H5Apublic.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/H5Apublic.h b/src/H5Apublic.h new file mode 100644 index 0000000..71322dc --- /dev/null +++ b/src/H5Apublic.h @@ -0,0 +1,47 @@ +/**************************************************************************** + * 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 */ + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef int (*H5A_operator_t)(hid_t location_id/*in*/, + const char *attr_name/*in*/, void *operator_data/*in,out*/); + +/* Public function prototypes */ +hid_t H5Acreate(hid_t loc_id, const char *name, hid_t datatype, hid_t dataspace, hid_t create_plist); +hid_t H5Aopen_name(hid_t loc_id, const char *name); +hid_t H5Aopen_idx(hid_t loc_id, unsigned idx); +herr_t H5Awrite(hid_t attr_id, hid_t mem_dt, void *buf); +herr_t H5Aread(hid_t attr_id, hid_t mem_dt, void *buf); +herr_t H5Aclose(hid_t attr_id); +hid_t H5Aget_space(hid_t attr); +hid_t H5Aget_type(hid_t attr); +size_t H5Aget_name(hid_t attr, char *buf, size_t buf_size); +int H5Anum_attrs(hid_t loc_id); +int H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op, void *op_data); +herr_t H5Adelete(hid_t loc_id, const char *name); + +#ifdef __cplusplus +} +#endif + +#endif /* _H5Apublic_H */ |