7 #include "ncdispatch.h"
46 int stat = NC_check_id(ncid,&ncp);
48 return ncp->dispatch->def_enum(ncid,base_typeid,name,typeidp);
75 int stat = NC_check_id(ncid, &ncp);
77 return ncp->dispatch->insert_enum(ncid, xtype, name,
108 size_t *base_sizep,
size_t *num_membersp)
112 base_nc_typep, num_membersp, &
class);
144 int stat = NC_check_id(ncid, &ncp);
146 return ncp->dispatch->inq_enum_member(ncid, xtype, idx, name, value);
168 int stat = NC_check_id(ncid,&ncp);
170 return ncp->dispatch->inq_enum_ident(ncid,xtype,value,identifier);
int nc_def_enum(int ncid, nc_type base_typeid, const char *name, nc_type *typeidp)
Create an enum type.
int nc_inq_enum_member(int ncid, nc_type xtype, int idx, char *name, void *value)
Learn about a about a member of an enum type.
int nc_insert_enum(int ncid, nc_type xtype, const char *name, const void *value)
Insert a named member into a enum type.
int nc_inq_enum(int ncid, nc_type xtype, char *name, nc_type *base_nc_typep, size_t *base_sizep, size_t *num_membersp)
Learn about a user-define enumeration type.
int nc_inq_enum_ident(int ncid, nc_type xtype, long long value, char *identifier)
Get the name which is associated with an enum member value.
EXTERNL int nc_inq_user_type(int ncid, nc_type xtype, char *name, size_t *size, nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
Learn about a user defined type.
#define NC_EBADTYPE
Not a netcdf data type.
#define NC_ENUM
enum types
#define NC_NOERR
No Error.
int nc_type
The nc_type type is just an int.