awips2/ncep/gov.noaa.nws.ncep.ui.nsharp/BigNsharp/config.h
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

38 lines
1.3 KiB
C

#ifndef _CONFIG_H
#define _CONFIG_H
#define MAXDATATYPES 32
#define LOCALNSHARPCONFIGFILE "nsharpconf"
#define GLOBALNSHARPCONFIGFILE "/NAWIPS/nascrpts/resource/nsharpconf"
typedef struct configdata_t {
char menuname[16]; /* Name as appears on menu */
char filename[256]; /* Where to find the data */
char searchpattern[256]; /* Wildcard sequence for patterns */
char timelist[256][16]; /* times in data file */
char station[16]; /* Selected station */
char time[16]; /* Selected time */
char stations[4096][20]; /* Stations in data file */
int ntimes; /* Number of times in data file */
int timeptr; /* Index of this time in the list */
int nstns; /* Number of stations in data file */
int stype; /* Sounding type (see globals.h) */
int id; /* index of this entry in config file */
} configdata_t;
extern configdata_t *curdatatype_ptr; /* Pointer to current data type */
extern configdata_t datatype[];
extern int ndatatypes;
typedef struct configsymtab {
int symbol;
char name[16];
} configsymtab;
/* Function prototypes */
int readconfigfile(void);
void setconfigdatapointer(int num);
char *getlatestfile(char *searchstring);
#endif /* _CONFIG_H */