libdballe  7.6
vars.h
Go to the documentation of this file.
1 #ifndef DBA_MSG_VARS_H
2 #define DBA_MSG_VARS_H
3 
15 #include <wreport/varinfo.h>
16 
17 namespace dballe {
18 
24  wreport::Varcode code;
26  int ltype1;
28  int l1;
30  int ltype2;
32  int l2;
34  int pind;
36  int p1;
38  int p2;
39 };
40 
44 extern struct MsgVarShortcut shortcutTable[];
45 
47 int resolve_var(const char* name);
48 
50 int resolve_var_substring(const char* name, int len);
51 
53 #define DBA_MSG_BLOCK 0
54 
55 #define DBA_MSG_STATION 1
56 
57 #define DBA_MSG_FLIGHT_REG_NO 2
58 
59 #define DBA_MSG_IDENT 3
60 
61 #define DBA_MSG_ST_NAME 4
62 
63 #define DBA_MSG_ST_NAME_ICAO 5
64 
65 #define DBA_MSG_REP_MEMO 6
66 
67 #define DBA_MSG_POLL_LCODE 7
68 
69 #define DBA_MSG_POLL_SCODE 8
70 
71 #define DBA_MSG_POLL_GEMSCODE 9
72 
73 #define DBA_MSG_POLL_SOURCE 10
74 
75 #define DBA_MSG_POLL_ATYPE 11
76 
77 #define DBA_MSG_POLL_TTYPE 12
78 
79 #define DBA_MSG_ST_TYPE 13
80 
81 #define DBA_MSG_WIND_INST 14
82 
83 #define DBA_MSG_TEMP_PRECISION 15
84 
85 #define DBA_MSG_NAVSYS 16
86 
87 #define DBA_MSG_DATA_RELAY 17
88 
89 #define DBA_MSG_FLIGHT_ROLL 18
90 
91 #define DBA_MSG_LATLON_SPEC 19
92 
93 #define DBA_MSG_YEAR 20
94 
95 #define DBA_MSG_MONTH 21
96 
97 #define DBA_MSG_DAY 22
98 
99 #define DBA_MSG_HOUR 23
100 
101 #define DBA_MSG_MINUTE 24
102 
103 #define DBA_MSG_SECOND 25
104 
105 #define DBA_MSG_LATITUDE 26
106 
107 #define DBA_MSG_LONGITUDE 27
108 
109 #define DBA_MSG_ISOBARIC_SURFACE 28
110 
111 #define DBA_MSG_HEIGHT_RELEASE 29
112 
113 #define DBA_MSG_HEIGHT_STATION 30
114 
115 #define DBA_MSG_HEIGHT_BARO 31
116 
117 #define DBA_MSG_FLIGHT_PHASE 32
118 
119 #define DBA_MSG_TIMESIG 33
120 
121 #define DBA_MSG_STATION_HEIGHT_QUALITY 34
122 
123 #define DBA_MSG_CLOUD_N 35
124 
125 #define DBA_MSG_CLOUD_N4 36
126 
127 #define DBA_MSG_CLOUD_C4 37
128 
129 #define DBA_MSG_CLOUD_H4 38
130 
131 #define DBA_MSG_CLOUD_N3 39
132 
133 #define DBA_MSG_CLOUD_C3 40
134 
135 #define DBA_MSG_CLOUD_H3 41
136 
137 #define DBA_MSG_CLOUD_N2 42
138 
139 #define DBA_MSG_CLOUD_C2 43
140 
141 #define DBA_MSG_CLOUD_H2 44
142 
143 #define DBA_MSG_CLOUD_N1 45
144 
145 #define DBA_MSG_CLOUD_C1 46
146 
147 #define DBA_MSG_CLOUD_H1 47
148 
149 #define DBA_MSG_CLOUD_CH 48
150 
151 #define DBA_MSG_CLOUD_CM 49
152 
153 #define DBA_MSG_CLOUD_CL 50
154 
155 #define DBA_MSG_CLOUD_NH 51
156 
157 #define DBA_MSG_CLOUD_HH 52
158 
159 #define DBA_MSG_WIND_DIR 53
160 
161 #define DBA_MSG_WIND_SPEED 54
162 
163 #define DBA_MSG_EX_CCW_WIND 55
164 
165 #define DBA_MSG_EX_CW_WIND 56
166 
167 #define DBA_MSG_WIND_GUST_MAX_SPEED 57
168 
169 #define DBA_MSG_WIND_GUST_MAX_DIR 58
170 
171 #define DBA_MSG_QNH 59
172 
173 #define DBA_MSG_TEMP_2M 60
174 
175 #define DBA_MSG_WET_TEMP_2M 61
176 
177 #define DBA_MSG_DEWPOINT_2M 62
178 
179 #define DBA_MSG_HUMIDITY 63
180 
181 #define DBA_MSG_PRESS_MSL 64
182 
183 #define DBA_MSG_ST_DIR 65
184 
185 #define DBA_MSG_ST_SPEED 66
186 
187 #define DBA_MSG_MEAS_EQUIP_TYPE 67
188 
189 #define DBA_MSG_SONDE_TYPE 68
190 
191 #define DBA_MSG_SONDE_METHOD 69
192 
193 #define DBA_MSG_SONDE_CORRECTION 70
194 
195 #define DBA_MSG_SONDE_TRACKING 71
196 
197 #define DBA_MSG_PRESS 72
198 
199 #define DBA_MSG_HEIGHT_ANEM 73
200 
201 #define DBA_MSG_TOT_SNOW 74
202 
203 #define DBA_MSG_VISIBILITY 75
204 
205 #define DBA_MSG_PRES_WTR 76
206 
207 #define DBA_MSG_METAR_WTR 77
208 
209 #define DBA_MSG_STATE_GROUND 78
210 
211 #define DBA_MSG_WATER_TEMP 79
212 
213 #define DBA_MSG_PAST_WTR1_6H 80
214 
215 #define DBA_MSG_PAST_WTR2_6H 81
216 
217 #define DBA_MSG_PRESS_TEND 82
218 
219 #define DBA_MSG_PAST_WTR1_3H 83
220 
221 #define DBA_MSG_PAST_WTR2_3H 84
222 
223 #define DBA_MSG_PRESS_24H 85
224 
225 #define DBA_MSG_PRESS_3H 86
226 
227 #define DBA_MSG_TOT_PREC24 87
228 
229 #define DBA_MSG_TOT_PREC12 88
230 
231 #define DBA_MSG_TOT_PREC6 89
232 
233 #define DBA_MSG_TOT_PREC3 90
234 
235 #define DBA_MSG_TOT_PREC1 91
236 
237 #define DBA_MSG_VARTABLE_SIZE 91
238 
239 }
240 
241 #endif
242 
wreport::Varcode code
Variable description code.
Definition: vars.h:24
int p2
Time range P2 indicator.
Definition: vars.h:38
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
int l2
L2 value of the level.
Definition: vars.h:32
int p1
Time range P1 indicator.
Definition: vars.h:36
int ltype2
Type of the second level.
Definition: vars.h:30
int resolve_var(const char *name)
Resolve a var name to a var ID.
Full data corresponding to a shortcut ID.
Definition: vars.h:22
int ltype1
Type of the first level.
Definition: vars.h:26
int resolve_var_substring(const char *name, int len)
Resolve a var name to a var ID, avoiding to compute the length of name.
int l1
L1 value of the level.
Definition: vars.h:28
struct MsgVarShortcut shortcutTable[]
Array with all the full expansions of the shortcut IDs, indexed by shortcut ID.
int pind
Time range type indicator.
Definition: vars.h:34