ProductConf.h
1 /*
2 
3 MIT License
4 
5 Copyright (c) 2017 FMI Open Development / Markus Peura, first.last@fmi.fi
6 
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13 
14 The above copyright notice and this permission notice shall be included in all
15 copies or substantial portions of the Software.
16 
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 SOFTWARE.
24 
25 */
26 /*
27 Part of Rack development has been done in the BALTRAD projects part-financed
28 by the European Union (European Regional Development Fund and European
29 Neighbourhood Partnership Instrument, Baltic Sea Region Programme 2007-2013)
30 */
31 /*
32  * ProductOp.h
33  *
34  * Created on: 2021/10
35  * Author: mpeura
36  */
37 
38 #ifndef RACK_PRODUCT_CONF
39 #define RACK_PRODUCT_CONF "ProductConf"
40 
41 #include <string>
42 
43 /*
44 #include <stdexcept>
45 #include <iostream>
46 #include <list>
47 #include <map>
48 #include <set>
49 */
50 
51 #include "data/DataSelector.h"
52 #include "data/ODIMPath.h"
53 
54 
55 
56 namespace rack {
57 
58 
60 
63 class ProductConf {
64 
65 public:
66 
68  inline
70 
72  ProductConf(const ProductConf & conf);
73 
74  // INPUT:
75 
76  // Could be hidden (esp. if some quantity is definite?)
77  DataSelector dataSelector;
78 
79  // OUTPUT
80 
82  std::string targetEncoding;
83 
85 
93 
95  enum OutputDataVerbosity {DEFAULT=0, INTERMEDIATE=1, DEBUG=2, QUALITY=4};
97  OutputFlagger outputDataVerbosity = DEFAULT;
98  // int outputDataVerbosity = 0; // OLD
100 
104  // LegendFlagger legend = LEFT|RIGHT;
105 
106 
107 };
108 
109 
110 } // namespace rack
111 
112 
113 #endif /* RACK_PRODUCT_CONF */
Flagger accepting values of enum type E.
Definition: Flags.h:763
Tool for selecting datasets based on paths, quantities and min/max elevations.
Definition: DataSelector.h:112
Definition: ODIMPath.h:82
Shared properties for meteorological products and Cartesian products (composites and single-radar ima...
Definition: ProductConf.h:63
std::string targetEncoding
How the (main) output is encoded.
Definition: ProductConf.h:82
ODIMPathElem appendResults
If set, appends outputs in an hdf5 structure instead of overwriting.
Definition: ProductConf.h:92
ProductConf()
Default constructor.
Definition: ProductConf.h:69
OutputDataVerbosity
Determines if also intermediate results (1) are saved. See –store.
Definition: ProductConf.h:95
Definition: DataSelector.cpp:44