2018-04-05 04:11:44 +08:00
|
|
|
/* Copyright 2018, UCAR/Unidata See netcdf/COPYRIGHT file for copying
|
|
|
|
* and redistribution conditions.*/
|
|
|
|
/**
|
|
|
|
* @file
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal This file contains functions that
|
|
|
|
* can be used in dispatch tables to handle
|
|
|
|
* such things as unimplemented functions.
|
|
|
|
* As a rule, these functions will return NC_ENOTNC4.
|
|
|
|
* In some cases, the function may succeed and set
|
|
|
|
* appropriate output parameter values. These are indicated
|
|
|
|
* by the NC_NOOP prefix to the function name.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
2018-04-05 04:11:44 +08:00
|
|
|
*/
|
|
|
|
|
2020-02-17 03:59:33 +08:00
|
|
|
#include "netcdf.h"
|
|
|
|
#include "netcdf_filter.h"
|
2018-04-05 04:11:44 +08:00
|
|
|
#include "ncdispatch.h"
|
2020-02-17 03:59:33 +08:00
|
|
|
#include "nc4internal.h"
|
2018-04-05 04:11:44 +08:00
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented in some dispatch tables
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param varid Ignored.
|
|
|
|
* @param id Ignored.
|
|
|
|
* @param nparams Ignored.
|
|
|
|
* @param parms Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_var_filter(int ncid, int varid, unsigned int id, size_t nparams,
|
|
|
|
const unsigned int* parms)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal Not allowed for classic model.
|
|
|
|
*
|
|
|
|
* @param parent_ncid Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param new_ncid Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_grp(int parent_ncid, const char *name, int *new_ncid)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param grpid Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_rename_grp(int grpid, const char *name)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param size Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_compound(int ncid, size_t size, const char *name, nc_type *typeidp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param offset Ignored.
|
|
|
|
* @param field Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_insert_compound(int ncid, nc_type typeid1, const char *name, size_t offset,
|
|
|
|
nc_type field_typeid)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param offset Ignored.
|
|
|
|
* @param field Ignored.
|
|
|
|
* @param ndims Ignored.
|
|
|
|
* @param dim Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
extern int
|
|
|
|
NC_NOTNC4_insert_array_compound(int ncid, int typeid1, const char *name,
|
|
|
|
size_t offset, nc_type field_typeid,
|
|
|
|
int ndims, const int *dim_sizesp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param fieldid Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param offsetp Ignored.
|
|
|
|
* @param field Ignored.
|
|
|
|
* @param ndimsp Ignored.
|
|
|
|
* @param dim Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_compound_field(int ncid, nc_type typeid1, int fieldid, char *name,
|
|
|
|
size_t *offsetp, nc_type *field_typeidp, int *ndimsp,
|
|
|
|
int *dim_sizesp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param fieldidp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_compound_fieldindex(int ncid, nc_type typeid1, const char *name, int *fieldidp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Opaque type. */
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param datum Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_opaque(int ncid, size_t datum_size, const char *name,
|
|
|
|
nc_type *typeidp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param base_typeid Ignored.
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_vlen(int ncid, const char *name, nc_type base_typeid,
|
|
|
|
nc_type *typeidp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param base_typeid Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_enum(int ncid, nc_type base_typeid, const char *name,
|
|
|
|
nc_type *typeidp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param xtype Ignored.
|
|
|
|
* @param value Ignored.
|
|
|
|
* @param identifier Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identifier)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param idx Ignored.
|
|
|
|
* @param identifier Ignored.
|
|
|
|
* @param value Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_enum_member(int ncid, nc_type typeid1, int idx, char *identifier,
|
|
|
|
void *value)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param identifier Ignored.
|
|
|
|
* @param value Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_insert_enum(int ncid, nc_type typeid1, const char *identifier,
|
|
|
|
const void *value)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param vlen_element Ignored.
|
|
|
|
* @param len Ignored.
|
|
|
|
* @param data Ignored.
|
|
|
|
*
|
|
|
|
* @return ::NC_NOERR No error.
|
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_put_vlen_element(int ncid, int typeid1, void *vlen_element,
|
|
|
|
size_t len, const void *data)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param vlen_element Ignored.
|
|
|
|
* @param len Ignored.
|
|
|
|
* @param data Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_get_vlen_element(int ncid, int typeid1, const void *vlen_element,
|
|
|
|
size_t *len, void *data)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param varid Ignored.
|
|
|
|
* @param size Ignored.
|
|
|
|
* @param nelems Ignored.
|
|
|
|
* @param preemption Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_set_var_chunk_cache(int ncid, int varid, size_t size, size_t nelems,
|
|
|
|
float preemption)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param varid Ignored.
|
|
|
|
* @param sizep Ignored.
|
|
|
|
* @param nelemsp Ignored.
|
|
|
|
* @param preemptionp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_get_var_chunk_cache(int ncid, int varid, size_t *sizep,
|
|
|
|
size_t *nelemsp, float *preemptionp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param varid Ignored.
|
|
|
|
* @param shuffle Ignored.
|
|
|
|
* @param deflate Ignored.
|
|
|
|
* @param deflate_level Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_var_deflate(int ncid, int varid, int shuffle, int deflate,
|
|
|
|
int deflate_level)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param varid Ignored.
|
|
|
|
* @param fletcher32 Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_var_fletcher32(int ncid, int varid, int fletcher32)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param varid Ignored.
|
|
|
|
* @param contiguous Ignored.
|
|
|
|
* @param chunksizesp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_var_chunking(int ncid, int varid, int contiguous, const size_t *chunksizesp)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_EPERM;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param varid Ignored.
|
|
|
|
* @param endianness Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_def_var_endian(int ncid, int varid, int endianness)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param varid Ignored.
|
|
|
|
* @param par_access Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2018-04-05 04:11:44 +08:00
|
|
|
* @author Ed Hartnett, Dennis Heimbigner
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_var_par_access(int ncid, int varid, int par_access)
|
|
|
|
{
|
2019-08-04 07:19:13 +08:00
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param grp_ncid Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_ncid(int ncid, const char *name, int *grp_ncid)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param numgrps Ignored.
|
|
|
|
* @param ncids Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_grps(int ncid, int *numgrps, int *ncids)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_grpname(int ncid, char *name)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param lenp Ignored.
|
|
|
|
* @param full_name Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param parent_ncid Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_grp_parent(int ncid, int *parent_ncid)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param full_name Ignored.
|
|
|
|
* @param grp_ncid Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param nvars Ignored.
|
|
|
|
* @param varids Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_varids(int ncid, int *nvars, int *varids)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param ndims Ignored.
|
|
|
|
* @param dimids Ignored.
|
|
|
|
* @param include_parents Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param ntypes Ignored.
|
|
|
|
* @param typeids Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 07:19:13 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_typeids(int ncid, int *ntypes, int *typeids)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
2018-04-05 04:11:44 +08:00
|
|
|
}
|
2019-08-04 08:33:43 +08:00
|
|
|
|
|
|
|
/**
|
2020-04-16 04:44:58 +08:00
|
|
|
* @internal Not implemented for a dispatch table.
|
2019-08-04 08:33:43 +08:00
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param typeid1 Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param size Ignored.
|
|
|
|
* @param base_nc_typep Ignored.
|
|
|
|
* @param nfieldsp Ignored.
|
|
|
|
* @param classp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 08:33:43 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_user_type(int ncid, nc_type typeid1, char *name, size_t *size,
|
|
|
|
nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal Get the id of a type from the name.
|
|
|
|
*
|
|
|
|
* @param ncid Ignored.
|
|
|
|
* @param name Ignored.
|
|
|
|
* @param typeidp Ignored.
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2019-08-04 08:33:43 +08:00
|
|
|
* @author Ed Hartnett
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_inq_typeid(int ncid, const char *name, nc_type *typeidp)
|
|
|
|
{
|
2020-04-16 04:44:58 +08:00
|
|
|
/* Note that this should actually work for atomic types */
|
2019-08-04 08:33:43 +08:00
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
2020-02-17 03:59:33 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal Carry out one of several filter actions
|
|
|
|
*
|
|
|
|
* @param ncid Containing group id
|
|
|
|
* @param varid Containing variable id
|
|
|
|
* @param action Action to perform
|
|
|
|
*
|
2020-04-16 04:44:58 +08:00
|
|
|
* @return ::NC_ENOTNC4 Not implemented for a dispatch table.
|
2020-02-17 03:59:33 +08:00
|
|
|
* @author D. Heimbigner
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOTNC4_filter_actions(int ncid, int varid, int action, struct NC_Filterobject* spec)
|
|
|
|
{
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
2020-04-16 04:44:58 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @internal Carry out one of several filter actions
|
|
|
|
*
|
|
|
|
* @param ncid Containing group id
|
|
|
|
* @param varid Containing variable id
|
|
|
|
* @param action Action to perform
|
|
|
|
*
|
|
|
|
* @return ::NC_NOERR Implemented as a no-op.
|
|
|
|
* @return ::NC_ENOTNC4 Not implemented
|
|
|
|
* @return ::NC_ENOFILTER No filter defined
|
|
|
|
* @author D. Heimbigner
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
NC_NOOP_filter_actions(int ncid, int varid, int action, struct NC_Filterobject* args)
|
|
|
|
{
|
|
|
|
NC_FILTER_OBJ_HDF5* obj = (NC_FILTER_OBJ_HDF5*)args;
|
|
|
|
switch (action) {
|
|
|
|
case NCFILTER_FILTERIDS:
|
|
|
|
obj->u.ids.nfilters = 0;
|
|
|
|
return NC_NOERR;
|
|
|
|
case NCFILTER_INQ: /* fall thrue */
|
|
|
|
case NCFILTER_INFO:
|
|
|
|
return NC_ENOFILTER;
|
|
|
|
default:
|
|
|
|
return NC_ENOTNC4;
|
|
|
|
}
|
|
|
|
}
|