|
MeteoIODoc 20260312.ab0361e8
Environmental timeseries pre-processing
|
A class for handling data quality assurance logging.
This class centralizes all data QA logging functionality using a generic approach with operation types specified via enum.
#include <dataQA.h>
Public Types | |
| enum | OperationType { GENERATION , RESAMPLING , FILTERING , MISSING , CUSTOM } |
| Enum defining the types of QA operations. More... | |
Public Member Functions | |
| DataQA (const Config &cfg) | |
| Constructor. | |
| DataQA (bool i_enabled=false) | |
| Constructor with explicit enable flag. | |
| 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. | |
| void | printQA (const std::string &operationTypeString, const std::string &stat, const std::string &parname, const std::string &processingName, const Date &date) const |
| Print a QA log message with custom operation type string. | |
| bool | isEnabled () const |
| Check if data QA logging is enabled. | |
| void | setEnabled (bool enable) |
| Enable or disable data QA logging. | |
Static Public Member Functions | |
| static std::string | operationTypeToString (OperationType operationType) |
| Convert operation type enum to string. | |
|
explicit |
Constructor.
| cfg | Configuration object to read DATA_QA_LOGS setting |
|
explicit |
Constructor with explicit enable flag.
| enabled | Whether data QA logging is enabled |
|
inline |
Check if data QA logging is enabled.
|
static |
Convert operation type enum to string.
| operationType | The operation type enum value |
| void mio::DataQA::printQA | ( | const std::string & | operationTypeString, |
| const std::string & | stat, | ||
| const std::string & | parname, | ||
| const std::string & | processingName, | ||
| const Date & | date | ||
| ) | const |
Print a QA log message with custom operation type string.
| operationTypeString | Custom operation type string |
| stat | Station ID |
| parname | Parameter name |
| processingName | Processing algorithm name |
| date | Date of the operation |
| void mio::DataQA::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.
| operationType | Type of operation (GENERATION, RESAMPLING, FILTERING, etc.) |
| stat | Station ID |
| parname | Parameter name |
| processingName | Processing algorithm name |
| date | Date of the operation |
|
inline |
Enable or disable data QA logging.
| enable | true to enable, false to disable |