netcdf-c/libdap2/getvara.h
dmh af566dd300 In preparation for adding dap4 support, I have cleaned up
the libdap2 code to make it dap2 protocol + netcdf classic
only.
2014-03-24 14:02:52 -06:00

40 lines
1.1 KiB
C

/*********************************************************************
* Copyright 1993, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
*********************************************************************/
#ifndef GETVARA_H
#define GETVARA_H
/*
Define the overall maximum cache size
and the per-retrieval maximum size
*/
/* Use slightly misspelled names to avoid conflicts */
#define KILOBYTE 0x400
#define MEGBYTE 0x100000
#define GIGBYTE 0x40000000
/* The cache limit is in terms of bytes */
#define DFALTCACHELIMIT (100*MEGBYTE)
/* The fetch limit is in terms of bytes */
#define DFALTFETCHLIMIT (100*KILOBYTE)
/* WARNING: The small limit is in terms of the # of vector elements */
#define DFALTSMALLLIMIT (4096)
/* Max number of cache nodes */
#define DFALTCACHECOUNT (100)
typedef struct Getvara {
void* memory; /* where result is put*/
struct NCcachenode* cache;
struct DCEprojection* varaprojection;
/* associated nc variable*/
nc_type dsttype;
CDFnode* target;
int wholevariable;
} Getvara;
#endif /*GETVARA_H*/