MISR Toolkit  1.5.1
H5LTpublic.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 #ifndef _H5LTpublic_H
15 #define _H5LTpublic_H
16 
17 /* Flag definitions for H5LTopen_file_image() */
18 #define H5LT_FILE_IMAGE_OPEN_RW 0x0001 /* Open image for read-write */
19 #define H5LT_FILE_IMAGE_DONT_COPY 0x0002 /* The HDF5 lib won't copy */
20 /* user supplied image buffer. The same image is open with the core driver. */
21 #define H5LT_FILE_IMAGE_DONT_RELEASE 0x0004 /* The HDF5 lib won't */
22 /* deallocate user supplied image buffer. The user application is reponsible */
23 /* for doing so. */
24 #define H5LT_FILE_IMAGE_ALL 0x0007
25 
26 typedef enum H5LT_lang_t {
27  H5LT_LANG_ERR = -1, /*this is the first*/
28  H5LT_DDL = 0, /*for DDL*/
29  H5LT_C = 1, /*for C*/
30  H5LT_FORTRAN = 2, /*for Fortran*/
31  H5LT_NO_LANG = 3 /*this is the last*/
32 } H5LT_lang_t;
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /*-------------------------------------------------------------------------
39  *
40  * Make dataset functions
41  *
42  *-------------------------------------------------------------------------
43  */
44 
46  const char *dset_name,
47  int rank,
48  const hsize_t *dims,
49  hid_t type_id,
50  const void *buffer );
51 
53  const char *dset_name,
54  int rank,
55  const hsize_t *dims,
56  const char *buffer );
57 
59  const char *dset_name,
60  int rank,
61  const hsize_t *dims,
62  const short *buffer );
63 
65  const char *dset_name,
66  int rank,
67  const hsize_t *dims,
68  const int *buffer );
69 
71  const char *dset_name,
72  int rank,
73  const hsize_t *dims,
74  const long *buffer );
75 
77  const char *dset_name,
78  int rank,
79  const hsize_t *dims,
80  const float *buffer );
81 
83  const char *dset_name,
84  int rank,
85  const hsize_t *dims,
86  const double *buffer );
87 
89  const char *dset_name,
90  const char *buf );
91 
92 
93 /*-------------------------------------------------------------------------
94  *
95  * Read dataset functions
96  *
97  *-------------------------------------------------------------------------
98  */
99 
101  const char *dset_name,
102  hid_t type_id,
103  void *buffer );
104 
106  const char *dset_name,
107  char *buffer );
108 
110  const char *dset_name,
111  short *buffer );
112 
114  const char *dset_name,
115  int *buffer );
116 
118  const char *dset_name,
119  long *buffer );
120 
122  const char *dset_name,
123  float *buffer );
124 
126  const char *dset_name,
127  double *buffer );
128 
130  const char *dset_name,
131  char *buf );
132 
133 /*-------------------------------------------------------------------------
134  *
135  * Query dataset functions
136  *
137  *-------------------------------------------------------------------------
138  */
139 
140 
142  const char *dset_name,
143  int *rank );
144 
146  const char *dset_name,
147  hsize_t *dims,
148  H5T_class_t *type_class,
149  size_t *type_size );
150 
151 H5_HLDLL herr_t H5LTfind_dataset( hid_t loc_id, const char *name );
152 
153 
154 
155 /*-------------------------------------------------------------------------
156  *
157  * Set attribute functions
158  *
159  *-------------------------------------------------------------------------
160  */
161 
162 
164  const char *obj_name,
165  const char *attr_name,
166  const char *attr_data );
167 
169  const char *obj_name,
170  const char *attr_name,
171  const char *buffer,
172  size_t size );
173 
175  const char *obj_name,
176  const char *attr_name,
177  const unsigned char *buffer,
178  size_t size );
179 
181  const char *obj_name,
182  const char *attr_name,
183  const short *buffer,
184  size_t size );
185 
187  const char *obj_name,
188  const char *attr_name,
189  const unsigned short *buffer,
190  size_t size );
191 
193  const char *obj_name,
194  const char *attr_name,
195  const int *buffer,
196  size_t size );
197 
199  const char *obj_name,
200  const char *attr_name,
201  const unsigned int *buffer,
202  size_t size );
203 
205  const char *obj_name,
206  const char *attr_name,
207  const long *buffer,
208  size_t size );
209 
211  const char *obj_name,
212  const char *attr_name,
213  const long long *buffer,
214  size_t size );
215 
217  const char *obj_name,
218  const char *attr_name,
219  const unsigned long *buffer,
220  size_t size );
221 
223  const char *obj_name,
224  const char *attr_name,
225  const float *buffer,
226  size_t size );
227 
229  const char *obj_name,
230  const char *attr_name,
231  const double *buffer,
232  size_t size );
233 
234 /*-------------------------------------------------------------------------
235  *
236  * Get attribute functions
237  *
238  *-------------------------------------------------------------------------
239  */
240 
242  const char *obj_name,
243  const char *attr_name,
244  hid_t mem_type_id,
245  void *data );
246 
248  const char *obj_name,
249  const char *attr_name,
250  char *data );
251 
253  const char *obj_name,
254  const char *attr_name,
255  char *data );
256 
258  const char *obj_name,
259  const char *attr_name,
260  unsigned char *data );
261 
263  const char *obj_name,
264  const char *attr_name,
265  short *data );
266 
268  const char *obj_name,
269  const char *attr_name,
270  unsigned short *data );
271 
273  const char *obj_name,
274  const char *attr_name,
275  int *data );
276 
278  const char *obj_name,
279  const char *attr_name,
280  unsigned int *data );
281 
283  const char *obj_name,
284  const char *attr_name,
285  long *data );
286 
288  const char *obj_name,
289  const char *attr_name,
290  long long *data );
291 
293  const char *obj_name,
294  const char *attr_name,
295  unsigned long *data );
296 
298  const char *obj_name,
299  const char *attr_name,
300  float *data );
301 
303  const char *obj_name,
304  const char *attr_name,
305  double *data );
306 
307 
308 /*-------------------------------------------------------------------------
309  *
310  * Query attribute functions
311  *
312  *-------------------------------------------------------------------------
313  */
314 
315 
317  const char *obj_name,
318  const char *attr_name,
319  int *rank );
320 
322  const char *obj_name,
323  const char *attr_name,
324  hsize_t *dims,
325  H5T_class_t *type_class,
326  size_t *type_size );
327 
328 
329 
330 
331 
332 /*-------------------------------------------------------------------------
333  *
334  * General functions
335  *
336  *-------------------------------------------------------------------------
337  */
338 
339 H5_HLDLL hid_t H5LTtext_to_dtype(const char *text, H5LT_lang_t lang_type);
340 H5_HLDLL herr_t H5LTdtype_to_text(hid_t dtype, char *str, H5LT_lang_t lang_type, size_t *len);
341 
342 
343 /*-------------------------------------------------------------------------
344  *
345  * Utility functions
346  *
347  *-------------------------------------------------------------------------
348  */
349 
350 H5_HLDLL herr_t H5LTfind_attribute( hid_t loc_id, const char *name );
351 
352 H5_HLDLL htri_t H5LTpath_valid(hid_t loc_id, const char *path, hbool_t check_object_valid);
353 
354 /*-------------------------------------------------------------------------
355  *
356  * File image operations functions
357  *
358  *-------------------------------------------------------------------------
359  */
360 
361 H5_HLDLL hid_t H5LTopen_file_image(void *buf_ptr, size_t buf_size, unsigned flags);
362 
363 #ifdef __cplusplus
364 }
365 #endif
366 
367 #endif
368 
HDFFCLIBAPI intf * len
H5_HLDLL herr_t H5LTread_dataset_char(hid_t loc_id, const char *dset_name, char *buffer)
unsigned int hbool_t
Definition: H5public.h:142
H5_HLDLL herr_t H5LTread_dataset_short(hid_t loc_id, const char *dset_name, short *buffer)
H5T_class_t
Definition: H5Tpublic.h:28
H5_HLDLL htri_t H5LTpath_valid(hid_t loc_id, const char *path, hbool_t check_object_valid)
H5_HLDLL hid_t H5LTopen_file_image(void *buf_ptr, size_t buf_size, unsigned flags)
H5_HLDLL herr_t H5LTmake_dataset_float(hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const float *buffer)
H5_HLDLL herr_t H5LTset_attribute_uint(hid_t loc_id, const char *obj_name, const char *attr_name, const unsigned int *buffer, size_t size)
HDFFCLIBAPI void intf dims[]
int herr_t
Definition: H5public.h:124
H5_HLDLL herr_t H5LTset_attribute_long(hid_t loc_id, const char *obj_name, const char *attr_name, const long *buffer, size_t size)
H5_HLDLL herr_t H5LTget_attribute_char(hid_t loc_id, const char *obj_name, const char *attr_name, char *data)
H5_HLDLL herr_t H5LTmake_dataset_char(hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const char *buffer)
H5_HLDLL herr_t H5LTset_attribute_double(hid_t loc_id, const char *obj_name, const char *attr_name, const double *buffer, size_t size)
unsigned long long hsize_t
Definition: H5public.h:169
H5_HLDLL herr_t H5LTfind_attribute(hid_t loc_id, const char *name)
H5_HLDLL herr_t H5LTset_attribute_float(hid_t loc_id, const char *obj_name, const char *attr_name, const float *buffer, size_t size)
H5LT_lang_t
Definition: H5LTpublic.h:26
HDFFCLIBAPI intf intf intf intf void * buffer
H5_HLDLL herr_t H5LTget_dataset_ndims(hid_t loc_id, const char *dset_name, int *rank)
H5_HLDLL herr_t H5LTfind_dataset(hid_t loc_id, const char *name)
H5_HLDLL herr_t H5LTget_attribute_double(hid_t loc_id, const char *obj_name, const char *attr_name, double *data)
H5_HLDLL herr_t H5LTread_dataset_float(hid_t loc_id, const char *dset_name, float *buffer)
H5_HLDLL herr_t H5LTdtype_to_text(hid_t dtype, char *str, H5LT_lang_t lang_type, size_t *len)
HDFFCLIBAPI _fcd name
H5_HLDLL herr_t H5LTget_dataset_info(hid_t loc_id, const char *dset_name, hsize_t *dims, H5T_class_t *type_class, size_t *type_size)
H5_HLDLL herr_t H5LTmake_dataset_string(hid_t loc_id, const char *dset_name, const char *buf)
H5_HLDLL herr_t H5LTset_attribute_string(hid_t loc_id, const char *obj_name, const char *attr_name, const char *attr_data)
H5_HLDLL herr_t H5LTget_attribute_ndims(hid_t loc_id, const char *obj_name, const char *attr_name, int *rank)
H5_HLDLL herr_t H5LTget_attribute_int(hid_t loc_id, const char *obj_name, const char *attr_name, int *data)
H5_HLDLL herr_t H5LTget_attribute_float(hid_t loc_id, const char *obj_name, const char *attr_name, float *data)
HDFFCLIBAPI intf * size
int hid_t
Definition: H5Ipublic.h:54
H5_HLDLL herr_t H5LTget_attribute(hid_t loc_id, const char *obj_name, const char *attr_name, hid_t mem_type_id, void *data)
H5_HLDLL herr_t H5LTset_attribute_uchar(hid_t loc_id, const char *obj_name, const char *attr_name, const unsigned char *buffer, size_t size)
H5_HLDLL herr_t H5LTread_dataset_double(hid_t loc_id, const char *dset_name, double *buffer)
H5_HLDLL herr_t H5LTget_attribute_long(hid_t loc_id, const char *obj_name, const char *attr_name, long *data)
H5_HLDLL herr_t H5LTmake_dataset_long(hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const long *buffer)
H5_HLDLL herr_t H5LTset_attribute_long_long(hid_t loc_id, const char *obj_name, const char *attr_name, const long long *buffer, size_t size)
H5_HLDLL herr_t H5LTread_dataset_long(hid_t loc_id, const char *dset_name, long *buffer)
H5_HLDLL hid_t H5LTtext_to_dtype(const char *text, H5LT_lang_t lang_type)
H5_HLDLL herr_t H5LTmake_dataset(hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, hid_t type_id, const void *buffer)
H5_HLDLL herr_t H5LTread_dataset(hid_t loc_id, const char *dset_name, hid_t type_id, void *buffer)
H5_HLDLL herr_t H5LTget_attribute_ulong(hid_t loc_id, const char *obj_name, const char *attr_name, unsigned long *data)
H5_HLDLL herr_t H5LTget_attribute_short(hid_t loc_id, const char *obj_name, const char *attr_name, short *data)
H5_HLDLL herr_t H5LTset_attribute_short(hid_t loc_id, const char *obj_name, const char *attr_name, const short *buffer, size_t size)
HDFFCLIBAPI void * data
H5_HLDLL herr_t H5LTset_attribute_int(hid_t loc_id, const char *obj_name, const char *attr_name, const int *buffer, size_t size)
H5_HLDLL herr_t H5LTread_dataset_string(hid_t loc_id, const char *dset_name, char *buf)
#define H5_HLDLL
Definition: H5api_adpt.h:264
H5_HLDLL herr_t H5LTget_attribute_info(hid_t loc_id, const char *obj_name, const char *attr_name, hsize_t *dims, H5T_class_t *type_class, size_t *type_size)
HDFFCLIBAPI intf intf * flags
H5_HLDLL herr_t H5LTget_attribute_long_long(hid_t loc_id, const char *obj_name, const char *attr_name, long long *data)
H5_HLDLL herr_t H5LTset_attribute_char(hid_t loc_id, const char *obj_name, const char *attr_name, const char *buffer, size_t size)
H5_HLDLL herr_t H5LTmake_dataset_short(hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const short *buffer)
H5_HLDLL herr_t H5LTmake_dataset_int(hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const int *buffer)
H5_HLDLL herr_t H5LTget_attribute_uint(hid_t loc_id, const char *obj_name, const char *attr_name, unsigned int *data)
H5_HLDLL herr_t H5LTmake_dataset_double(hid_t loc_id, const char *dset_name, int rank, const hsize_t *dims, const double *buffer)
H5_HLDLL herr_t H5LTset_attribute_ushort(hid_t loc_id, const char *obj_name, const char *attr_name, const unsigned short *buffer, size_t size)
H5_HLDLL herr_t H5LTget_attribute_uchar(hid_t loc_id, const char *obj_name, const char *attr_name, unsigned char *data)
HDFFCLIBAPI intf _fcd intf * dtype
int htri_t
Definition: H5public.h:143
HDFFCLIBAPI intf * rank
H5_HLDLL herr_t H5LTget_attribute_ushort(hid_t loc_id, const char *obj_name, const char *attr_name, unsigned short *data)
H5_HLDLL herr_t H5LTset_attribute_ulong(hid_t loc_id, const char *obj_name, const char *attr_name, const unsigned long *buffer, size_t size)
H5_HLDLL herr_t H5LTget_attribute_string(hid_t loc_id, const char *obj_name, const char *attr_name, char *data)
HDFFCLIBAPI intf * buf
H5_HLDLL herr_t H5LTread_dataset_int(hid_t loc_id, const char *dset_name, int *buffer)

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