MISR Toolkit  1.5.1
H5Apublic.h
Go to the documentation of this file.
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://support.hdfgroup.org/ftp/HDF5/releases. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /*
15  * This file contains public declarations for the H5A module.
16  */
17 #ifndef _H5Apublic_H
18 #define _H5Apublic_H
19 
20 /* Public headers needed by this file */
21 #include "H5Ipublic.h" /* IDs */
22 #include "H5Opublic.h" /* Object Headers */
23 #include "H5Tpublic.h" /* Datatypes */
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 /* Information struct for attribute (for H5Aget_info/H5Aget_info_by_idx) */
30 typedef struct {
31  hbool_t corder_valid; /* Indicate if creation order is valid */
32  H5O_msg_crt_idx_t corder; /* Creation order */
33  H5T_cset_t cset; /* Character set of attribute name */
34  hsize_t data_size; /* Size of raw data */
35 } H5A_info_t;
36 
37 /* Typedef for H5Aiterate2() callbacks */
38 typedef herr_t (*H5A_operator2_t)(hid_t location_id/*in*/,
39  const char *attr_name/*in*/, const H5A_info_t *ainfo/*in*/, void *op_data/*in,out*/);
40 
41 /* Public function prototypes */
42 H5_DLL hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id,
43  hid_t space_id, hid_t acpl_id, hid_t aapl_id);
44 H5_DLL hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name,
45  hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id);
46 H5_DLL hid_t H5Aopen(hid_t obj_id, const char *attr_name, hid_t aapl_id);
47 H5_DLL hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name,
48  const char *attr_name, hid_t aapl_id, hid_t lapl_id);
49 H5_DLL hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name,
50  H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id,
51  hid_t lapl_id);
52 H5_DLL herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf);
53 H5_DLL herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf);
54 H5_DLL herr_t H5Aclose(hid_t attr_id);
56 H5_DLL hid_t H5Aget_type(hid_t attr_id);
58 H5_DLL ssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf);
59 H5_DLL ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name,
61  char *name /*out*/, size_t size, hid_t lapl_id);
63 H5_DLL herr_t H5Aget_info(hid_t attr_id, H5A_info_t *ainfo /*out*/);
64 H5_DLL herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name,
65  const char *attr_name, H5A_info_t *ainfo /*out*/, hid_t lapl_id);
66 H5_DLL herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name,
68  H5A_info_t *ainfo /*out*/, hid_t lapl_id);
69 H5_DLL herr_t H5Arename(hid_t loc_id, const char *old_name, const char *new_name);
70 H5_DLL herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name,
71  const char *old_attr_name, const char *new_attr_name, hid_t lapl_id);
72 H5_DLL herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type,
73  H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data);
74 H5_DLL herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type,
75  H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data,
76  hid_t lapd_id);
77 H5_DLL herr_t H5Adelete(hid_t loc_id, const char *name);
78 H5_DLL herr_t H5Adelete_by_name(hid_t loc_id, const char *obj_name,
79  const char *attr_name, hid_t lapl_id);
80 H5_DLL herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name,
81  H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id);
82 H5_DLL htri_t H5Aexists(hid_t obj_id, const char *attr_name);
83 H5_DLL htri_t H5Aexists_by_name(hid_t obj_id, const char *obj_name,
84  const char *attr_name, hid_t lapl_id);
85 
86 /* Symbols defined for compatibility with previous versions of the HDF5 API.
87  *
88  * Use of these symbols is deprecated.
89  */
90 #ifndef H5_NO_DEPRECATED_SYMBOLS
91 
92 /* Macros */
93 
94 
95 /* Typedefs */
96 
97 /* Typedef for H5Aiterate1() callbacks */
98 typedef herr_t (*H5A_operator1_t)(hid_t location_id/*in*/,
99  const char *attr_name/*in*/, void *operator_data/*in,out*/);
100 
101 
102 /* Function prototypes */
103 H5_DLL hid_t H5Acreate1(hid_t loc_id, const char *name, hid_t type_id,
104  hid_t space_id, hid_t acpl_id);
105 H5_DLL hid_t H5Aopen_name(hid_t loc_id, const char *name);
106 H5_DLL hid_t H5Aopen_idx(hid_t loc_id, unsigned idx);
107 H5_DLL int H5Aget_num_attrs(hid_t loc_id);
108 H5_DLL herr_t H5Aiterate1(hid_t loc_id, unsigned *attr_num, H5A_operator1_t op,
109  void *op_data);
110 
111 #endif /* H5_NO_DEPRECATED_SYMBOLS */
112 
113 #ifdef __cplusplus
114 }
115 #endif
116 
117 #endif /* _H5Apublic_H */
118 
H5_DLL herr_t H5Arename_by_name(hid_t loc_id, const char *obj_name, const char *old_attr_name, const char *new_attr_name, hid_t lapl_id)
hbool_t corder_valid
Definition: H5Apublic.h:31
H5_DLL herr_t H5Adelete(hid_t loc_id, const char *name)
unsigned int hbool_t
Definition: H5public.h:142
H5_DLL hid_t H5Acreate_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t lapl_id)
HDFFCLIBAPI intf * idx
H5_DLL herr_t H5Aiterate1(hid_t loc_id, unsigned *attr_num, H5A_operator1_t op, void *op_data)
herr_t(* H5A_operator1_t)(hid_t location_id, const char *attr_name, void *operator_data)
Definition: H5Apublic.h:98
H5_DLL herr_t H5Aclose(hid_t attr_id)
H5_index_t
Definition: H5public.h:305
long long ssize_t
Definition: H5public.h:156
#define H5_DLL
Definition: H5api_adpt.h:256
H5_DLL hid_t H5Aopen_idx(hid_t loc_id, unsigned idx)
int herr_t
Definition: H5public.h:124
H5_DLL ssize_t H5Aget_name_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, char *name, size_t size, hid_t lapl_id)
unsigned long long hsize_t
Definition: H5public.h:169
H5_DLL herr_t H5Aget_info_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, H5A_info_t *ainfo, hid_t lapl_id)
H5_DLL herr_t H5Aiterate2(hid_t loc_id, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data)
H5_DLL herr_t H5Arename(hid_t loc_id, const char *old_name, const char *new_name)
H5_DLL hsize_t H5Aget_storage_size(hid_t attr_id)
H5_DLL herr_t H5Aget_info_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5A_info_t *ainfo, hid_t lapl_id)
H5_DLL hid_t H5Aopen(hid_t obj_id, const char *attr_name, hid_t aapl_id)
H5_DLL hid_t H5Aopen_name(hid_t loc_id, const char *name)
H5_DLL hid_t H5Aget_type(hid_t attr_id)
H5_DLL herr_t H5Aget_info(hid_t attr_id, H5A_info_t *ainfo)
H5_DLL herr_t H5Adelete_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id)
herr_t(* H5A_operator2_t)(hid_t location_id, const char *attr_name, const H5A_info_t *ainfo, void *op_data)
Definition: H5Apublic.h:38
HDFFCLIBAPI _fcd name
H5T_cset_t
Definition: H5Tpublic.h:78
H5_DLL htri_t H5Aexists(hid_t obj_id, const char *attr_name)
H5_DLL herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf)
H5T_cset_t cset
Definition: H5Apublic.h:33
H5_iter_order_t
Definition: H5public.h:284
HDFFCLIBAPI _fcd intf intf * order
H5_DLL hid_t H5Acreate2(hid_t loc_id, const char *attr_name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id)
H5_DLL herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf)
HDFFCLIBAPI intf * size
int hid_t
Definition: H5Ipublic.h:54
H5_DLL hid_t H5Aopen_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t aapl_id, hid_t lapl_id)
HDFFCLIBAPI _fcd _fcd intf * n
H5_DLL hid_t H5Aopen_by_idx(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t aapl_id, hid_t lapl_id)
uint32_t H5O_msg_crt_idx_t
Definition: H5Opublic.h:127
H5_DLL ssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf)
H5_DLL hid_t H5Aget_create_plist(hid_t attr_id)
H5O_msg_crt_idx_t corder
Definition: H5Apublic.h:32
H5_DLL int H5Aget_num_attrs(hid_t loc_id)
H5_DLL herr_t H5Aiterate_by_name(hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t *idx, H5A_operator2_t op, void *op_data, hid_t lapd_id)
int htri_t
Definition: H5public.h:143
H5_DLL herr_t H5Adelete_by_name(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t lapl_id)
H5_DLL hid_t H5Aget_space(hid_t attr_id)
H5_DLL hid_t H5Acreate1(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t acpl_id)
hsize_t data_size
Definition: H5Apublic.h:34
H5_DLL htri_t H5Aexists_by_name(hid_t obj_id, const char *obj_name, const char *attr_name, hid_t lapl_id)
HDFFCLIBAPI intf * buf

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:52