Please, help us to better serve our user community by answering the following short survey: https://www.hdfgroup.org/website-survey/

| HDF 4.3.0 API Reference |

Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations
hdf.h File Reference
`#include "h4config.h"`
`#include <inttypes.h>`
`#include "hlimits.h"`
`#include "hntdefs.h"`
`#include "htags.h"`
`#include "H4api_adpt.h"`
`#include "hbitio.h"`
`#include "hcomp.h"`
`#include "herr.h"`
`#include "hproto.h"`
`#include "vg.h"`
`#include "mfgr.h"`

## Data Structures
struct | DFdi
struct | hdf_ntinfo_t

## Macros
#define | _fcdtocp(desc) (desc)
#define | DFACC_READ 1
#define | DFACC_WRITE 2
#define | DFACC_CREATE 4
#define | DFACC_ALL 7
#define | DFACC_RDONLY 1
#define | DFACC_RDWR 3
#define | DFACC_CLOBBER 4
#define | DFACC_BUFFER 8 /* buffer the access to this AID */
#define | DFACC_APPENDABLE 0x10 /* make this AID appendable */
#define | DFACC_CURRENT 0x20 /* start looking for a tag/ref from the current */
#define | DFACC_OLD 1 /* for accessing existing ext. element file */
#define | CACHE_ALL_FILES (-2)
#define | DFACC_DEFAULT 000
#define | DFACC_SERIAL 001
#define | DFACC_PARALLEL 011
#define | DF_START 0
#define | DF_CURRENT 1
#define | DF_END 2
#define | DF_FORWARD 1
#define | DF_BACKWARD 2
#define | SUCCEED 0
#define | FAIL (-1)
#define | STREQ(s, t) (strcmp((s), (t)) == 0)
#define | NSTREQ(s, t, n) (strncmp((s), (t), (n)) == 0)
#define | FULL_INTERLACE 0
#define | NO_INTERLACE 1
#define | HDFopen(f, a, d) Hopen((f), (a), (d))
#define | HDFclose(f) Hclose((f))
#define | Vstart(f) Vinitialize((f))
#define | Vend(f) Vfinish((f))
#define | HDgettagname(tag) HDgettagdesc(tag)
#define | MP_PAGEALL 0x01 /* page the whole file i.e. no limit on 'maxcache'*/
#define | HDmalloc(s) malloc(s)
#define | HDcalloc(a, b) calloc(a, b)
#define | HDfree(p) free(p)
#define | HDrealloc(p, s) realloc(p, s)
#define | HDfreenclear(p)
#define | HDstrcat(s1, s2) (strcat((s1), (s2)))
#define | HDstrcmp(s, t) (strcmp((s), (t)))
#define | HDstrcpy(s, d) (strcpy((s), (d)))
#define | HDstrlen(s) (strlen((const char *)(s)))
#define | HDstrncmp(s1, s2, n) (strncmp((s1), (s2), (n)))
#define | HDstrncpy(s1, s2, n) (strncpy((s1), (s2), (n)))
#define | HDstrchr(s, c) (strchr((s), (c)))
#define | HDstrrchr(s, c) (strrchr((s), (c)))
#define | HDstrtol(s, e, b) (strtol((s), (e), (b)))

## Typedefs
typedef float | float32
typedef double | float64
typedef char | char8
typedef unsigned char | uchar8
typedef char * | _fcd
typedef int8_t | int8
typedef uint8_t | uint8
typedef int16_t | int16
typedef uint16_t | uint16
typedef int32_t | int32
typedef uint32_t | uint32
typedef int | intn
typedef unsigned int | uintn
typedef void | VOID
typedef void * | VOIDP
typedef int | intf
typedef int32 | HFILEID
typedef intn(* | hdf_termfunc_t) (void)

## Enumerations
enum | ann_type { AN_UNDEF = -1 , AN_DATA_LABEL = 0 , AN_DATA_DESC , AN_FILE_LABEL , AN_FILE_DESC }

## Macro Definition Documentation

## ◆ _fcdtocp

#define _fcdtocp | ( |  | desc | ) | (desc)

## ◆ CACHE_ALL_FILES

#define CACHE_ALL_FILES (-2)

## ◆ DF_BACKWARD

#define DF_BACKWARD 2

## ◆ DF_CURRENT

#define DF_CURRENT 1

## ◆ DF_END

#define DF_END 2

## ◆ DF_FORWARD

#define DF_FORWARD 1

## ◆ DF_START

#define DF_START 0

## ◆ DFACC_ALL

#define DFACC_ALL 7

## ◆ DFACC_APPENDABLE

#define DFACC_APPENDABLE 0x10 /* make this AID appendable */

## ◆ DFACC_BUFFER

#define DFACC_BUFFER 8 /* buffer the access to this AID */

## ◆ DFACC_CLOBBER

#define DFACC_CLOBBER 4

## ◆ DFACC_CREATE

#define DFACC_CREATE 4

