libdballe 5.10
vars.h
Go to the documentation of this file.
00001 #ifndef DBA_MSG_VARS_H
00002 #define DBA_MSG_VARS_H
00003 
00015 #include <wreport/varinfo.h>
00016 
00017 namespace dballe {
00018 
00022 struct MsgVarShortcut {
00024     wreport::Varcode code;
00026     int ltype1;
00028     int l1;
00030     int ltype2;
00032     int l2;
00034     int pind;
00036     int p1;
00038     int p2;
00039 };
00040 
00044 extern struct MsgVarShortcut shortcutTable[];
00045 
00047 int resolve_var(const char* name);
00048 
00050 int resolve_var_substring(const char* name, int len);
00051 
00053 #define DBA_MSG_BLOCK 0
00054 
00055 #define DBA_MSG_STATION 1
00056 
00057 #define DBA_MSG_FLIGHT_REG_NO 2
00058 
00059 #define DBA_MSG_IDENT 3
00060 
00061 #define DBA_MSG_ST_NAME 4
00062 
00063 #define DBA_MSG_ST_NAME_ICAO 5
00064 
00065 #define DBA_MSG_REP_MEMO 6
00066 
00067 #define DBA_MSG_POLL_LCODE 7
00068 
00069 #define DBA_MSG_POLL_SCODE 8
00070 
00071 #define DBA_MSG_POLL_GEMSCODE 9
00072 
00073 #define DBA_MSG_POLL_SOURCE 10
00074 
00075 #define DBA_MSG_POLL_ATYPE 11
00076 
00077 #define DBA_MSG_POLL_TTYPE 12
00078 
00079 #define DBA_MSG_ST_TYPE 13
00080 
00081 #define DBA_MSG_WIND_INST 14
00082 
00083 #define DBA_MSG_TEMP_PRECISION 15
00084 
00085 #define DBA_MSG_NAVSYS 16
00086 
00087 #define DBA_MSG_DATA_RELAY 17
00088 
00089 #define DBA_MSG_FLIGHT_ROLL 18
00090 
00091 #define DBA_MSG_LATLON_SPEC 19
00092 
00093 #define DBA_MSG_YEAR 20
00094 
00095 #define DBA_MSG_MONTH 21
00096 
00097 #define DBA_MSG_DAY 22
00098 
00099 #define DBA_MSG_HOUR 23
00100 
00101 #define DBA_MSG_MINUTE 24
00102 
00103 #define DBA_MSG_SECOND 25
00104 
00105 #define DBA_MSG_LATITUDE 26
00106 
00107 #define DBA_MSG_LONGITUDE 27
00108 
00109 #define DBA_MSG_ISOBARIC_SURFACE 28
00110 
00111 #define DBA_MSG_HEIGHT_RELEASE 29
00112 
00113 #define DBA_MSG_HEIGHT_STATION 30
00114 
00115 #define DBA_MSG_HEIGHT_BARO 31
00116 
00117 #define DBA_MSG_FLIGHT_PHASE 32
00118 
00119 #define DBA_MSG_TIMESIG 33
00120 
00121 #define DBA_MSG_STATION_HEIGHT_QUALITY 34
00122 
00123 #define DBA_MSG_CLOUD_N 35
00124 
00125 #define DBA_MSG_CLOUD_N4 36
00126 
00127 #define DBA_MSG_CLOUD_C4 37
00128 
00129 #define DBA_MSG_CLOUD_H4 38
00130 
00131 #define DBA_MSG_CLOUD_N3 39
00132 
00133 #define DBA_MSG_CLOUD_C3 40
00134 
00135 #define DBA_MSG_CLOUD_H3 41
00136 
00137 #define DBA_MSG_CLOUD_N2 42
00138 
00139 #define DBA_MSG_CLOUD_C2 43
00140 
00141 #define DBA_MSG_CLOUD_H2 44
00142 
00143 #define DBA_MSG_CLOUD_N1 45
00144 
00145 #define DBA_MSG_CLOUD_C1 46
00146 
00147 #define DBA_MSG_CLOUD_H1 47
00148 
00149 #define DBA_MSG_CLOUD_CH 48
00150 
00151 #define DBA_MSG_CLOUD_CM 49
00152 
00153 #define DBA_MSG_CLOUD_CL 50
00154 
00155 #define DBA_MSG_CLOUD_NH 51
00156 
00157 #define DBA_MSG_CLOUD_HH 52
00158 
00159 #define DBA_MSG_WIND_DIR 53
00160 
00161 #define DBA_MSG_WIND_SPEED 54
00162 
00163 #define DBA_MSG_EX_CCW_WIND 55
00164 
00165 #define DBA_MSG_EX_CW_WIND 56
00166 
00167 #define DBA_MSG_WIND_GUST_MAX_SPEED 57
00168 
00169 #define DBA_MSG_WIND_GUST_MAX_DIR 58
00170 
00171 #define DBA_MSG_QNH 59
00172 
00173 #define DBA_MSG_WET_TEMP_2M 60
00174 
00175 #define DBA_MSG_TEMP_2M 61
00176 
00177 #define DBA_MSG_DEWPOINT_2M 62
00178 
00179 #define DBA_MSG_HUMIDITY 63
00180 
00181 #define DBA_MSG_PRESS_MSL 64
00182 
00183 #define DBA_MSG_ST_DIR 65
00184 
00185 #define DBA_MSG_ST_SPEED 66
00186 
00187 #define DBA_MSG_MEAS_EQUIP_TYPE 67
00188 
00189 #define DBA_MSG_SONDE_TYPE 68
00190 
00191 #define DBA_MSG_SONDE_METHOD 69
00192 
00193 #define DBA_MSG_SONDE_CORRECTION 70
00194 
00195 #define DBA_MSG_SONDE_TRACKING 71
00196 
00197 #define DBA_MSG_PRESS 72
00198 
00199 #define DBA_MSG_HEIGHT_ANEM 73
00200 
00201 #define DBA_MSG_TOT_SNOW 74
00202 
00203 #define DBA_MSG_VISIBILITY 75
00204 
00205 #define DBA_MSG_PRES_WTR 76
00206 
00207 #define DBA_MSG_METAR_WTR 77
00208 
00209 #define DBA_MSG_STATE_GROUND 78
00210 
00211 #define DBA_MSG_WATER_TEMP 79
00212 
00213 #define DBA_MSG_PAST_WTR1_6H 80
00214 
00215 #define DBA_MSG_PAST_WTR2_6H 81
00216 
00217 #define DBA_MSG_PRESS_TEND 82
00218 
00219 #define DBA_MSG_PAST_WTR1_3H 83
00220 
00221 #define DBA_MSG_PAST_WTR2_3H 84
00222 
00223 #define DBA_MSG_PRESS_24H 85
00224 
00225 #define DBA_MSG_PRESS_3H 86
00226 
00227 #define DBA_MSG_TOT_PREC24 87
00228 
00229 #define DBA_MSG_TOT_PREC12 88
00230 
00231 #define DBA_MSG_TOT_PREC6 89
00232 
00233 #define DBA_MSG_TOT_PREC3 90
00234 
00235 #define DBA_MSG_TOT_PREC1 91
00236 
00237 #define DBA_MSG_VARTABLE_SIZE 91
00238 
00239 }
00240 
00241 #endif
00242