netCDF 4.2.1.1
/usr/src/RPM/BUILD/libnetcdf7-seq-4.2.1.1/libdispatch/dattinq.c
Go to the documentation of this file.
00001 
00009 #include "ncdispatch.h"
00010  /* All these functions are part of this named group... */
00015 
00071 int
00072 nc_inq_att(int ncid, int varid, const char *name, nc_type *xtypep, 
00073            size_t *lenp)
00074 {
00075    NC* ncp;
00076    int stat = NC_check_id(ncid, &ncp);
00077    if(stat != NC_NOERR) return stat;
00078    return ncp->dispatch->inq_att(ncid, varid, name, xtypep, lenp);
00079 }
00080 
00100 int
00101 nc_inq_attid(int ncid, int varid, const char *name, int *idp)
00102 {
00103    NC* ncp;
00104    int stat = NC_check_id(ncid, &ncp);
00105    if(stat != NC_NOERR) return stat;
00106    return ncp->dispatch->inq_attid(ncid, varid, name, idp);
00107 }
00108 
00128 int
00129 nc_inq_attname(int ncid, int varid, int attnum, char *name)
00130 {
00131    NC* ncp;
00132    int stat = NC_check_id(ncid, &ncp);
00133    if(stat != NC_NOERR) return stat;
00134    return ncp->dispatch->inq_attname(ncid, varid, attnum, name);
00135 }
00136 
00148 int
00149 nc_inq_natts(int ncid, int *nattsp)
00150 {
00151    NC* ncp;
00152    int stat = NC_check_id(ncid, &ncp);
00153    if(stat != NC_NOERR) return stat;
00154    if(nattsp == NULL) return NC_NOERR;
00155    return ncp->dispatch->inq(ncid, NULL, NULL, nattsp, NULL);
00156 }
00157 
00173 int
00174 nc_inq_atttype(int ncid, int varid, const char *name, nc_type *xtypep)
00175 {
00176    NC* ncp;
00177    int stat = NC_check_id(ncid, &ncp);
00178    if(stat != NC_NOERR) return stat;
00179    return ncp->dispatch->inq_att(ncid, varid, name, xtypep, NULL);
00180 }
00181 
00199 int
00200 nc_inq_attlen(int ncid, int varid, const char *name, size_t *lenp)
00201 {
00202    NC* ncp;
00203    int stat = NC_check_id(ncid, &ncp);
00204    if(stat != NC_NOERR) return stat;
00205    return ncp->dispatch->inq_att(ncid, varid, name, NULL, lenp);
00206 }
00207   /* End of named group ...*/
 All Data Structures Files Functions Variables Typedefs Defines

Generated on Tue Aug 6 2013 11:40:56 for netCDF. NetCDF is a Unidata library.