Former-commit-id:b13cbb7e00
[formerly 4909e0dd166e43c22a34d96aa744f51db8a7d6c0] Former-commit-id:3904c4ccf5
61 lines
2.1 KiB
C
61 lines
2.1 KiB
C
/************************************************************************
|
|
* guid.h *
|
|
* *
|
|
* Header file for graphic user interface data representation module. *
|
|
* *
|
|
* There are two levels in the data representation: group and products, *
|
|
* i.e. the data products are organized into groups. Global variable *
|
|
* guid_grp_head points to the head of structure guid_grp link list and *
|
|
* the total number of the groups is saved in the global variable *
|
|
* guid_ngrp. *
|
|
* *
|
|
** *
|
|
* Log: *
|
|
* C. Lin 6/95 *
|
|
* S. Jacobs/NCEP 11/97 Fixed comment for guid_ngrp *
|
|
***********************************************************************/
|
|
|
|
#ifndef _guid_H_
|
|
#define _guid_H_
|
|
|
|
#define MAX_GRP_NAME 30
|
|
#define MAX_PROD_NAME 30
|
|
#define MAX_KEY 30
|
|
|
|
/*
|
|
* GUI data representation for each product.
|
|
*/
|
|
struct guid_prod {
|
|
char prdname[MAX_PROD_NAME]; /* product name in GUI */
|
|
char key[MAX_KEY]; /* search key in master table */
|
|
int index; /* index to master table */
|
|
};
|
|
|
|
|
|
/*
|
|
* GUI data representation for each group.
|
|
*/
|
|
struct guid_grp {
|
|
char grpname[MAX_GRP_NAME]; /* group name in GUI */
|
|
struct guid_prod *prod; /* array of products */
|
|
int nprod; /* # of products */
|
|
struct guid_grp *nextgrp; /* next group */
|
|
};
|
|
|
|
|
|
extern struct guid_grp *guid_grp_head; /* global variable */
|
|
/* base pointer to */
|
|
/* GUI group structure */
|
|
|
|
extern int guid_ngrp; /* global variable */
|
|
/* total number of groups */
|
|
|
|
|
|
int guidInit(char *filename); /* return # of groups */
|
|
|
|
#undef MAX_GRP_NAME
|
|
#undef MAX_PROD_NAME
|
|
#undef MAX_KEY
|
|
|
|
#endif /* _guid_H_ */
|
|
|