netCDF  4.2.1.1
/usr/src/RPM/BUILD/libnetcdf7-mpi-4.2.1.1/libdispatch/dgroup.c
Go to the documentation of this file.
00001 
00007 #include "ncdispatch.h"
00008 
00072 int
00073 nc_inq_ncid(int ncid, const char *name, int *grp_ncid)
00074 {
00075     NC* ncp;
00076     int stat = NC_check_id(ncid,&ncp);
00077     if(stat != NC_NOERR) return stat;
00078     return ncp->dispatch->inq_ncid(ncid,name,grp_ncid);
00079 }
00080 
00081 int
00082 nc_inq_grps(int ncid, int *numgrps, int *ncids)
00083 {
00084     NC* ncp;
00085     int stat = NC_check_id(ncid,&ncp);
00086     if(stat != NC_NOERR) return stat;
00087     return ncp->dispatch->inq_grps(ncid,numgrps,ncids);
00088 }
00089 
00090 int
00091 nc_inq_grpname(int ncid, char *name)
00092 {
00093     NC* ncp;
00094     int stat = NC_check_id(ncid,&ncp);
00095     if(stat != NC_NOERR) return stat;
00096     return ncp->dispatch->inq_grpname(ncid,name);
00097 }
00098 
00099 int
00100 nc_inq_grpname_full(int ncid, size_t *lenp, char *full_name)
00101 {
00102     NC* ncp;
00103     int stat = NC_check_id(ncid,&ncp);
00104     if(stat != NC_NOERR) return stat;
00105     return ncp->dispatch->inq_grpname_full(ncid,lenp,full_name);
00106 }
00107 
00108 int
00109 nc_inq_grpname_len(int ncid, size_t *lenp)
00110 {
00111     int stat = nc_inq_grpname_full(ncid,lenp,NULL);    
00112     return stat;
00113 }
00114 
00115 int
00116 nc_inq_grp_parent(int ncid, int *parent_ncid)
00117 {
00118     NC* ncp;
00119     int stat = NC_check_id(ncid,&ncp);
00120     if(stat != NC_NOERR) return stat;
00121     return ncp->dispatch->inq_grp_parent(ncid,parent_ncid);
00122 }
00123 
00124 /* This has same semantics as nc_inq_ncid */ 
00125 int
00126 nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
00127 {
00128     return nc_inq_ncid(ncid,grp_name,grp_ncid);    
00129 }
00130 
00131 int
00132 nc_inq_grp_full_ncid(int ncid, const char *full_name, int *grp_ncid)
00133 {
00134     NC* ncp;
00135     int stat = NC_check_id(ncid,&ncp);
00136     if(stat != NC_NOERR) return stat;
00137     return ncp->dispatch->inq_grp_full_ncid(ncid,full_name,grp_ncid);
00138 }
00139 
00140 int 
00141 nc_inq_varids(int ncid, int *nvars, int *varids)
00142 {
00143     NC* ncp;
00144     int stat = NC_check_id(ncid,&ncp);
00145     if(stat != NC_NOERR) return stat;
00146     return ncp->dispatch->inq_varids(ncid,nvars,varids);
00147 }
00148 
00149 int 
00150 nc_inq_dimids(int ncid, int *ndims, int *dimids, int include_parents)
00151 {
00152     NC* ncp;
00153     int stat = NC_check_id(ncid,&ncp);
00154     if(stat != NC_NOERR) return stat;
00155     return ncp->dispatch->inq_dimids(ncid,ndims,dimids,include_parents);
00156 }
00157 
00158 int 
00159 nc_inq_typeids(int ncid, int *ntypes, int *typeids)
00160 {
00161     NC* ncp;
00162     int stat = NC_check_id(ncid,&ncp);
00163     if(stat != NC_NOERR) return stat;
00164     return ncp->dispatch->inq_typeids(ncid,ntypes,typeids);
00165 }
00166 
00167 int
00168 nc_def_grp(int parent_ncid, const char *name, int *new_ncid)
00169 {
00170     NC* ncp;
00171     int stat = NC_check_id(parent_ncid,&ncp);
00172     if(stat != NC_NOERR) return stat;
00173     return ncp->dispatch->def_grp(parent_ncid,name,new_ncid);
00174 }
00175 
00176 
00177 
00178 int 
00179 nc_show_metadata(int ncid)
00180 {
00181     NC* ncp;
00182     int stat = NC_check_id(ncid,&ncp);
00183     if(stat != NC_NOERR) return stat;
00184     return ncp->dispatch->show_metadata(ncid);
00185 }
00186 
 All Data Structures Files Functions Variables Typedefs Defines

Generated on Fri Sep 14 2012 07:36:39 for netCDF. NetCDF is a Unidata library.