IODA Bundle
ColumnInfo.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019- ECMWF.
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 
12 /// @author Simon Smart
13 /// @date March 2019
14 
15 #ifndef odc_api_ColumnInfo_H
16 #define odc_api_ColumnInfo_H
17 
18 #include <string>
19 #include <vector>
20 
21 #include "odc/api/ColumnType.h"
22 
23 namespace odc {
24 namespace api {
25 
26 //----------------------------------------------------------------------------------------------------------------------
27 
28 struct ColumnInfo {
29 
30  struct Bit {
31  std::string name;
32  int size;
33  int offset;
34  };
35 
36  std::string name;
38  size_t decodedSize;
39  std::vector<Bit> bitfield;
40 };
41 
42 //----------------------------------------------------------------------------------------------------------------------
43 
44 } // namespace api
45 } // namespace odc
46 
47 #endif // odc_api_StridedData_H
Definition: ColumnInfo.h:23
std::string name
Definition: ColumnInfo.h:36
std::vector< Bit > bitfield
Definition: ColumnInfo.h:39