NEP 4.0.0
NetCDF Expansion Pack
Loading...
Searching...
No Matches
Functions
nxt4type.c File Reference

NEXTCDF-4 user-defined types and NC_STRING support. More...

#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "nxt4internal.h"

Functions

int NEXTCDF4_get_type_size (nc_type xtype, size_t *sizep)
 
static int check_type_write (NEXTCDF4_FILE_INFO_T *file, NC_GRP_INFO_T *grp)
 
static int get_grp_and_file (int ncid, NC_FILE_INFO_T **h5, NC_GRP_INFO_T **grp, NEXTCDF4_FILE_INFO_T **filep)
 
static hid_t base_hdf_type (nc_type xtype)
 
static int attach_hdf_type (NC_TYPE_INFO_T *type, hid_t hdf)
 
static int commit_hdf_type (NC_GRP_INFO_T *grp, NC_TYPE_INFO_T *type, hid_t hdf)
 
int NEXTCDF4_def_compound (int ncid, size_t size, const char *name, nc_type *typeidp)
 
int NEXTCDF4_insert_compound (int ncid, nc_type typeid, const char *name, size_t offset, nc_type xtype)
 
int NEXTCDF4_insert_array_compound (int ncid, nc_type typeid, const char *name, size_t offset, nc_type xtype, int ndims, const int *dim_sizesp)
 
int NEXTCDF4_inq_compound_field (int ncid, nc_type typeid, int fieldid, char *name, size_t *offsetp, nc_type *fieldtypep, int *ndimsp, int *dim_sizesp)
 
int NEXTCDF4_inq_compound_fieldindex (int ncid, nc_type typeid, const char *name, int *fieldidxp)
 
int NEXTCDF4_def_vlen (int ncid, const char *name, nc_type base_typeid, nc_type *typeidp)
 
int NEXTCDF4_put_vlen_element (int ncid, int typeid, void *vlen_element, size_t len, const void *data)
 
int NEXTCDF4_get_vlen_element (int ncid, int typeid, const void *vlen_element, size_t *lenp, void *data)
 
int NEXTCDF4_def_enum (int ncid, nc_type base_typeid, const char *name, nc_type *typeidp)
 
int NEXTCDF4_insert_enum (int ncid, nc_type typeid, const char *name, const void *value)
 
int NEXTCDF4_inq_enum_member (int ncid, nc_type typeid, int idx, char *name, void *value)
 
int NEXTCDF4_inq_enum_ident (int ncid, nc_type typeid, long long value, char *identifier)
 
int NEXTCDF4_def_opaque (int ncid, size_t size, const char *name, nc_type *typeidp)
 
static int commit_one_type (NC_GRP_INFO_T *grp, NC_TYPE_INFO_T *type)
 
static int commit_types_in_grp (NC_GRP_INFO_T *grp)
 
int NEXTCDF4_write_types (NC_FILE_INFO_T *h5)
 
int NEXTCDF4_inq_user_type (int ncid, nc_type typeid, char *name, size_t *sizep, nc_type *base_typep, size_t *nfieldsp, int *classp)
 
int NEXTCDF4_inq_typeid (int ncid, const char *name, nc_type *typeidp)
 
int NEXTCDF4_inq_type_equal (int ncid1, nc_type typeid1, int ncid2, nc_type typeid2, int *equalp)
 
int NEXTCDF4_inq_typeids (int ncid, int *ntypes, int *typeids)
 

Detailed Description

NEXTCDF-4 user-defined types and NC_STRING support.

Author
Edward Hartnett
Date
2026-08-29

Function Documentation

◆ attach_hdf_type()

static int attach_hdf_type ( NC_TYPE_INFO_T *  type,
hid_t  hdf 
)
static

◆ base_hdf_type()

static hid_t base_hdf_type ( nc_type  xtype)
static

◆ check_type_write()

static int check_type_write ( NEXTCDF4_FILE_INFO_T file,
NC_GRP_INFO_T *  grp 
)
static

◆ commit_hdf_type()

static int commit_hdf_type ( NC_GRP_INFO_T *  grp,
NC_TYPE_INFO_T *  type,
hid_t  hdf 
)
static

◆ commit_one_type()