## ◆ DFACC_CURRENT

#define DFACC_CURRENT 0x20 /* start looking for a tag/ref from the current */

## ◆ DFACC_DEFAULT

#define DFACC_DEFAULT 000

## ◆ DFACC_OLD

#define DFACC_OLD 1 /* for accessing existing ext. element file */

## ◆ DFACC_PARALLEL

#define DFACC_PARALLEL 011

## ◆ DFACC_RDONLY

#define DFACC_RDONLY 1

## ◆ DFACC_RDWR

#define DFACC_RDWR 3

## ◆ DFACC_READ

#define DFACC_READ 1

## ◆ DFACC_SERIAL

#define DFACC_SERIAL 001

## ◆ DFACC_WRITE

#define DFACC_WRITE 2

## ◆ FAIL

#define FAIL (-1)

## ◆ FULL_INTERLACE

#define FULL_INTERLACE 0

## ◆ HDcalloc

#define HDcalloc | ( |  | a,
|  |  | b ) calloc(a, b)

## ◆ HDFclose

#define HDFclose | ( |  | f | ) | Hclose((f))

## ◆ HDFopen

#define HDFopen | ( |  | f,
|  |  | a,
|  |  | d ) Hopen((f), (a), (d))

## ◆ HDfree

#define HDfree | ( |  | p | ) | free(p)

## ◆ HDfreenclear

#define HDfreenclear | ( |  | p | ) |

Value:
{ \
free(p); \
(p) = NULL; \
}

## ◆ HDgettagname

#define HDgettagname | ( |  | tag | ) | HDgettagdesc(tag)

## ◆ HDmalloc

#define HDmalloc | ( |  | s | ) | malloc(s)

## ◆ HDrealloc

#define HDrealloc | ( |  | p,
|  |  | s ) realloc(p, s)

## ◆ HDstrcat

#define HDstrcat | ( |  | s1,
|  |  | s2 ) (strcat((s1), (s2)))

## ◆ HDstrchr

#define HDstrchr | ( |  | s,
|  |  | c ) (strchr((s), (c)))

## ◆ HDstrcmp

#define HDstrcmp | ( |  | s,
|  |  | t ) (strcmp((s), (t)))

## ◆ HDstrcpy

#define HDstrcpy | ( |  | s,
|  |  | d ) (strcpy((s), (d)))

## ◆ HDstrlen

#define HDstrlen | ( |  | s | ) | (strlen((const char *)(s)))

## ◆ HDstrncmp

#define HDstrncmp | ( |  | s1,
|  |  | s2,
|  |  | n ) (strncmp((s1), (s2), (n)))

## ◆ HDstrncpy

#define HDstrncpy | ( |  | s1,
|  |  | s2,
|  |  | n ) (strncpy((s1), (s2), (n)))

## ◆ HDstrrchr

#define HDstrrchr | ( |  | s,
|  |  | c ) (strrchr((s), (c)))

## ◆ HDstrtol

#define HDstrtol | ( |  | s,
|  |  | e,
|  |  | b ) (strtol((s), (e), (b)))

## ◆ MP_PAGEALL

#define MP_PAGEALL 0x01 /* page the whole file i.e. no limit on 'maxcache'*/

## ◆ NO_INTERLACE

#define NO_INTERLACE 1

## ◆ NSTREQ

#define NSTREQ | ( |  | s,
|  |  | t,
|  |  | n ) (strncmp((s), (t), (n)) == 0)

## ◆ STREQ

#define STREQ | ( |  | s,
|  |  | t ) (strcmp((s), (t)) == 0)

## ◆ SUCCEED

#define SUCCEED 0

## ◆ Vend

#define Vend | ( |  | f | ) | Vfinish((f))

## ◆ Vstart

#define Vstart | ( |  | f | ) | Vinitialize((f))

## Typedef Documentation

## ◆ _fcd

typedef char* _fcd

## ◆ char8

typedef char char8

## ◆ float32

typedef float float32

## ◆ float64

typedef double float64

## ◆ hdf_termfunc_t

typedef intn(* hdf_termfunc_t) (void)

## ◆ HFILEID

typedef int32 HFILEID

## ◆ int16

typedef int16_t int16

## ◆ int32

typedef int32_t int32

## ◆ int8

typedef int8_t int8

## ◆ intf

typedef int intf

## ◆ intn

typedef int intn

## ◆ uchar8

typedef unsigned char uchar8

## ◆ uint16

typedef uint16_t uint16

## ◆ uint32

typedef uint32_t uint32

## ◆ uint8

typedef uint8_t uint8

## ◆ uintn

typedef unsigned int uintn

## ◆ VOID

typedef void VOID

## ◆ VOIDP

typedef void* VOIDP

## Enumeration Type Documentation

## ◆ ann_type

enum ann_type

Enumerator
AN_UNDEF |
AN_DATA_LABEL |
AN_DATA_DESC |
AN_FILE_LABEL |
AN_FILE_DESC |