libdballe 9.6
shortcuts.h
1#ifndef DBALLE_CORE_SHORTCUTS_H
2#define DBALLE_CORE_SHORTCUTS_H
3
4#include <dballe/types.h>
5#include <wreport/varinfo.h>
6#include <iosfwd>
7
8namespace dballe {
9namespace impl {
10
12{
13 bool station_data;
14 Level level;
15 Trange trange;
17
18 static const Shortcut& by_name(const char* name);
19 static const Shortcut& by_name(const std::string& name);
20 static const Shortcut& by_name(const char* name, unsigned len);
21
22 bool operator==(const Shortcut& o) const { return std::tie(station_data, level, trange, code) == std::tie(o.station_data, o.level, o.trange, o.code); }
23};
24
25std::ostream& operator<<(std::ostream& out, const Shortcut& shortcut);
26
27
28namespace sc {
29
30extern const Shortcut st_type;
31extern const Shortcut st_name;
32extern const Shortcut st_name_icao;
33extern const Shortcut rep_memo;
34extern const Shortcut report;
35extern const Shortcut network;
36extern const Shortcut poll_lcode;
37extern const Shortcut poll_scode;
38extern const Shortcut poll_gemscode;
39extern const Shortcut poll_source;
40extern const Shortcut poll_atype;
41extern const Shortcut poll_ttype;
42extern const Shortcut flight_reg_no;
43extern const Shortcut flight_phase;
44extern const Shortcut flight_roll;
45extern const Shortcut navsys;
46extern const Shortcut data_relay;
47extern const Shortcut wind_inst;
48extern const Shortcut temp_precision;
49extern const Shortcut latlon_spec;
50extern const Shortcut timesig;
51extern const Shortcut block;
52extern const Shortcut station;
53extern const Shortcut ident;
54extern const Shortcut year;
55extern const Shortcut month;
56extern const Shortcut day;
57extern const Shortcut hour;
58extern const Shortcut minute;
59extern const Shortcut second;
60extern const Shortcut latitude;
61extern const Shortcut longitude;
62extern const Shortcut height_station;
63extern const Shortcut height_baro;
64extern const Shortcut height_release;
65extern const Shortcut station_height_quality;
66extern const Shortcut isobaric_surface;
67extern const Shortcut st_dir;
68extern const Shortcut st_speed;
69extern const Shortcut meas_equip_type;
70extern const Shortcut sonde_type;
71extern const Shortcut sonde_method;
72extern const Shortcut sonde_correction;
73extern const Shortcut sonde_tracking;
74extern const Shortcut press;
75extern const Shortcut press_3h;
76extern const Shortcut press_24h;
77extern const Shortcut water_temp;
78extern const Shortcut height_anem;
79extern const Shortcut press_tend;
80extern const Shortcut visibility;
81extern const Shortcut pres_wtr;
82extern const Shortcut past_wtr1_3h;
83extern const Shortcut past_wtr1_6h;
84extern const Shortcut past_wtr2_3h;
85extern const Shortcut past_wtr2_6h;
86extern const Shortcut metar_wtr;
87extern const Shortcut tot_prec1;
88extern const Shortcut tot_prec3;
89extern const Shortcut tot_prec6;
90extern const Shortcut tot_prec12;
91extern const Shortcut tot_prec24;
92extern const Shortcut tot_snow;
93extern const Shortcut state_ground;
94extern const Shortcut press_msl;
95extern const Shortcut qnh;
96extern const Shortcut temp_2m;
97extern const Shortcut wet_temp_2m;
98extern const Shortcut dewpoint_2m;
99extern const Shortcut humidity;
100extern const Shortcut wind_dir;
101extern const Shortcut wind_speed;
102extern const Shortcut wind_gust_max_speed;
103extern const Shortcut wind_gust_max_dir;
104extern const Shortcut ex_ccw_wind;
105extern const Shortcut ex_cw_wind;
106extern const Shortcut cloud_n;
107extern const Shortcut cloud_nh;
108extern const Shortcut cloud_hh;
109extern const Shortcut cloud_cl;
110extern const Shortcut cloud_cm;
111extern const Shortcut cloud_ch;
112extern const Shortcut cloud_n1;
113extern const Shortcut cloud_c1;
114extern const Shortcut cloud_h1;
115extern const Shortcut cloud_n2;
116extern const Shortcut cloud_c2;
117extern const Shortcut cloud_h2;
118extern const Shortcut cloud_n3;
119extern const Shortcut cloud_c3;
120extern const Shortcut cloud_h3;
121extern const Shortcut cloud_n4;
122extern const Shortcut cloud_c4;
123extern const Shortcut cloud_h4;
124
125}
126}
127}
128
129#endif
uint16_t Varcode
Vertical level or layer.
Definition: types.h:625
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:687
Definition: shortcuts.h:12
Common base types used by most of DB-All.e code.