1 #ifndef TABLEPAR_H 2 #define TABLEPAR_H 3 4 enum { 5 TABLE_DUP_NAME = 1 << 0, 6 TABLE_DUP_LONGNAME = 1 << 1, 7 TABLE_DUP_UNITS = 1 << 2, 8 }; 9 10 typedef struct 11 { 12 int id; // Parameter number (GRIB) 13 int ltype; // Level type (GRIB) 14 int dupflags; // keep track of which attributes got strdup'ed 15 const char *name; // Parameter name 16 const char *longname; // Parameter long name 17 const char *units; // Parameter units 18 } 19 param_type; 20 21 22 void tableLink(int tableID, const param_type *pars, int npars); 23 int tableDef(int modelID, int tablegribID, const char *tablename); 24 25 int tableInqParCode(int tableID, char *name, int *code); 26 27 #endif 28 /* 29 * Local Variables: 30 * c-file-style: "Java" 31 * c-basic-offset: 2 32 * indent-tabs-mode: nil 33 * show-trailing-whitespace: t 34 * require-trailing-newline: t 35 * End: 36 */ 37