[409] | 1 | /********************************************************************* |
---|
| 2 | * Copyright 2010, UCAR/Unidata. See netcdf/COPYRIGHT file for copying |
---|
| 3 | * and redistribution conditions. |
---|
| 4 | * |
---|
| 5 | * This header file contains the prototypes for the netCDF-4 versions |
---|
| 6 | * of all the netCDF functions. |
---|
| 7 | *********************************************************************/ |
---|
| 8 | |
---|
| 9 | #ifndef _NC4DISPATCH_H |
---|
| 10 | #define _NC4DISPATCH_H |
---|
| 11 | |
---|
| 12 | #include "config.h" |
---|
| 13 | #include <stddef.h> /* size_t, ptrdiff_t */ |
---|
| 14 | #include <errno.h> /* netcdf functions sometimes return system errors */ |
---|
| 15 | #include "ncdispatch.h" |
---|
| 16 | |
---|
| 17 | #if defined(__cplusplus) |
---|
| 18 | extern "C" { |
---|
| 19 | #endif |
---|
| 20 | |
---|
| 21 | extern int |
---|
| 22 | NC4_create(const char *path, int cmode, |
---|
| 23 | size_t initialsz, int basepe, size_t *chunksizehintp, |
---|
| 24 | int useparallel, void* parameters, |
---|
| 25 | NC_Dispatch*, NC**); |
---|
| 26 | |
---|
| 27 | extern int |
---|
| 28 | NC4_open(const char *path, int mode, |
---|
| 29 | int basepe, size_t *chunksizehintp, |
---|
| 30 | int use_parallel, void* parameters, |
---|
| 31 | NC_Dispatch*, NC**); |
---|
| 32 | |
---|
| 33 | extern int |
---|
| 34 | NC4_new_nc(NC**); |
---|
| 35 | |
---|
| 36 | extern int |
---|
| 37 | NC4_free_nc(NC*); |
---|
| 38 | |
---|
| 39 | extern int |
---|
| 40 | NC4_redef(int ncid); |
---|
| 41 | |
---|
| 42 | extern int |
---|
| 43 | NC4__enddef(int ncid, size_t h_minfree, size_t v_align, |
---|
| 44 | size_t v_minfree, size_t r_align); |
---|
| 45 | |
---|
| 46 | extern int |
---|
| 47 | NC4_sync(int ncid); |
---|
| 48 | |
---|
| 49 | extern int |
---|
| 50 | NC4_abort(int ncid); |
---|
| 51 | |
---|
| 52 | extern int |
---|
| 53 | NC4_close(int ncid); |
---|
| 54 | |
---|
| 55 | extern int |
---|
| 56 | NC4_set_fill(int ncid, int fillmode, int *old_modep); |
---|
| 57 | |
---|
| 58 | extern int |
---|
| 59 | NC4_set_base_pe(int ncid, int pe); |
---|
| 60 | |
---|
| 61 | extern int |
---|
| 62 | NC4_inq_base_pe(int ncid, int *pe); |
---|
| 63 | |
---|
| 64 | extern int |
---|
| 65 | NC4_inq_format(int ncid, int *formatp); |
---|
| 66 | |
---|
| 67 | extern int |
---|
| 68 | NC4_inq(int ncid, int *ndimsp, int *nvarsp, int *nattsp, int *unlimdimidp); |
---|
| 69 | |
---|
| 70 | extern int |
---|
| 71 | NC4_inq_type(int, nc_type, char *, size_t *); |
---|
| 72 | |
---|
| 73 | /* Begin _dim */ |
---|
| 74 | |
---|
| 75 | extern int |
---|
| 76 | NC4_def_dim(int ncid, const char *name, size_t len, int *idp); |
---|
| 77 | |
---|
| 78 | extern int |
---|
| 79 | NC4_inq_dimid(int ncid, const char *name, int *idp); |
---|
| 80 | |
---|
| 81 | extern int |
---|
| 82 | NC4_inq_dim(int ncid, int dimid, char *name, size_t *lenp); |
---|
| 83 | |
---|
| 84 | extern int |
---|
| 85 | NC4_inq_unlimdim(int ncid, int *unlimdimidp); |
---|
| 86 | |
---|
| 87 | extern int |
---|
| 88 | NC4_rename_dim(int ncid, int dimid, const char *name); |
---|
| 89 | |
---|
| 90 | /* End _dim */ |
---|
| 91 | /* Begin _att */ |
---|
| 92 | |
---|
| 93 | extern int |
---|
| 94 | NC4_inq_att(int ncid, int varid, const char *name, |
---|
| 95 | nc_type *xtypep, size_t *lenp); |
---|
| 96 | |
---|
| 97 | extern int |
---|
| 98 | NC4_inq_attid(int ncid, int varid, const char *name, int *idp); |
---|
| 99 | |
---|
| 100 | extern int |
---|
| 101 | NC4_inq_attname(int ncid, int varid, int attnum, char *name); |
---|
| 102 | |
---|
| 103 | extern int |
---|
| 104 | NC4_rename_att(int ncid, int varid, const char *name, const char *newname); |
---|
| 105 | |
---|
| 106 | extern int |
---|
| 107 | NC4_del_att(int ncid, int varid, const char*); |
---|
| 108 | |
---|
| 109 | /* End _att */ |
---|
| 110 | /* Begin {put,get}_att */ |
---|
| 111 | |
---|
| 112 | extern int |
---|
| 113 | NC4_get_att(int ncid, int varid, const char *name, void *value, nc_type); |
---|
| 114 | |
---|
| 115 | extern int |
---|
| 116 | NC4_put_att(int ncid, int varid, const char *name, nc_type datatype, |
---|
| 117 | size_t len, const void *value, nc_type); |
---|
| 118 | |
---|
| 119 | /* End {put,get}_att */ |
---|
| 120 | /* Begin _var */ |
---|
| 121 | |
---|
| 122 | extern int |
---|
| 123 | NC4_def_var(int ncid, const char *name, |
---|
| 124 | nc_type xtype, int ndims, const int *dimidsp, int *varidp); |
---|
| 125 | |
---|
| 126 | extern int |
---|
| 127 | NC4_inq_var_all(int ncid, int varid, char *name, nc_type *xtypep, |
---|
| 128 | int *ndimsp, int *dimidsp, int *nattsp, |
---|
| 129 | int *shufflep, int *deflatep, int *deflate_levelp, |
---|
| 130 | int *fletcher32p, int *contiguousp, size_t *chunksizesp, |
---|
| 131 | int *no_fill, void *fill_valuep, int *endiannessp, |
---|
| 132 | int *options_maskp, int *pixels_per_blockp); |
---|
| 133 | |
---|
| 134 | extern int |
---|
| 135 | NC4_inq_varid(int ncid, const char *name, int *varidp); |
---|
| 136 | |
---|
| 137 | extern int |
---|
| 138 | NC4_rename_var(int ncid, int varid, const char *name); |
---|
| 139 | |
---|
| 140 | extern int |
---|
| 141 | NC4_put_vara(int ncid, int varid, |
---|
| 142 | const size_t *start, const size_t *count, |
---|
| 143 | const void *value, nc_type); |
---|
| 144 | |
---|
| 145 | extern int |
---|
| 146 | NC4_get_vara(int ncid, int varid, |
---|
| 147 | const size_t *start, const size_t *count, |
---|
| 148 | void *value, nc_type); |
---|
| 149 | |
---|
| 150 | /* End _var */ |
---|
| 151 | |
---|
| 152 | /* netCDF4 API only */ |
---|
| 153 | extern int |
---|
| 154 | NC4_var_par_access(int, int, int); |
---|
| 155 | |
---|
| 156 | extern int |
---|
| 157 | NC4_inq_ncid(int, const char *, int *); |
---|
| 158 | |
---|
| 159 | extern int |
---|
| 160 | NC4_inq_grps(int, int *, int *); |
---|
| 161 | |
---|
| 162 | extern int |
---|
| 163 | NC4_inq_grpname(int, char *); |
---|
| 164 | |
---|
| 165 | extern int |
---|
| 166 | NC4_inq_grpname_full(int, size_t *, char *); |
---|
| 167 | |
---|
| 168 | extern int |
---|
| 169 | NC4_inq_grp_parent(int, int *); |
---|
| 170 | |
---|
| 171 | extern int |
---|
| 172 | NC4_inq_grp_full_ncid(int, const char *, int *); |
---|
| 173 | |
---|
| 174 | extern int |
---|
| 175 | NC4_inq_varids(int, int * nvars, int *); |
---|
| 176 | |
---|
| 177 | extern int |
---|
| 178 | NC4_inq_dimids(int, int * ndims, int *, int); |
---|
| 179 | |
---|
| 180 | extern int |
---|
| 181 | NC4_inq_typeids(int, int * ntypes, int *); |
---|
| 182 | |
---|
| 183 | extern int |
---|
| 184 | NC4_inq_type_equal(int, nc_type, int, nc_type, int *); |
---|
| 185 | |
---|
| 186 | extern int |
---|
| 187 | NC4_def_grp(int, const char *, int *); |
---|
| 188 | |
---|
| 189 | extern int |
---|
| 190 | NC4_inq_user_type(int, nc_type, char *, size_t *, nc_type *, |
---|
| 191 | size_t *, int *); |
---|
| 192 | |
---|
| 193 | extern int |
---|
| 194 | NC4_def_compound(int, size_t, const char *, nc_type *); |
---|
| 195 | |
---|
| 196 | extern int |
---|
| 197 | NC4_insert_compound(int, nc_type, const char *, size_t, nc_type); |
---|
| 198 | |
---|
| 199 | extern int |
---|
| 200 | NC4_insert_array_compound(int, nc_type, const char *, size_t, |
---|
| 201 | nc_type, int, const int *); |
---|
| 202 | |
---|
| 203 | extern int |
---|
| 204 | NC4_inq_typeid(int, const char *, nc_type *); |
---|
| 205 | |
---|
| 206 | extern int |
---|
| 207 | NC4_inq_compound_field(int, nc_type, int, char *, size_t *, |
---|
| 208 | nc_type *, int *, int *); |
---|
| 209 | |
---|
| 210 | extern int |
---|
| 211 | NC4_inq_compound_fieldindex(int, nc_type, const char *, int *); |
---|
| 212 | |
---|
| 213 | extern int |
---|
| 214 | NC4_def_vlen(int, const char *, nc_type base_typeid, nc_type *); |
---|
| 215 | |
---|
| 216 | extern int |
---|
| 217 | NC4_put_vlen_element(int, int, void *, size_t, const void *); |
---|
| 218 | |
---|
| 219 | extern int |
---|
| 220 | NC4_get_vlen_element(int, int, const void *, size_t *, void *); |
---|
| 221 | |
---|
| 222 | extern int |
---|
| 223 | NC4_def_enum(int, nc_type, const char *, nc_type *); |
---|
| 224 | |
---|
| 225 | extern int |
---|
| 226 | NC4_insert_enum(int, nc_type, const char *, const void *); |
---|
| 227 | |
---|
| 228 | extern int |
---|
| 229 | NC4_inq_enum_member(int, nc_type, int, char *, void *); |
---|
| 230 | |
---|
| 231 | extern int |
---|
| 232 | NC4_inq_enum_ident(int, nc_type, long long, char *); |
---|
| 233 | |
---|
| 234 | extern int |
---|
| 235 | NC4_def_opaque(int, size_t, const char *, nc_type *); |
---|
| 236 | |
---|
| 237 | extern int |
---|
| 238 | NC4_def_var_deflate(int, int, int, int, int); |
---|
| 239 | |
---|
| 240 | extern int |
---|
| 241 | NC4_def_var_fletcher32(int, int, int); |
---|
| 242 | |
---|
| 243 | extern int |
---|
| 244 | NC4_def_var_chunking(int, int, int, const size_t *); |
---|
| 245 | |
---|
| 246 | extern int |
---|
| 247 | NC4_def_var_fill(int, int, int, const void *); |
---|
| 248 | |
---|
| 249 | extern int |
---|
| 250 | NC4_def_var_endian(int, int, int); |
---|
| 251 | |
---|
| 252 | extern int |
---|
| 253 | NC4_set_var_chunk_cache(int, int, size_t, size_t, float); |
---|
| 254 | |
---|
| 255 | extern int |
---|
| 256 | NC4_get_var_chunk_cache(int, int, size_t *, size_t *, float *); |
---|
| 257 | |
---|
| 258 | extern int |
---|
| 259 | NC4_inq_unlimdims(int, int *, int *); |
---|
| 260 | |
---|
| 261 | extern int |
---|
| 262 | NC4_show_metadata(int); |
---|
| 263 | |
---|
| 264 | extern int |
---|
| 265 | NC4_initialize(void); |
---|
| 266 | |
---|
| 267 | #if defined(__cplusplus) |
---|
| 268 | } |
---|
| 269 | #endif |
---|
| 270 | |
---|
| 271 | #endif /*_NC4DISPATCH_H */ |
---|