NetCDF  4.9.2
nc4internal.c File Reference
#include "config.h"
#include "netcdf.h"
#include "netcdf_filter.h"
#include "netcdf_meta.h"
#include "nc4internal.h"
#include "nc.h"
#include "ncdispatch.h"
#include "ncutf8.h"
#include <stdarg.h>
#include "ncrc.h"
Include dependency graph for nc4internal.c:

Go to the source code of this file.

Macros

#define NRESERVED   (sizeof(NC_reserved) / sizeof(NC_reservedatt)) /*|NC_reservedatt|*/
 

Functions

static int dim_free (NC_DIM_INFO_T *dim)
 
static void field_free (NC_FIELD_INFO_T *field)
 
int nc4_att_free (NC_ATT_INFO_T *att)
 
int nc4_att_list_add (NCindex *list, const char *name, NC_ATT_INFO_T **att)
 
int nc4_att_list_del (NCindex *list, NC_ATT_INFO_T *att)
 
int nc4_check_dup_name (NC_GRP_INFO_T *grp, char *name)
 
int nc4_check_name (const char *name, char *norm_name)
 
int nc4_dim_list_add (NC_GRP_INFO_T *grp, const char *name, size_t len, int assignedid, NC_DIM_INFO_T **dim)
 
int nc4_dim_list_del (NC_GRP_INFO_T *grp, NC_DIM_INFO_T *dim)
 
int nc4_enum_member_add (NC_TYPE_INFO_T *parent, size_t size, const char *name, const void *value)
 
int nc4_field_list_add (NC_TYPE_INFO_T *parent, const char *name, size_t offset, nc_type xtype, int ndims, const int *dim_sizesp)
 
int nc4_file_change_ncid (int ncid, unsigned short new_ncid_index)
 
int nc4_file_list_add (int ncid, const char *path, int mode, void **dispatchdata)
 
int nc4_file_list_del (int ncid)
 
int nc4_file_list_get (int ncid, char **path, int *mode, void **dispatchdata)
 
int nc4_find_dim (NC_GRP_INFO_T *grp, int dimid, NC_DIM_INFO_T **dim, NC_GRP_INFO_T **dim_grp)
 
int nc4_find_grp_att (NC_GRP_INFO_T *grp, int varid, const char *name, int attnum, NC_ATT_INFO_T **att)
 
int nc4_find_grp_h5 (int ncid, NC_GRP_INFO_T **grp, NC_FILE_INFO_T **h5)
 
int nc4_find_grp_h5_var (int ncid, int varid, NC_FILE_INFO_T **h5, NC_GRP_INFO_T **grp, NC_VAR_INFO_T **var)
 
int nc4_find_nc4_grp (int ncid, NC_GRP_INFO_T **grp)
 
int nc4_find_nc_att (int ncid, int varid, const char *name, int attnum, NC_ATT_INFO_T **att)
 
int nc4_find_nc_grp_h5 (int ncid, NC **nc, NC_GRP_INFO_T **grp, NC_FILE_INFO_T **h5)
 
int nc4_find_type (const NC_FILE_INFO_T *h5, nc_type typeid, NC_TYPE_INFO_T **type)
 
int nc4_find_var (NC_GRP_INFO_T *grp, const char *name, NC_VAR_INFO_T **var)
 
int nc4_grp_list_add (NC_FILE_INFO_T *h5, NC_GRP_INFO_T *parent, char *name, NC_GRP_INFO_T **grp)
 
static int NC4_move_in_NCList (NC *nc, int new_id)
 
int nc4_nc4f_list_add (NC *nc, const char *path, int mode)
 
int nc4_nc4f_list_del (NC_FILE_INFO_T *h5)
 
int nc4_normalize_name (const char *name, char *norm_name)
 
NC_TYPE_INFO_T * nc4_rec_find_named_type (NC_GRP_INFO_T *start_grp, char *name)
 
int nc4_rec_grp_del (NC_GRP_INFO_T *grp)
 
int nc4_rec_grp_del_att_data (NC_GRP_INFO_T *grp)
 
int NC4_show_metadata (int ncid)
 
int nc4_type_free (NC_TYPE_INFO_T *type)
 
int nc4_type_list_add (NC_GRP_INFO_T *grp, size_t size, const char *name, NC_TYPE_INFO_T **type)
 
int nc4_type_new (size_t size, const char *name, int assignedid, NC_TYPE_INFO_T **type)
 
int nc4_var_list_add (NC_GRP_INFO_T *grp, const char *name, int ndims, NC_VAR_INFO_T **var)
 
int nc4_var_list_add2 (NC_GRP_INFO_T *grp, const char *name, NC_VAR_INFO_T **var)
 
int nc4_var_list_del (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var)
 
int nc4_var_set_ndims (NC_VAR_INFO_T *var, int ndims)
 
static int NC_createglobalstate (void)
 
const NC_reservedatt * NC_findreserved (const char *name)
 
void NC_freeglobalstate (void)
 
int nc_get_alignment (int *thresholdp, int *alignmentp)
 Provide get function to retrieve global data alignment information. More...
 
NCglobalstate * NC_getglobalstate (void)
 
int nc_set_alignment (int threshold, int alignment)
 Provide a function to store global data alignment information. More...
 
static void obj_track (NC_FILE_INFO_T *file, NC_OBJ *obj)
 
static int var_free (NC_VAR_INFO_T *var)
 

Variables

static NCglobalstate * nc_globalstate = NULL
 
static const NC_reservedatt NC_reserved []
 

Function Documentation

◆ NC_createglobalstate()

static int NC_createglobalstate ( void  )
static

< Default chunk cache size.

< Default chunk cache number of elements.

< Default chunk cache preemption.

Definition at line 2101 of file nc4internal.c.

Variable Documentation

◆ NC_reserved

const NC_reservedatt NC_reserved[]
static
Initial value:
= {
{NC_ATT_CLASS, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_DIMENSION_LIST, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_NAME, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_REFERENCE_LIST, READONLYFLAG|HIDDENATTRFLAG},
{NC_XARRAY_DIMS, READONLYFLAG|NAMEONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_CODECS, VARFLAG|READONLYFLAG|NAMEONLYFLAG},
{NC_ATT_FORMAT, READONLYFLAG},
{ISNETCDF4ATT, READONLYFLAG|NAMEONLYFLAG},
{NCPROPS,READONLYFLAG|NAMEONLYFLAG|HIDDENATTRFLAG},
{NC_NCZARR_ATTR_UC, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_COORDINATES, READONLYFLAG|HIDDENATTRFLAG},
{NC_ATT_DIMID_NAME, READONLYFLAG|HIDDENATTRFLAG},
{SUPERBLOCKATT, READONLYFLAG|NAMEONLYFLAG},
{NC_ATT_NC3_STRICT_NAME, READONLYFLAG},
{NC_ATT_NC3_STRICT_NAME, READONLYFLAG},
{NC_NCZARR_ATTR, READONLYFLAG|HIDDENATTRFLAG},
}

Definition at line 39 of file nc4internal.c.