Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerlya02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:8e80217e59
[formerly3360eb6c5f
] Former-commit-id:377dcd10b9
38 lines
1.3 KiB
C
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 */
|