HL-HDF
hlhdf_compound_utils.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------
2Copyright (C) 2009 Swedish Meteorological and Hydrological Institute, SMHI,
3
4This file is part of HLHDF.
5
6HLHDF is free software: you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11HLHDF is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License
17along with HLHDF. If not, see <http://www.gnu.org/licenses/>.
18------------------------------------------------------------------------*/
19
28#ifndef HLHDF_COMPOUND_UTILS_H
29#define HLHDF_COMPOUND_UTILS_H
30
37hid_t createCompoundType(size_t size);
38
48herr_t addAttributeToCompoundType(hid_t loc_id, const char* name, size_t offset,hid_t type_id);
49
60herr_t addAttributeToCompoundType_fmt(hid_t loc_id, const char* name, size_t offset,const char* fmt);
61
73herr_t addArrayToCompoundType(hid_t loc_id, const char* name, size_t offset, int ndims,size_t* dims,hid_t type_id);
74
87herr_t addArrayToCompoundType_fmt(hid_t loc_id, const char* name, size_t offset, \
88 int ndims, size_t* dims, const char* fmt);
89
90#endif
herr_t addArrayToCompoundType(hid_t loc_id, const char *name, size_t offset, int ndims, size_t *dims, hid_t type_id)
Adds an array attribute to a compound type.
Definition hlhdf_compound_utils.c:77
herr_t addArrayToCompoundType_fmt(hid_t loc_id, const char *name, size_t offset, int ndims, size_t *dims, const char *fmt)
Same as addArrayToCompoundType, but instead of a type as hid_t, the format is specified with a format...
Definition hlhdf_compound_utils.c:105
herr_t addAttributeToCompoundType_fmt(hid_t loc_id, const char *name, size_t offset, const char *fmt)
Same as addAttributeToCompoundType, but instead of a type as hid_t a format specifier is provided.
Definition hlhdf_compound_utils.c:60
hid_t createCompoundType(size_t size)
Creates a new compound type.
Definition hlhdf_compound_utils.c:37
herr_t addAttributeToCompoundType(hid_t loc_id, const char *name, size_t offset, hid_t type_id)
Adds one attribute to a compound type.
Definition hlhdf_compound_utils.c:48