NEP 2.7.0
NetCDF Extension Pack
Loading...
Searching...
No Matches
cdfdispatch.h
Go to the documentation of this file.
1
9#ifndef _CDFDISPATCH_H
10#define _CDFDISPATCH_H
11
12#include "config.h"
13#include "ncdispatch.h"
14#include "nep.h"
15
17#ifdef NC_FORMATX_UDF4
18#define NC_FORMATX_NC_CDF NC_FORMATX_UDF4
19#else
20#define NC_FORMATX_NC_CDF NC_FORMATX_UDF0
21#endif
22
25#define NC_MAX_CDF_DIMS 32
26
27/* Stuff below is for cdf files. */
33
34typedef struct NC_CDF_FILE_INFO
35{
36 void *id;
38
39#if defined(__cplusplus)
40extern "C" {
41#endif
42
43 extern int
44 NC_CDF_open(const char *path, int mode, int basepe, size_t *chunksizehintp,
45 void *parameters, const NC_Dispatch *, int);
46
47 extern int
48 NC_CDF_abort(int ncid);
49
50 extern int
51 NC_CDF_close(int ncid, void *ignore);
52
53 extern int
54 NC_CDF_inq_format(int ncid, int *formatp);
55
56 extern int
57 NC_CDF_inq_format_extended(int ncid, int *formatp, int *modep);
58
59 extern int
60 NC_CDF_get_vara(int ncid, int varid, const size_t *start, const size_t *count,
61 void *value, nc_type);
62
63 extern NC_Dispatch*
65
66 extern int
67 NC_CDF_finalize(void);
68
69#define CDF_INIT_OK() (NC_CDF_initialize() != NULL)
70#define CDF_INIT_AND_ASSIGN(ret) do { \
71 NC_Dispatch *_d = NC_CDF_initialize(); \
72 (ret) = (_d != NULL) ? NC_NOERR : NC_ENOTNC; \
73 } while(0)
74
75 extern const NC_Dispatch *CDF_dispatch_table;
76
77#if defined(__cplusplus)
78}
79#endif
80
81#endif /*_CDFDISPATCH_H */
int NC_CDF_inq_format_extended(int ncid, int *formatp, int *modep)
Definition cdffunc.c:63
const NC_Dispatch * CDF_dispatch_table
Definition cdfdispatch.c:116
int NC_CDF_finalize(void)
Definition cdfdispatch.c:138
int NC_CDF_abort(int ncid)
Definition cdffile.c:755
struct NC_VAR_CDF_INFO NC_VAR_CDF_INFO_T
int NC_CDF_open(const char *path, int mode, int basepe, size_t *chunksizehintp, void *parameters, const NC_Dispatch *, int)
Definition cdffile.c:625
struct NC_CDF_FILE_INFO NC_CDF_FILE_INFO_T
int NC_CDF_get_vara(int ncid, int varid, const size_t *start, const size_t *count, void *value, nc_type)
int NC_CDF_inq_format(int ncid, int *formatp)
Definition cdffunc.c:38
int NC_CDF_close(int ncid, void *ignore)
Definition cdffile.c:773
NC_Dispatch * NC_CDF_initialize(void)
Definition cdfdispatch.c:125
NetCDF Extension Pack (NEP) - Public API.
Definition cdfdispatch.h:35
void * id
Definition cdfdispatch.h:36
Definition cdfdispatch.h:29
int sdsid
Definition cdfdispatch.h:30
int cdf_data_type
Definition cdfdispatch.h:31