summaryrefslogtreecommitdiffstats
path: root/hl/fortran/src/H5LTf90proto.h
blob: 2b8e9325c22f3ebe7820c4a439ca0cc695fbae13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html.  If you do not have     *
 * access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


#ifndef _H5LTf90proto_H
#define _H5LTf90proto_H

#include "H5pubconf.h"
#include "H5f90i.h"
#include <stdlib.h>  
#include <string.h>


H5_DLL char*  HD5f2cstring (_fcd fdesc, int len);
H5_DLL void HD5packFstring (char *src, char *dest, size_t len);


/*
 *  Functions from H5LTfc.c
 */
#   define nh5ltmake_dataset_c         H5_FC_FUNC_(h5ltmake_dataset_c, H5LTMAKE_DATASET_C)
#   define nh5ltread_dataset_c         H5_FC_FUNC_(h5ltread_dataset_c, H5LTREAD_DATASET_C)
#   define nh5ltmake_dataset_string_c  H5_FC_FUNC_(h5ltmake_dataset_string_c, H5LTMAKE_DATASET_STRING_C)
#   define nh5ltread_dataset_string_c  H5_FC_FUNC_(h5ltread_dataset_string_c, H5LTREAD_DATASET_STRING_C)

#   define nh5ltset_attribute_int_c    H5_FC_FUNC_(h5ltset_attribute_int_c, H5LTSET_ATTRIBUTE_INT_C)
#   define nh5ltset_attribute_float_c  H5_FC_FUNC_(h5ltset_attribute_float_c, H5LTSET_ATTRIBUTE_FLOAT_C)
#   define nh5ltset_attribute_double_c H5_FC_FUNC_(h5ltset_attribute_double_c, H5LTSET_ATTRIBUTE_DOUBLE_C)
#   define nh5ltset_attribute_string_c H5_FC_FUNC_(h5ltset_attribute_string_c, H5LTSET_ATTRIBUTE_STRING_C)

#   define nh5ltget_attribute_int_c    H5_FC_FUNC_(h5ltget_attribute_int_c, H5LTGET_ATTRIBUTE_INT_C)
#   define nh5ltget_attribute_float_c  H5_FC_FUNC_(h5ltget_attribute_float_c, H5LTGET_ATTRIBUTE_FLOAT_C)
#   define nh5ltget_attribute_double_c H5_FC_FUNC_(h5ltget_attribute_double_c, H5LTGET_ATTRIBUTE_DOUBLE_C)
#   define nh5ltget_attribute_string_c H5_FC_FUNC_(h5ltget_attribute_string_c, H5LTGET_ATTRIBUTE_STRING_C)

#   define nh5ltget_dataset_ndims_c    H5_FC_FUNC_(h5ltget_dataset_ndims_c, H5LTGET_DATASET_NDIMS_C)
#   define nh5ltfind_dataset_c         H5_FC_FUNC_(h5ltfind_dataset_c, H5LTFIND_DATASET_C)
#   define nh5ltget_dataset_info_c     H5_FC_FUNC_(h5ltget_dataset_info_c, H5LTGET_DATASET_INFO_C)

#   define nh5ltget_attribute_ndims_c  H5_FC_FUNC_(h5ltget_attribute_ndims_c, H5LTGET_ATTRIBUTE_NDIMS_C)
#   define nh5ltget_attribute_info_c   H5_FC_FUNC_(h5ltget_attribute_info_c, H5LTGET_ATTRIBUTE_INFO_C)

/*-------------------------------------------------------------------------
 * Image
 *-------------------------------------------------------------------------
 */
#   define nh5immake_image_8bit_c      H5_FC_FUNC_(h5immake_image_8bit_c, H5IMMAKE_IMAGE_8BIT_C)
#   define nh5immake_image_24bit_c     H5_FC_FUNC_(h5immake_image_24bit_c, H5IMMAKE_IMAGE_24BIT_C)
#   define nh5imread_image_c           H5_FC_FUNC_(h5imread_image_c, H5IMREAD_IMAGE_C)
#   define nh5imget_image_info_c       H5_FC_FUNC_(h5imget_image_info_c, H5IMGET_IMAGE_INFO_C)
#   define nh5imis_image_c             H5_FC_FUNC_(h5imis_image_c, H5IMIS_IMAGE_C)
#   define nh5immake_palette_c         H5_FC_FUNC_(h5immake_palette_c, H5IMMAKE_PALETTE_C)
#   define nh5imlink_palette_c         H5_FC_FUNC_(h5imlink_palette_c, H5IMLINK_PALETTE_C)
#   define nh5imunlink_palette_c       H5_FC_FUNC_(h5imunlink_palette_c, H5IMUNLINK_PALETTE_C)
#   define nh5imget_npalettes_c        H5_FC_FUNC_(h5imget_npalettes_c, H5IMGET_NPALETTES_C)
#   define nh5imget_palette_info_c     H5_FC_FUNC_(h5imget_palette_info_c, H5IMGET_PALETTE_INFO_C)
#   define nh5imget_palette_c          H5_FC_FUNC_(h5imget_palette_c, H5IMGET_PALETTE_C)
#   define nh5imis_palette_c           H5_FC_FUNC_(h5imis_palette_c, H5IMIS_PALETTE_C)

