HL-HDF
hlhdf_defines_private.h File Reference

Useful macros that are used internally in HLHDF. More...

#include "hdf5.h"

Go to the source code of this file.

Macros

#define HL_H5G_CLOSE(x)   if (x>=0) {H5Gclose(x); x=-1;}
 Closes a H5 group identifier.
 
#define HL_H5D_CLOSE(x)   if (x>=0) {H5Dclose(x); x=-1;}
 Closes a H5 data set identifier.
 
#define HL_H5O_CLOSE(x)   if (x>=0) {H5Oclose(x); x=-1;}
 Closes a group, dataset or named datatype.
 
#define HL_H5A_CLOSE(x)   if (x>=0) {H5Aclose(x); x=-1;}
 Closes a H5 attribute identifier.
 
#define HL_H5F_CLOSE(x)   if (x>=0) {H5Fclose(x); x=-1;}
 Closes a H5 file identifier.
 
#define HL_H5T_CLOSE(x)   if (x>=0) {H5Tclose(x); x=-1;}
 Closes a H5 type identifier.
 
#define HL_H5S_CLOSE(x)   if (x>=0) {H5Sclose(x); x=-1;}
 Closes a H5 space identifier.
 
#define HL_H5P_CLOSE(x)   if (x>=0) {H5Pclose(x); x=-1;}
 Closes a H5 property identifier.
 
#define HLHDF_ALIGN(A, Z)   ((((A)+(Z)-1)/(Z))*(Z))
 Used to align the offsets when creating a compound type.
 
#define DEFAULT_SIZE_NODELIST   20
 Default number of nodes in a HDF5 file.
 

Detailed Description

Useful macros that are used internally in HLHDF.

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

Macro Definition Documentation

◆ DEFAULT_SIZE_NODELIST

#define DEFAULT_SIZE_NODELIST   20

Default number of nodes in a HDF5 file.

◆ HL_H5A_CLOSE

#define HL_H5A_CLOSE ( x)    if (x>=0) {H5Aclose(x); x=-1;}

Closes a H5 attribute identifier.

◆ HL_H5D_CLOSE

#define HL_H5D_CLOSE ( x)    if (x>=0) {H5Dclose(x); x=-1;}

Closes a H5 data set identifier.

◆ HL_H5F_CLOSE

#define HL_H5F_CLOSE ( x)    if (x>=0) {H5Fclose(x); x=-1;}

Closes a H5 file identifier.

◆ HL_H5G_CLOSE

#define HL_H5G_CLOSE ( x)    if (x>=0) {H5Gclose(x); x=-1;}

Closes a H5 group identifier.

◆ HL_H5O_CLOSE

#define HL_H5O_CLOSE ( x)    if (x>=0) {H5Oclose(x); x=-1;}

Closes a group, dataset or named datatype.

◆ HL_H5P_CLOSE

#define HL_H5P_CLOSE ( x)    if (x>=0) {H5Pclose(x); x=-1;}

Closes a H5 property identifier.

◆ HL_H5S_CLOSE

#define HL_H5S_CLOSE ( x)    if (x>=0) {H5Sclose(x); x=-1;}

Closes a H5 space identifier.

◆ HL_H5T_CLOSE

#define HL_H5T_CLOSE ( x)    if (x>=0) {H5Tclose(x); x=-1;}

Closes a H5 type identifier.

◆ HLHDF_ALIGN

#define HLHDF_ALIGN ( A,
Z )   ((((A)+(Z)-1)/(Z))*(Z))

Used to align the offsets when creating a compound type.