NetCDF 4.9.0
nc4type.c File Reference
#include "nc4internal.h"
#include "nc4dispatch.h"
Include dependency graph for nc4type.c:

Go to the source code of this file.

Macros

#define NC_BYTE_LEN   1
 
#define NC_CHAR_LEN   sizeof(char)
 
#define NC_DOUBLE_LEN   8
 
#define NC_FLOAT_LEN   4
 
#define NC_INT64_LEN   8
 
#define NC_INT_LEN   4
 
#define NC_SHORT_LEN   2
 
#define NC_STRING_LEN   sizeof(char *)
 

Functions

int nc4_get_typeclass (const NC_FILE_INFO_T *h5, nc_type xtype, int *type_class)
 
int NC4_inq_atomic_type (nc_type typeid1, char *name, size_t *size)
 
int NC4_inq_compound_field (int ncid, nc_type typeid1, int fieldid, char *name, size_t *offsetp, nc_type *field_typeidp, int *ndimsp, int *dim_sizesp)
 
int NC4_inq_compound_fieldindex (int ncid, nc_type typeid1, const char *name, int *fieldidp)
 
int NC4_inq_enum_ident (int ncid, nc_type xtype, long long value, char *identifier)
 
int NC4_inq_enum_member (int ncid, nc_type typeid1, int idx, char *identifier, void *value)
 
int NC4_inq_type (int ncid, nc_type typeid1, char *name, size_t *size)
 
int NC4_inq_type_fixed_size (int ncid, nc_type xtype, int *fixedsizep)
 
EXTERNL int NC4_inq_typeid (int ncid, const char *name, nc_type *typeidp)
 
int NC4_inq_typeids (int ncid, int *ntypes, int *typeids)
 
int NC4_inq_user_type (int ncid, nc_type typeid1, char *name, size_t *size, nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
 
int NC4_lookup_atomic_type (const char *name, nc_type *idp, size_t *sizep)
 

Variables

const char * nc4_atomic_name [NUM_ATOMIC_TYPES]
 
static const int nc4_atomic_size [NUM_ATOMIC_TYPES]
 

Macro Definition Documentation

◆ NC_BYTE_LEN

#define NC_BYTE_LEN   1

Definition at line 25 of file nc4type.c.

◆ NC_CHAR_LEN

#define NC_CHAR_LEN   sizeof(char)

Definition at line 23 of file nc4type.c.

◆ NC_DOUBLE_LEN

#define NC_DOUBLE_LEN   8

Definition at line 29 of file nc4type.c.

◆ NC_FLOAT_LEN

#define NC_FLOAT_LEN   4

Definition at line 28 of file nc4type.c.

◆ NC_INT64_LEN

#define NC_INT64_LEN   8

Definition at line 30 of file nc4type.c.

◆ NC_INT_LEN

#define NC_INT_LEN   4

Definition at line 27 of file nc4type.c.

◆ NC_SHORT_LEN

#define NC_SHORT_LEN   2

Definition at line 26 of file nc4type.c.

◆ NC_STRING_LEN

#define NC_STRING_LEN   sizeof(char *)

Definition at line 24 of file nc4type.c.

Function Documentation

◆ nc4_get_typeclass()

int nc4_get_typeclass ( const NC_FILE_INFO_T *  h5,
nc_type  xtype,
int *  type_class 
)

Definition at line 651 of file nc4type.c.

◆ NC4_inq_atomic_type()

int NC4_inq_atomic_type ( nc_type  typeid1,
char *  name,
size_t *  size 
)

Definition at line 105 of file nc4type.c.

◆ NC4_inq_compound_field()

int NC4_inq_compound_field ( int  ncid,
nc_type  typeid1,
int  fieldid,
char *  name,
size_t *  offsetp,
nc_type field_typeidp,
int *  ndimsp,
int *  dim_sizesp 
)

Definition at line 302 of file nc4type.c.

◆ NC4_inq_compound_fieldindex()

int NC4_inq_compound_fieldindex ( int  ncid,
nc_type  typeid1,
const char *  name,
int *  fieldidp 
)

Definition at line 353 of file nc4type.c.

◆ NC4_inq_enum_ident()

int NC4_inq_enum_ident ( int  ncid,
nc_type  xtype,
long long  value,
char *  identifier 
)

Definition at line 415 of file nc4type.c.

◆ NC4_inq_enum_member()

int NC4_inq_enum_member ( int  ncid,
nc_type  typeid1,
int  idx,
char *  identifier,
void *  value 
)

Definition at line 505 of file nc4type.c.

◆ NC4_inq_type()

int NC4_inq_type ( int  ncid,
nc_type  typeid1,
char *  name,
size_t *  size 
)

Definition at line 163 of file nc4type.c.

◆ NC4_inq_type_fixed_size()

int NC4_inq_type_fixed_size ( int  ncid,
nc_type  xtype,
int *  fixedsizep 
)

Definition at line 722 of file nc4type.c.

◆ NC4_inq_typeid()

EXTERNL int NC4_inq_typeid ( int  ncid,
const char *  name,
nc_type typeidp 
)

Definition at line 555 of file nc4type.c.

◆ NC4_inq_typeids()

int NC4_inq_typeids ( int  ncid,
int *  ntypes,
int *  typeids 
)

Definition at line 57 of file nc4type.c.

◆ NC4_inq_user_type()

int NC4_inq_user_type ( int  ncid,
nc_type  typeid1,
char *  name,
size_t *  size,
nc_type base_nc_typep,
size_t *  nfieldsp,
int *  classp 
)

Definition at line 223 of file nc4type.c.

◆ NC4_lookup_atomic_type()

int NC4_lookup_atomic_type ( const char *  name,
nc_type idp,
size_t *  sizep 
)

Definition at line 130 of file nc4type.c.

Variable Documentation

◆ nc4_atomic_name

const char* nc4_atomic_name[NUM_ATOMIC_TYPES]
Initial value:
= {"none", "byte", "char",
"short", "int", "float",
"double", "ubyte",
"ushort", "uint",
"int64", "uint64", "string"}

Definition at line 33 of file nc4type.c.

◆ nc4_atomic_size

const int nc4_atomic_size[NUM_ATOMIC_TYPES]
static
Initial value:
= {0, NC_BYTE_LEN, NC_CHAR_LEN, NC_SHORT_LEN,
NC_INT_LEN, NC_FLOAT_LEN, NC_DOUBLE_LEN,
NC_BYTE_LEN, NC_SHORT_LEN, NC_INT_LEN, NC_INT64_LEN,
NC_INT64_LEN, NC_STRING_LEN}

Definition at line 38 of file nc4type.c.