Loading...
Searching...
No Matches
ProductConf.h
1/*
2
3MIT License
4
5Copyright (c) 2017 FMI Open Development / Markus Peura, first.last@fmi.fi
6
7Permission is hereby granted, free of charge, to any person obtaining a copy
8of this software and associated documentation files (the "Software"), to deal
9in the Software without restriction, including without limitation the rights
10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11copies of the Software, and to permit persons to whom the Software is
12furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in all
15copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23SOFTWARE.
24
25*/
26/*
27Part of Rack development has been done in the BALTRAD projects part-financed
28by the European Union (European Regional Development Fund and European
29Neighbourhood 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 <drain/util/EnumFlags.h>
52#include "data/DataSelector.h"
53#include "data/ODIMPath.h"
54
55
56
57namespace rack {
58
59
61
65
66public:
67
69 inline
71
73 ProductConf(const ProductConf & conf);
74
75 // INPUT:
76
77 // Could be hidden (esp. if some quantity is definite?)
78 DataSelector dataSelector;
79
80 // OUTPUT
81
83 std::string targetEncoding;
84
86
94
96 enum OutputDataVerbosity {DEFAULT=0, INTERMEDIATE=1, DEBUG=2, QUALITY=4};
98 OutputFlagger outputDataVerbosity = DEFAULT;
99 // int outputDataVerbosity = 0; // OLD
101
105 // LegendFlagger legend = LEFT|RIGHT;
106
107
108};
109
110template <>
112
113// template <>
114// const ProductConf::OutputDataVerbosity drain::EnumDict<ProductConf::OutputDataVerbosity>::defaultValue; //= ProductConf::OutputDataVerbosity::DEFAULT;
115
116} // namespace rack
117
118
119#endif /* RACK_PRODUCT_CONF */
Two-way mapping between strings and objects of template class T.
Definition Dictionary.h:63
Flagger accepting values of enum type E.
Definition EnumFlags.h:190
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:64
std::string targetEncoding
How the (main) output is encoded.
Definition ProductConf.h:83
ODIMPathElem appendResults
If set, appends outputs in an hdf5 structure instead of overwriting.
Definition ProductConf.h:93
ProductConf()
Default constructor.
Definition ProductConf.h:70
OutputDataVerbosity
Determines if also intermediate results (1) are saved. See –store.
Definition ProductConf.h:96
Definition DataSelector.cpp:44
Wrapper for unique (static) dictionary of enum values.
Definition EnumFlags.h:66