source: XIOS/trunk/extern/src_netcdf4/dapdump.h @ 409

Last change on this file since 409 was 409, checked in by ymipsl, 11 years ago

Add improved nectdf internal library src

YM

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
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
9typedef struct Dimschema {
10    int dimid;
11/*    int cloneid;*/
12    size_t size;
13    char name[NC_MAX_NAME+1];
14} Dim;
15
16typedef 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
29typedef 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
42extern int dumpmetadata(int ncid, NChdr**);
43extern void dumpdata1(nc_type nctype, size_t index, char* data);
44
45extern char* dumppath(struct CDFnode* node);
46extern char* dumptree(CDFnode* root);
47extern char* dumpvisible(CDFnode* root);
48extern char* dumpnode(CDFnode* node);
49
50extern char* dumpalign(struct NCalignment*);
51
52extern char* dumpcachenode(NCcachenode* node);
53extern char* dumpcache(NCcache* cache);
54
55extern int dumpmetadata(int ncid, NChdr** hdrp);
56extern void dumpdata1(nc_type nctype, size_t index, char* data);
57extern char* dumpprojections(NClist* projections);
58extern char* dumpprojection(DCEprojection* proj);
59extern char* dumpselections(NClist* selections);
60extern char* dumpselection(DCEselection* sel);
61extern char* dumpconstraint(DCEconstraint* con);
62extern char* dumpsegments(NClist* segments);
63extern char* dumpslice(DCEslice* slice);
64extern char* dumpslices(DCEslice* slice, unsigned int rank);
65
66
67#endif /*DUMP_H*/
68
Note: See TracBrowser for help on using the repository browser.