/*-------------------------------------------------------------------------
 * Table
 *-------------------------------------------------------------------------
 */
#   define nh5tbmake_table_c           H5_FC_FUNC_(h5tbmake_table_c, H5TBMAKE_TABLE_C)
#   define nh5tbwrite_field_name_c     H5_FC_FUNC_(h5tbwrite_field_name_c, H5TBWRITE_FIELD_NAME_C)
#   define nh5tbread_field_name_c      H5_FC_FUNC_(h5tbread_field_name_c, H5TBREAD_FIELD_NAME_C)
#   define nh5tbwrite_field_index_c    H5_FC_FUNC_(h5tbwrite_field_index_c, H5TBWRITE_FIELD_INDEX_C)
#   define nh5tbread_field_index_c     H5_FC_FUNC_(h5tbread_field_index_c, H5TBREAD_FIELD_INDEX_C)
#   define nh5tbinsert_field_c         H5_FC_FUNC_(h5tbinsert_field_c, H5TBINSERT_FIELD_C)
#   define nh5tbdelete_field_c         H5_FC_FUNC_(h5tbdelete_field_c, H5TBDELETE_FIELD_C)
#   define nh5tbget_table_info_c       H5_FC_FUNC_(h5tbget_table_info_c, H5TBGET_TABLE_INFO_C)
#   define nh5tbget_field_info_c       H5_FC_FUNC_(h5tbget_field_info_c, H5TBGET_FIELD_INFO_C)

H5_DLL 
int_f
nh5ltmake_dataset_c (hid_t_f *loc_id, 
                     int_f *namelen,
                     _fcd name, 
                     int_f *rank, 
                     hsize_t_f *dims,
                     hid_t_f *type_id, 
                     void *buf);

H5_DLL 
int_f
nh5ltread_dataset_c (hid_t_f *loc_id, 
                     int_f *namelen,
                     _fcd name, 
                     hid_t_f *type_id, 
                     void *buf,
																					hsize_t_f *dims);


H5_DLL
int_f
nh5ltset_attribute_int_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
                          size_t_f *size,
																										void *buf);

H5_DLL
int_f
nh5ltset_attribute_float_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
                          size_t_f *size,
																										void *buf);

H5_DLL
int_f
nh5ltset_attribute_double_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
                          size_t_f *size,
																										void *buf);

H5_DLL
int_f
nh5ltset_attribute_string_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
																										void *buf);


H5_DLL
int_f
nh5ltget_attribute_int_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
                          void *buf);

H5_DLL
int_f
nh5ltget_attribute_float_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
                          void *buf);

H5_DLL
int_f
nh5ltget_attribute_double_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
                          void *buf);

H5_DLL
int_f
nh5ltget_attribute_string_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
                          void *buf);

H5_DLL
int_f
h5ltget_dataset_ndims_c(hid_t_f *loc_id, 
                        int_f *namelen,
                       _fcd name, 
                       int_f *rank);

H5_DLL
int_f
nh5ltfind_dataset_c(hid_t_f *loc_id, 
                    int_f *namelen,
                    _fcd name);

H5_DLL
int_f
nh5ltget_dataset_info_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name,
																								hsize_t_f *dims,
                        int_f *type_class,
																								size_t_f *type_size);

H5_DLL
int_f
nh5ltget_attribute_ndims_c(hid_t_f *loc_id, 
                          int_f *namelen,
                          _fcd dsetname, 
																										int_f *attrnamelen,
                          _fcd attrname, 
																					     int_f *rank);
H5_DLL
int_f
nh5ltget_attribute_info_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name,
																								int_f *attrnamelen,
                        _fcd attrname, 
																								hsize_t_f *dims,
                        int_f *type_class,
																								size_t_f *type_size);

H5_DLL
int_f
nh5ltmake_dataset_string_c (hid_t_f *loc_id, 
                            int_f *namelen,
                            _fcd name, 
                            char *buf);

H5_DLL
int_f
nh5ltread_dataset_string_c (hid_t_f *loc_id, 
                            int_f *namelen,
                            _fcd name, 
                            char *buf);

/*-------------------------------------------------------------------------
 * Image
 *-------------------------------------------------------------------------
 */

H5_DLL
int_f
nh5immake_image_8bit_c (hid_t_f *loc_id, 
                       int_f *namelen,
                       _fcd name, 
                       hsize_t_f *width,
                       hsize_t_f *height, 
                       void *buf);
