1 
2 #pragma once
3 
4 // You can include this file (if you work in C++) but you don't have to.
5 // If you call this api from another language (Python, C#), you see integers.
6 // This header file tells you what these integers mean.
7 // These enum's may grow in the future. More values can be added.
8 
9 namespace LercNS
10 {
11   enum class ErrCode : int
12   {
13     Ok = 0,
14     Failed,
15     WrongParam,
16     BufferTooSmall,
17     NaN
18   };
19 
20   enum class DataType : int
21   {
22     dt_char = 0,
23     dt_uchar,
24     dt_short,
25     dt_ushort,
26     dt_int,
27     dt_uint,
28     dt_float,
29     dt_double
30   };
31 
32   enum class InfoArrOrder : int
33   {
34     version = 0,
35     dataType,
36     nDim,
37     nCols,
38     nRows,
39     nBands,
40     nValidPixels,  // for 1st band
41     blobSize,
42     nMasks  // 0 - all valid, 1 - same mask for all bands, nBands - masks can differ between bands
43   };
44 
45   enum class DataRangeArrOrder : int
46   {
47     zMin = 0,
48     zMax,
49     maxZErrUsed
50   };
51 
52 }    // namespace
53 
54