7 #include "ncdispatch.h"
59 int stat = NC_check_id(ncid,&ncp);
61 return ncp->dispatch->inq_ncid(ncid,name,grp_ncid);
76 int stat = NC_check_id(ncid,&ncp);
78 return ncp->dispatch->inq_grps(ncid,numgrps,ncids);
91 int stat = NC_check_id(ncid,&ncp);
93 return ncp->dispatch->inq_grpname(ncid,name);
109 int stat = NC_check_id(ncid,&ncp);
111 return ncp->dispatch->inq_grpname_full(ncid,lenp,full_name);
139 int stat = NC_check_id(ncid,&ncp);
141 return ncp->dispatch->inq_grp_parent(ncid,parent_ncid);
172 int stat = NC_check_id(ncid,&ncp);
174 return ncp->dispatch->inq_grp_full_ncid(ncid,full_name,grp_ncid);
190 int stat = NC_check_id(ncid,&ncp);
192 return ncp->dispatch->inq_varids(ncid,nvars,varids);
208 int stat = NC_check_id(ncid,&ncp);
210 return ncp->dispatch->inq_dimids(ncid,ndims,dimids,include_parents);
226 int stat = NC_check_id(ncid,&ncp);
228 return ncp->dispatch->inq_typeids(ncid,ntypes,typeids);
268 int nc_def_grp(
int parent_ncid,
const char *name,
int *new_ncid)
271 int stat = NC_check_id(parent_ncid,&ncp);
273 return ncp->dispatch->def_grp(parent_ncid,name,new_ncid);
287 int stat = NC_check_id(grpid,&ncp);
289 return ncp->dispatch->rename_grp(grpid,name);
302 int stat = NC_check_id(ncid,&ncp);
304 return ncp->dispatch->show_metadata(ncid);
int nc_inq_typeids(int ncid, int *ntypes, int *typeids)
Retrieve a list of types associated with a group.
int nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
Retrieve a list of dimension ids associated with a group.
int nc_inq_grps(int ncid, int *numgrps, int *ncids)
Get a list of groups or subgroups from a file or groupID.
int nc_show_metadata(int ncid)
Print the metadata for a file.
int nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
Get the full ncid given a group name.
int nc_inq_grpname(int ncid, char *name)
Get the name of a group given an ID.
int nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
Return the group ID for a group given the name.
int nc_inq_varids(int ncid, int *nvars, int *varids)
Get a list of varids associated with a group given a group ID.
int nc_inq_grp_parent(int ncid, int *parent_ncid)
Get the ID of the parent based on a group ID.
int nc_inq_grpname_len(int ncid, size_t *lenp)
Get the length of a group name given an ID.
int nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
Get the full path/groupname of a group/subgroup given an ID.
int nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
Define a new group.
int nc_rename_grp(int grpid, const char *name)
Rename a group.
int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
Get a group ncid given the group name.
#define NC_NOERR
No Error.