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 "data/DataSelector.h"
52#include "data/ODIMPath.h"
53
54
55
56namespace rack {
57
58
60
64
65public:
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
109template <>
111
112// template <>
113// const ProductConf::OutputDataVerbosity drain::Enum<ProductConf::OutputDataVerbosity>::defaultValue; //= ProductConf::OutputDataVerbosity::DEFAULT;
114
115} // namespace rack
116
117
118#endif /* RACK_PRODUCT_CONF */
Two-way mapping between strings and objects of template class T.
Definition Dictionary.h:61
Flagger accepting values of enum type E.
Definition EnumFlagger.h:56
Tool for selecting datasets based on paths, quantities and min/max elevations.
Definition DataSelector.h:112
Definition ODIMPath.h:81
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
A container for a static dictionary of enumeration values.
Definition Enum.h:51