HL-HDF
hlhdf_compound.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
26#ifndef HLHDF_COMPOUND_H
27#define HLHDF_COMPOUND_H
28#include "hlhdf_types.h"
29
36
43
56 size_t offset,
57 const char* format,
58 size_t size,
59 int ndims,
60 size_t* dims);
61
68
77 HL_CompoundTypeAttribute* attribute);
78
86
87#endif
void freeHL_CompoundTypeAttribute(HL_CompoundTypeAttribute *attr)
Frees one compound type attribute.
Definition hlhdf_compound.c:91
void freeHL_CompoundTypeDescription(HL_CompoundTypeDescription *typelist)
Frees the compound type, including all members.
Definition hlhdf_compound.c:100
HL_CompoundTypeDescription * newHL_CompoundTypeDescription(void)
Creates a compound type description list.
Definition hlhdf_compound.c:65
int addHL_CompoundTypeAttribute(HL_CompoundTypeDescription *typelist, HL_CompoundTypeAttribute *attribute)
Adds a compound type attribute to the type description.
Definition hlhdf_compound.c:120
HL_CompoundTypeAttribute * newHL_CompoundTypeAttribute(char *attrname, size_t offset, const char *format, size_t size, int ndims, size_t *dims)
Creates a compound attribute member node.
Definition hlhdf_compound.c:33
HL_CompoundTypeDescription * copyHL_CompoundTypeDescription(HL_CompoundTypeDescription *descr)
Copies the compound type descriptor.
Definition hlhdf_compound.c:151
Type definitions that are used in HLHDF.
This type is designed to describe an individual node with a complicated structure,...
Definition hlhdf_types.h:261
This type is a list of HL_CompoundTypeAttributes.
Definition hlhdf_types.h:276