static int commit_one_type ( NC_GRP_INFO_T *  grp,
NC_TYPE_INFO_T *  type 
)
static

◆ commit_types_in_grp()

static int commit_types_in_grp ( NC_GRP_INFO_T *  grp)
static

◆ get_grp_and_file()

static int get_grp_and_file ( int  ncid,
NC_FILE_INFO_T **  h5,
NC_GRP_INFO_T **  grp,
NEXTCDF4_FILE_INFO_T **  filep 
)
static

◆ NEXTCDF4_def_compound()

int NEXTCDF4_def_compound ( int  ncid,
size_t  size,
const char *  name,
nc_type *  typeidp 
)

◆ NEXTCDF4_def_enum()

int NEXTCDF4_def_enum ( int  ncid,
nc_type  base_typeid,
const char *  name,
nc_type *  typeidp 
)

◆ NEXTCDF4_def_opaque()

int NEXTCDF4_def_opaque ( int  ncid,
size_t  size,
const char *  name,
nc_type *  typeidp 
)

◆ NEXTCDF4_def_vlen()

int NEXTCDF4_def_vlen ( int  ncid,
const char *  name,
nc_type  base_typeid,
nc_type *  typeidp 
)

◆ NEXTCDF4_get_type_size()

int NEXTCDF4_get_type_size ( nc_type  xtype,
size_t *  sizep 
)

◆ NEXTCDF4_get_vlen_element()

int NEXTCDF4_get_vlen_element ( int  ncid,
int  typeid,
const void *  vlen_element,
size_t *  lenp,
void *  data 
)

◆ NEXTCDF4_inq_compound_field()

int NEXTCDF4_inq_compound_field ( int  ncid,
nc_type  typeid,
int  fieldid,
char *  name,
size_t *  offsetp,
nc_type *  fieldtypep,
int *  ndimsp,
int *  dim_sizesp 
)

◆ NEXTCDF4_inq_compound_fieldindex()

int NEXTCDF4_inq_compound_fieldindex ( int  ncid,
nc_type  typeid,
const char *  name,
int *  fieldidxp 
)

◆ NEXTCDF4_inq_enum_ident()

int NEXTCDF4_inq_enum_ident ( int  ncid,
nc_type  typeid,
long long  value,
char *  identifier 
)

◆ NEXTCDF4_inq_enum_member()

int NEXTCDF4_inq_enum_member ( int  ncid,
nc_type  typeid,
int  idx,
char *  name,
void *  value 
)

◆ NEXTCDF4_inq_type_equal()

int NEXTCDF4_inq_type_equal ( int  ncid1,
nc_type  typeid1,
int  ncid2,
nc_type  typeid2,
int *  equalp 
)

◆ NEXTCDF4_inq_typeid()

int NEXTCDF4_inq_typeid ( int  ncid,
const char *  name,
nc_type *  typeidp 
)

◆ NEXTCDF4_inq_typeids()

int NEXTCDF4_inq_typeids ( int  ncid,
int *  ntypes,
int *  typeids 
)

◆ NEXTCDF4_inq_user_type()

int NEXTCDF4_inq_user_type ( int  ncid,
nc_type  typeid,
char *  name,
size_t *  sizep,
nc_type *  base_typep,
size_t *  nfieldsp,
int *  classp 
)

◆ NEXTCDF4_insert_array_compound()

int NEXTCDF4_insert_array_compound ( int  ncid,
nc_type  typeid,
const char *  name,
size_t  offset,
nc_type  xtype,
int  ndims,
const int *  dim_sizesp 
)

◆ NEXTCDF4_insert_compound()

int NEXTCDF4_insert_compound ( int  ncid,
nc_type  typeid,
const char *  name,
size_t  offset,
nc_type  xtype 
)

◆ NEXTCDF4_insert_enum()

int NEXTCDF4_insert_enum ( int  ncid,
nc_type  typeid,
const char *  name,
const void *  value 
)

◆ NEXTCDF4_put_vlen_element()

int NEXTCDF4_put_vlen_element ( int  ncid,
int  typeid,
void *  vlen_element,
size_t  len,
const void *  data 
)

◆ NEXTCDF4_write_types()

int NEXTCDF4_write_types ( NC_FILE_INFO_T *  h5)