MeteoIODoc 20260312.ab0361e8
Environmental timeseries pre-processing
Loading...
Searching...
No Matches
dataQA.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2/***********************************************************************************/
3/* Copyright GridGroup, EIA-FR 2010 */
4/* Copyright 2010 WSL Institute for Snow and Avalanche Research SLF-DAVOS */
5/***********************************************************************************/
6/* This file is part of MeteoIO.
7 MeteoIO is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 MeteoIO is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with MeteoIO. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef DATAQA_H
22#define DATAQA_H
23
24#include <meteoio/Config.h>
26#include <string>
27
28namespace mio {
29
37class DataQA {
38public:
49
54 explicit DataQA(const Config& cfg);
55
60 explicit DataQA(bool i_enabled = false);
61
70 void printQA(OperationType operationType, const std::string& stat, const std::string& parname, const std::string& processingName, const Date& date) const;
71
80 void printQA(const std::string& operationTypeString, const std::string& stat, const std::string& parname, const std::string& processingName, const Date& date) const;
81
86 bool isEnabled() const { return enabled; }
87
92 void setEnabled(bool enable) { enabled = enable; }
93
99 static std::string operationTypeToString(OperationType operationType);
100
101private:
102 bool enabled;
103};
104
105} //end namespace mio
106#endif
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition Config.h:79
A class for handling data quality assurance logging.
Definition dataQA.h:37
OperationType
Enum defining the types of QA operations.
Definition dataQA.h:42
@ MISSING
Missing data operation.
Definition dataQA.h:46
@ CUSTOM
Custom operation type.
Definition dataQA.h:47
@ GENERATION
Data generation operation.
Definition dataQA.h:43
@ FILTERING
Data filtering operation.
Definition dataQA.h:45
@ RESAMPLING
Data resampling operation.
Definition dataQA.h:44
bool isEnabled() const
Check if data QA logging is enabled.
Definition dataQA.h:86
static std::string operationTypeToString(OperationType operationType)
Convert operation type enum to string.
Definition dataQA.cc:47
void printQA(OperationType operationType, const std::string &stat, const std::string &parname, const std::string &processingName, const Date &date) const
Print a QA log message with specific operation type.
Definition dataQA.cc:33
void setEnabled(bool enable)
Enable or disable data QA logging.
Definition dataQA.h:92
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition Date.h:87
Definition Config.cc:34