MeteoIODoc 20260312.ab0361e8
Environmental timeseries pre-processing
Loading...
Searching...
No Matches
mio::DataQA Class Reference

Detailed Description

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.
 

Member Enumeration Documentation

◆ OperationType

Enum defining the types of QA operations.

Enumerator
GENERATION 

Data generation operation.

RESAMPLING 

Data resampling operation.

FILTERING 

Data filtering operation.

MISSING 

Missing data operation.

CUSTOM 

Custom operation type.

Constructor & Destructor Documentation

◆ DataQA() [1/2]

mio::DataQA::DataQA ( const Config cfg)
explicit

Constructor.

Parameters
cfgConfiguration object to read DATA_QA_LOGS setting

◆ DataQA() [2/2]

mio::DataQA::DataQA ( bool  i_enabled = false)
explicit

Constructor with explicit enable flag.

Parameters
enabledWhether data QA logging is enabled

Member Function Documentation

◆ isEnabled()

bool mio::DataQA::isEnabled ( ) const
inline

Check if data QA logging is enabled.

Returns
true if enabled, false otherwise

◆ operationTypeToString()

std::string mio::DataQA::operationTypeToString ( OperationType  operationType)
static

Convert operation type enum to string.

Parameters
operationTypeThe operation type enum value
Returns
String representation of the operation type

◆ printQA() [1/2]

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.

Parameters
operationTypeStringCustom operation type string
statStation ID
parnameParameter name
processingNameProcessing algorithm name
dateDate of the operation

◆ printQA() [2/2]

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.

Parameters
operationTypeType of operation (GENERATION, RESAMPLING, FILTERING, etc.)
statStation ID
parnameParameter name
processingNameProcessing algorithm name
dateDate of the operation

◆ setEnabled()

void mio::DataQA::setEnabled ( bool  enable)
inline

Enable or disable data QA logging.

Parameters
enabletrue to enable, false to disable

The documentation for this class was generated from the following files: