CARMA C++
scancache.h
1 #ifndef SCANCACHE_H
2 #define SCANCACHE_H
3 
4 /*
5  * Set the number of scan entries per cache. This should be large
6  * enough to read all points for any scan.
7  */
8 #define SCAN_CACHE_SIZE 100
9 
13 typedef struct {
14  unsigned long index; /* The integer counter of this point in the scan */
15  double azoff; /* The AZ offset (degrees) */
16  double eloff; /* The EL offset (degrees) */
17  double dkoff; /* The DK offset (degrees) */
19 
23 typedef struct {
24  ScanCacheEntry cache[SCAN_CACHE_SIZE];
25  unsigned int size;
26  unsigned currentIndex;
27 } ScanCache;
28 
32 int empty_ScanCache(ScanCache* cache);
33 
37 int extend_ScanCache(ScanCache* cache, unsigned long index, double azoff,
38  double eloff, double dkoff);
39 
43 int get_ScanCache(ScanCache* cache, double* azoff, double* eloff,
44  double* dkoff, bool* active);
45 
46 #endif
......................................................................
Definition: scancache.h:13
......................................................................
Definition: scancache.h:23