HL-HDF
hlhdf_compound.c File Reference

Functions for working with compound types. More...

#include "hlhdf.h"
#include "hlhdf_alloc.h"
#include "hlhdf_defines_private.h"
#include "hlhdf_debug.h"
#include <string.h>
#include <stdlib.h>

Functions

HL_CompoundTypeAttributenewHL_CompoundTypeAttribute (char *attrname, size_t offset, const char *format, size_t size, int ndims, size_t *dims)
 Creates a compound attribute member node.
 
HL_CompoundTypeDescriptionnewHL_CompoundTypeDescription (void)
 Creates a compound type description list.
 
void freeHL_CompoundTypeAttribute (HL_CompoundTypeAttribute *attr)
 Frees one compound type attribute.
 
void freeHL_CompoundTypeDescription (HL_CompoundTypeDescription *typelist)
 Frees the compound type, including all members.
 
int addHL_CompoundTypeAttribute (HL_CompoundTypeDescription *typelist, HL_CompoundTypeAttribute *attribute)
 Adds a compound type attribute to the type description.
 
HL_CompoundTypeDescriptioncopyHL_CompoundTypeDescription (HL_CompoundTypeDescription *descr)
 Copies the compound type descriptor.
 

Detailed Description

Functions for working with compound types.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2009-06-11