HL-HDF
hlhdf_compound_utils.c File Reference

Utility functions for defining compound types through the HDF5-API. More...

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

Functions

hid_t createCompoundType (size_t size)
 Creates a new compound type.
 
herr_t addAttributeToCompoundType (hid_t loc_id, const char *name, size_t offset, hid_t type_id)
 Adds one attribute to a compound type.
 
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.
 
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.
 
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 specifier.
 

Detailed Description

Utility functions for defining compound types through the HDF5-API.

These functions are going to change in the near future but are here for backward compatibility.

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