dapdump.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. typedef struct Dimschema {
  9. int dimid;
  10. /* int cloneid;*/
  11. size_t size;
  12. char name[NC_MAX_NAME+1];
  13. } Dim;
  14. typedef struct Varschema {
  15. int varid;
  16. /* int cloneid;*/
  17. char name[NC_MAX_NAME+1];
  18. nc_type nctype;
  19. int ndims;
  20. int dimids[NC_MAX_VAR_DIMS];
  21. size_t nelems; /*# elements*/
  22. size_t alloc; /* malloc size*/
  23. int natts;
  24. NCattribute* atts;
  25. } Var;
  26. typedef struct NChdr {
  27. int ncid;
  28. int format;
  29. int ndims;
  30. int nvars;
  31. int ngatts;
  32. int unlimid; /* id of the (1) unlimited dimension*/
  33. Dim* dims;
  34. Var* vars;
  35. NCattribute* gatts;
  36. NCbytes* content;
  37. } NChdr;
  38. extern int dumpmetadata(int ncid, NChdr**);
  39. extern void dumpdata1(nc_type nctype, size_t index, char* data);
  40. extern char* dumppath(struct CDFnode* node);
  41. extern char* dumptree(CDFnode* root);
  42. extern char* dumpvisible(CDFnode* root);
  43. extern char* dumpnode(CDFnode* node);
  44. extern char* dumpalign(struct NCalignment*);
  45. extern char* dumpcachenode(NCcachenode* node);
  46. extern char* dumpcache(NCcache* cache);
  47. extern int dumpmetadata(int ncid, NChdr** hdrp);
  48. extern void dumpdata1(nc_type nctype, size_t index, char* data);
  49. extern char* dumpprojections(NClist* projections);
  50. extern char* dumpprojection(DCEprojection* proj);
  51. extern char* dumpselections(NClist* selections);
  52. extern char* dumpselection(DCEselection* sel);
  53. extern char* dumpconstraint(DCEconstraint* con);
  54. extern char* dumpsegments(NClist* segments);
  55. extern char* dumpslice(DCEslice* slice);
  56. extern char* dumpslices(DCEslice* slice, unsigned int rank);
  57. #endif /*DUMP_H*/