HDF5 Extras  0.0.1
Convenience Functions for using HDF5 Better
H5ATTR.h
Go to the documentation of this file.
1 
2 /****************************************************************************
3  * NCSA HDF *
4  * Scientific Data Technologies *
5  * National Center for Supercomputing Applications *
6  * University of Illinois at Urbana-Champaign *
7  * 605 E. Springfield, Champaign IL 61820 *
8  * *
9  * For conditions of distribution and use, see the accompanying *
10  * hdf/COPYING file. *
11  * *
12  * Modified versions of H5LT for getting and setting attributes for open
13  * groups and leaves.
14  * F. Alted 2005/09/29
15  * *
16  ****************************************************************************/
17 #ifndef H5ATTR_H_
18 #define H5ATTR_H_
19 
20 #include <string.h>
21 #include <stdlib.h>
22 
23 #include <hdf5.h>
24 #include "bstrlib.h"
25 #include "gmalloc.h"
26 
27 #include "globals.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 /*-------------------------------------------------------------------------
38  *
39  * Set & get attribute functions
40  *
41  *-------------------------------------------------------------------------
42  */
43 
44 herr_t H5ATTRset_attribute( hid_t obj_id,
45  const_bstring attr_name,
46  hid_t type_id,
47  size_t rank,
48  hsize_t *dims,
49  const_bstring attr_data );
50 
51 herr_t H5ATTRset_attribute_string( hid_t obj_id,
52  const_bstring attr_name,
53  const_bstring attr_data,
54  hsize_t attr_size,
55  int cset );
56 
57 herr_t H5ATTRget_attribute( hid_t loc_id,
58  const_bstring attr_name,
59  hid_t type_id,
60  void *data );
61 
62 hsize_t H5ATTRget_attribute_string( hid_t obj_id,
63  const_bstring attr_name,
64  bstring data,
65  int *cset );
66 
67 hsize_t H5ATTRget_attribute_vlen_string_array( hid_t obj_id,
68  const char *attr_name,
69  char ***data,
70  int *cset );
71 
72 /*-------------------------------------------------------------------------
73  *
74  * Query attribute functions
75  *
76  *-------------------------------------------------------------------------
77  */
78 
79 
80 herr_t H5ATTRfind_attribute( hid_t loc_id,
81  const_bstring attr_name );
82 
83 herr_t H5ATTRget_type_ndims( hid_t loc_id,
84  const_bstring attr_name,
85  hid_t *type_id,
86  H5T_class_t *class_id,
87  size_t *type_size,
88  int *rank );
89 
90 herr_t H5ATTRget_dims( hid_t loc_id,
91  const_bstring attr_name,
92  hsize_t *dims );
93 
94 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif
hsize_t H5ATTRget_attribute_string(hid_t obj_id, const_bstring attr_name, bstring data, int *cset)
H5ATTRget_attribute_string gets the value of a string attribute.
Definition: H5ATTR.c:448
herr_t H5ATTRset_attribute_string(hid_t obj_id, const_bstring attr_name, const_bstring attr_data, hsize_t attr_size, int cset)
H5ATTRset_attribute_string sets the value of a string attribute.
Definition: H5ATTR.c:262
Definition: bstrlib.h:200