1 | /********************************************************************* |
---|
2 | * Copyright 1993, UCAR/Unidata |
---|
3 | * See netcdf/COPYRIGHT file for copying and redistribution conditions. |
---|
4 | * $Header: /upc/share/CVS/netcdf-3/libncdap3/dapdump.h,v 1.9 2010/04/10 20:56:37 dmh Exp $ |
---|
5 | *********************************************************************/ |
---|
6 | #ifndef DUMP_H |
---|
7 | #define DUMP_H |
---|
8 | |
---|
9 | typedef struct Dimschema { |
---|
10 | int dimid; |
---|
11 | /* int cloneid;*/ |
---|
12 | size_t size; |
---|
13 | char name[NC_MAX_NAME+1]; |
---|
14 | } Dim; |
---|
15 | |
---|
16 | typedef struct Varschema { |
---|
17 | int varid; |
---|
18 | /* int cloneid;*/ |
---|
19 | char name[NC_MAX_NAME+1]; |
---|
20 | nc_type nctype; |
---|
21 | int ndims; |
---|
22 | int dimids[NC_MAX_VAR_DIMS]; |
---|
23 | size_t nelems; /*# elements*/ |
---|
24 | size_t alloc; /* malloc size*/ |
---|
25 | int natts; |
---|
26 | NCattribute* atts; |
---|
27 | } Var; |
---|
28 | |
---|
29 | typedef struct NChdr { |
---|
30 | int ncid; |
---|
31 | int format; |
---|
32 | int ndims; |
---|
33 | int nvars; |
---|
34 | int ngatts; |
---|
35 | int unlimid; /* id of the (1) unlimited dimension*/ |
---|
36 | Dim* dims; |
---|
37 | Var* vars; |
---|
38 | NCattribute* gatts; |
---|
39 | NCbytes* content; |
---|
40 | } NChdr; |
---|
41 | |
---|
42 | extern int dumpmetadata(int ncid, NChdr**); |
---|
43 | extern void dumpdata1(nc_type nctype, size_t index, char* data); |
---|
44 | |
---|
45 | extern char* dumppath(struct CDFnode* node); |
---|
46 | extern char* dumptree(CDFnode* root); |
---|
47 | extern char* dumpvisible(CDFnode* root); |
---|
48 | extern char* dumpnode(CDFnode* node); |
---|
49 | |
---|
50 | extern char* dumpalign(struct NCalignment*); |
---|
51 | |
---|
52 | extern char* dumpcachenode(NCcachenode* node); |
---|
53 | extern char* dumpcache(NCcache* cache); |
---|
54 | |
---|
55 | extern int dumpmetadata(int ncid, NChdr** hdrp); |
---|
56 | extern void dumpdata1(nc_type nctype, size_t index, char* data); |
---|
57 | extern char* dumpprojections(NClist* projections); |
---|
58 | extern char* dumpprojection(DCEprojection* proj); |
---|
59 | extern char* dumpselections(NClist* selections); |
---|
60 | extern char* dumpselection(DCEselection* sel); |
---|
61 | extern char* dumpconstraint(DCEconstraint* con); |
---|
62 | extern char* dumpsegments(NClist* segments); |
---|
63 | extern char* dumpslice(DCEslice* slice); |
---|
64 | extern char* dumpslices(DCEslice* slice, unsigned int rank); |
---|
65 | |
---|
66 | |
---|
67 | #endif /*DUMP_H*/ |
---|
68 | |
---|