10 #include "ncdispatch.h"
133 nc_get_att(
int ncid,
int varid,
const char *name,
void *value)
139 if ((stat = NC_check_id(ncid, &ncp)))
147 return ncp->dispatch->get_att(ncid, varid, name, value, xtype);
225 int stat = NC_check_id(ncid, &ncp);
228 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_CHAR);
258 int stat = NC_check_id(ncid, &ncp);
261 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_BYTE);
291 int stat = NC_check_id(ncid, &ncp);
294 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_UBYTE);
324 int stat = NC_check_id(ncid, &ncp);
327 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_SHORT);
357 int stat = NC_check_id(ncid, &ncp);
360 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_INT);
390 int stat = NC_check_id(ncid, &ncp);
393 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value, longtype);
423 int stat = NC_check_id(ncid, &ncp);
426 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_FLOAT);
456 int stat = NC_check_id(ncid, &ncp);
459 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_DOUBLE);
489 int stat = NC_check_id(ncid, &ncp);
492 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_UBYTE);
522 int stat = NC_check_id(ncid, &ncp);
525 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_USHORT);
555 int stat = NC_check_id(ncid, &ncp);
558 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_UINT);
588 int stat = NC_check_id(ncid, &ncp);
591 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_INT64);
621 int stat = NC_check_id(ncid, &ncp);
624 return ncp->dispatch->get_att(ncid, varid, name, (
void *)value,
NC_UINT64);
714 int stat = NC_check_id(ncid, &ncp);
717 return ncp->dispatch->get_att(ncid,varid,name,(
void*)value,
NC_STRING);
int nc_get_att_int(int ncid, int varid, const char *name, int *value)
Get an attribute array of type int.
int nc_get_att_string(int ncid, int varid, const char *name, char **value)
Get an attribute array of type string.
int nc_get_att(int ncid, int varid, const char *name, void *value)
Get an attribute of any type.
int nc_get_att_float(int ncid, int varid, const char *name, float *value)
Get an attribute array of type float.
int nc_get_att_long(int ncid, int varid, const char *name, long *value)
Get an attribute array of type long.
int nc_get_att_uchar(int ncid, int varid, const char *name, unsigned char *value)
Get an attribute of an signed char type.
int nc_get_att_longlong(int ncid, int varid, const char *name, long long *value)
Get an attribute array of type long long.
int nc_get_att_ubyte(int ncid, int varid, const char *name, unsigned char *value)
Get an attribute array of type unsigned char.
int nc_get_att_ulonglong(int ncid, int varid, const char *name, unsigned long long *value)
Get an attribute array of type unsigned long long.
int nc_get_att_text(int ncid, int varid, const char *name, char *value)
Get a text attribute.
int nc_get_att_short(int ncid, int varid, const char *name, short *value)
Get an attribute array of type short.
int nc_get_att_schar(int ncid, int varid, const char *name, signed char *value)
Get an attribute of an signed char type.
int nc_get_att_double(int ncid, int varid, const char *name, double *value)
Get an attribute array of type double.
EXTERNL int nc_inq_atttype(int ncid, int varid, const char *name, nc_type *xtypep)
Find the type of an attribute.
int nc_get_att_ushort(int ncid, int varid, const char *name, unsigned short *value)
Get an attribute array of type unsigned short.
int nc_get_att_uint(int ncid, int varid, const char *name, unsigned int *value)
Get an attribute array of type unsigned int.
#define NC_UINT
unsigned 4-byte int
#define NC_INT
signed 4 byte integer
#define NC_BYTE
signed 1 byte integer
#define NC_DOUBLE
double precision floating point number
#define NC_UBYTE
unsigned 1 byte int
#define NC_FLOAT
single precision floating point number
#define NC_SHORT
signed 2 byte integer
#define NC_INT64
signed 8-byte int
#define NC_UINT64
unsigned 8-byte int
#define NC_NOERR
No Error.
#define NC_USHORT
unsigned 2-byte int
#define NC_CHAR
ISO/ASCII character.
int nc_type
The nc_type type is just an int.