libwreport  2.8
codetables.h
Go to the documentation of this file.
1 /*
2  * wreport/codetables - Code table constants
3  *
4  * Copyright (C) 2011 ARPA-SIM <urpsim@smr.arpa.emr.it>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * Author: Enrico Zini <enrico@enricozini.com>
20  */
21 
22 #ifndef WREPORT_CODETABLES
23 #define WREPORT_CODETABLES
24 
30 namespace wreport {
31 
32 // 7 bit, leftmost is bit 1
33 namespace BUFR08001 {
35 const unsigned int MISSING = 0x01; /* 7 */
37 const unsigned int SIGWIND = 0x02; /* 6 */
38 const unsigned int SIGTH = 0x04; /* 5 */
39 const unsigned int MAXWIND = 0x08; /* 4 */
40 const unsigned int TROPO = 0x10; /* 3 */
41 const unsigned int STD = 0x20; /* 2 */
42 const unsigned int SURFACE = 0x40; /* 1 */
43 const unsigned int ALL_MISSING = 0x7f;
45 }
46 
47 // 18 bit, leftmost is bit 1
48 namespace BUFR08042 {
50 const unsigned int MISSING = 0x00001; /* 18 */
52 const unsigned int H2PRESS = 0x00002; /* 17 */
53 const unsigned int RESERVED = 0x00004; /* 16 */
54 const unsigned int REGIONAL = 0x00008; /* 15 */
55 const unsigned int TOPWIND = 0x00010; /* 14 */
56 const unsigned int ENDMISSW = 0x00020; /* 13 */
57 const unsigned int BEGMISSW = 0x00040; /* 12 */
58 const unsigned int ENDMISSH = 0x00080; /* 11 */
59 const unsigned int BEGMISSH = 0x00100; /* 10 */
60 const unsigned int ENDMISST = 0x00200; /* 9 */
61 const unsigned int BEGMISST = 0x00400; /* 8 */
62 const unsigned int SIGWIND = 0x00800; /* 7 */
63 const unsigned int SIGHUM = 0x01000; /* 6 */
64 const unsigned int SIGTEMP = 0x02000; /* 5 */
65 const unsigned int MAXWIND = 0x04000; /* 4 */
66 const unsigned int TROPO = 0x08000; /* 3 */
67 const unsigned int STD = 0x10000; /* 2 */
68 const unsigned int SURFACE = 0x20000; /* 1 */
69 const unsigned int ALL_MISSING = 0x3ffff;
71 }
72 
73 }
74 
75 /* vim:set ts=4 sw=4: */
76 #endif