getvara.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*********************************************************************
  2. * Copyright 1993, UCAR/Unidata
  3. * See netcdf/COPYRIGHT file for copying and redistribution conditions.
  4. * $Header: /upc/share/CVS/netcdf-3/libncdap3/getvara.h,v 1.11 2010/05/27 21:34:08 dmh Exp $
  5. *********************************************************************/
  6. #ifndef GETVARA_H
  7. #define GETVARA_H
  8. /*
  9. Define the overall maximum cache size
  10. and the per-retrieval maximum size
  11. */
  12. /* Use slightly misspelled names to avoid conflicts */
  13. #define KILBYTE 0x400
  14. #define MEGBYTE 0x100000
  15. #define GIGBYTE 0x40000000
  16. /* The cache limit is in terms of bytes */
  17. #define DFALTCACHELIMIT (100*MEGBYTE)
  18. /* The fetch limit is in terms of bytes */
  19. #define DFALTFETCHLIMIT (100*KILBYTE)
  20. /* WARNING: The small limit is in terms of the # of vector elements */
  21. #define DFALTSMALLLIMIT (1*KILBYTE)
  22. /* Max number of cache nodes */
  23. #define DFALTCACHECOUNT (100)
  24. typedef struct Getvara {
  25. void* memory; /* where result is put*/
  26. struct NCcachenode* cache;
  27. struct DCEprojection* varaprojection;
  28. /* associated variable*/
  29. OCtype dsttype;
  30. CDFnode* target;
  31. int wholevariable;
  32. } Getvara;
  33. #endif /*GETVARA_H*/