libdballe  8.6
fwd.h
1 #ifndef DBALLE_FWD_H
2 #define DBALLE_FWD_H
3 
4 #include <limits.h>
5 
6 namespace dballe {
7 
9 enum class Encoding {
10  BUFR = 0,
11  CREX = 1,
12 };
13 
15 enum class MessageType {
16  GENERIC = 1,
17  SYNOP = 2,
18  PILOT = 3,
19  TEMP = 4,
20  TEMP_SHIP = 5,
21  AIREP = 6,
22  AMDAR = 7,
23  ACARS = 8,
24  SHIP = 9,
25  BUOY = 10,
26  METAR = 11,
27  SAT = 12,
28  POLLUTION = 13,
29 };
30 
34 static constexpr int MISSING_INT = INT_MAX;
35 
36 // Types
37 struct Date;
38 struct Time;
39 struct Datetime;
40 struct DatetimeRange;
41 struct Coords;
42 struct LatRange;
43 struct LonRange;
44 struct Level;
45 struct Trange;
46 struct Ident;
47 struct Station;
48 struct DBStation;
49 
50 struct Value;
51 struct DBValue;
52 
53 // Aggregates
54 struct Values;
55 struct DBValues;
56 struct Data;
57 struct Query;
58 struct Message;
59 
60 // File
61 struct File;
62 struct BinaryMessage;
63 
64 // Importer
65 struct ImporterOptions;
66 struct Importer;
67 
68 // Exporter
69 struct ExporterOptions;
70 struct Exporter;
71 
72 struct DB;
73 struct DBConnectOptions;
74 struct DBImportOptions;
75 struct DBInsertOptions;
76 struct Transaction;
77 struct Cursor;
78 struct CursorStation;
79 struct CursorStationData;
80 struct CursorData;
81 struct CursorSummary;
82 struct CursorMessage;
83 
84 namespace db {
85 
89 enum class Format {
90  V5 = 0, // Deprecated (add C++14 attributes when possible)
91  V6 = 1, // Deprecated (add C++14 attributes when possible)
92  MEM = 2, // Deprecated (add C++14 attributes when possible)
93  MESSAGES = 3, // Deprecated (add C++14 attributes when possible)
94  V7 = 4,
95 };
96 
97 }
98 
99 }
100 
101 #endif
102