H5_DLL
int_f
nh5imread_image_c (hid_t_f *loc_id, 
                   int_f *namelen,
                   _fcd name, 
                   void *buf);

H5_DLL
int_f
nh5immake_image_24bit_c (hid_t_f *loc_id, 
                         int_f *namelen,
                         _fcd name,
																										int_f *ilen,
                         _fcd il, 
                         hsize_t_f *width,
                         hsize_t_f *height,
																								 void *buf);
H5_DLL
int_f
nh5imget_image_info_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name,
																								hsize_t_f *width,
																								hsize_t_f *height,
																								hsize_t_f *planes,
																								hsize_t_f *npals,
                        int_f *ilen,
                       _fcd interlace);


H5_DLL
int_f
nh5imis_image_c(hid_t_f *loc_id, 
                int_f *namelen,
                _fcd name);


H5_DLL
int_f
nh5immake_palette_c (hid_t_f *loc_id, 
                     int_f *namelen,
                     _fcd name, 
                     hsize_t_f *dims,
                     void *buf);

H5_DLL
int_f
nh5imlink_palette_c (hid_t_f *loc_id, 
                     int_f *namelen,
                     _fcd name, 
                     int_f *ilen,
                     _fcd pal_name);

H5_DLL
int_f
nh5imunlink_palette_c (hid_t_f *loc_id, 
                     int_f *namelen,
                     _fcd name, 
                     int_f *ilen,
                     _fcd pal_name);

H5_DLL
int_f
nh5imget_npalettes_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name,
																								hsize_t_f *npals);


H5_DLL
int_f
nh5imget_palette_info_c(hid_t_f *loc_id, 
                        int_f *namelen,
                       _fcd name,
																							int_f *pal_number,
																					  hsize_t_f *dims);

H5_DLL
int_f
nh5imget_palette_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name,
																							 int_f *pal_number,
																					   void *buf);

H5_DLL
int_f
nh5imis_palette_c(hid_t_f *loc_id, 
                  int_f *namelen,
                 _fcd name);



/*-------------------------------------------------------------------------
 * Table
 *-------------------------------------------------------------------------
 */

H5_DLL
int_f
nh5tbmake_table_c(int_f *namelen1,
                  _fcd name1,
																		hid_t_f *loc_id, 
                  int_f *namelen,
                  _fcd name, 
                  hsize_t_f *nfields,
                  hsize_t_f *nrecords,
																		size_t_f *type_size,
																		size_t_f *field_offset,
																		hid_t_f *field_types,
																		hsize_t_f *chunk_size,
																		int_f *compress,
																		int_f *len,       /* field_names lenghts */
																		_fcd buf);          /* field_names */

H5_DLL
int_f
nh5tbwrite_field_name_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name, 
																		      int_f *namelen1,
                        _fcd field_name,
                        hsize_t_f *start,
                        hsize_t_f *nrecords,
                        size_t_f *type_size,
                        void *buf);

H5_DLL
int_f
nh5tbread_field_name_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name, 
																		      int_f *namelen1,
                        _fcd field_name,
                        hsize_t_f *start,
                        hsize_t_f *nrecords,
                        size_t_f *type_size,
                        void *buf);

H5_DLL
int_f
nh5tbwrite_field_index_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name, 
                        int_f *field_index,
                        hsize_t_f *start,
                        hsize_t_f *nrecords,
                        size_t_f *type_size,
                        void *buf);

H5_DLL
int_f
nh5tbread_field_index_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name, 
                        int_f *field_index,
                        hsize_t_f *start,
                        hsize_t_f *nrecords,
                        size_t_f *type_size,
                        void *buf);

H5_DLL
int_f
nh5tbinsert_field_c(hid_t_f *loc_id, 
                    int_f *namelen,
                    _fcd name,
																				int_f *namelen1,
                    _fcd field_name,
                    hid_t_f *field_type,
                    int_f *position,
                    void *buf);

H5_DLL
int_f
nh5tbdelete_field_c(hid_t_f *loc_id, 
                    int_f *namelen,
                    _fcd name,
																				int_f *namelen1,
																				_fcd field_name);


H5_DLL
int_f
nh5tbget_table_info_c(hid_t_f *loc_id, 
                        int_f *namelen,
                        _fcd name, 
                        hsize_t_f *nfields,
                        hsize_t_f *nrecords);

H5_DLL
int_f
nh5tbget_field_info_c(hid_t_f *loc_id, 
                  int_f *namelen,
                  _fcd name, 
                  hsize_t_f *nfields,
                  size_t_f *field_sizes,
                  size_t_f *field_offsets,
                  size_t_f *type_size,
																		int_f *namelen2,       /* field_names lenghts */
                  _fcd field_names) ;     /* field_names */




#endif /* _H5LTf90proto_H */