libdballe 9.14
dballe::MatchedSubset Struct Reference
Inheritance diagram for dballe::MatchedSubset:
dballe::Matched

Public Member Functions

 MatchedSubset (const wreport::Subset &r)
matcher::Result match_var_id (int val) const override
 Return YES if the subset contains at least one var with the given B33195 attribute; else return NA.
matcher::Result match_station_id (int val) const override
 Match station ID.
matcher::Result match_station_wmo (int block, int station=-1) const override
 Match station WMO code.
matcher::Result match_datetime (const DatetimeRange &range) const override
 Match datetime.
matcher::Result match_coords (const LatRange &latrange, const LonRange &lonrange) const override
 Match coordinates, with bounds in 1/100000 of degree.
matcher::Result match_rep_memo (const char *memo) const override
 Match rep_memo.

Public Attributes

const wreport::Subsetr

Protected Attributes

Datetime date
int lat
int lon
const wreport::Varvar_ana_id
const wreport::Varvar_block
const wreport::Varvar_station
const wreport::Varvar_rep_memo

Additional Inherited Members

Static Public Member Functions inherited from dballe::Matched
static matcher::Result int_in_range (int val, int min, int max)
 Match if min <= val <= max.
static matcher::Result lon_in_range (int val, int min, int max)
 Match if val is contained inside the given longitude range.

Member Function Documentation

◆ match_coords()

matcher::Result dballe::MatchedSubset::match_coords ( const LatRange & latrange,
const LonRange & lonrange ) const
overridevirtual

Match coordinates, with bounds in 1/100000 of degree.

Any value can be set to MISSING_INT if not applicable or to represent an open bound

Reimplemented from dballe::Matched.

◆ match_datetime()

matcher::Result dballe::MatchedSubset::match_datetime ( const DatetimeRange & range) const
overridevirtual

Match datetime.

Reimplemented from dballe::Matched.

◆ match_rep_memo()

matcher::Result dballe::MatchedSubset::match_rep_memo ( const char * memo) const
overridevirtual

Match rep_memo.

the memo value that is passed is always lowercase

Reimplemented from dballe::Matched.

◆ match_station_id()

matcher::Result dballe::MatchedSubset::match_station_id ( int val) const
overridevirtual

Match station ID.

This corresponds to DBA_KEY_ANA_ID

Reimplemented from dballe::Matched.

◆ match_station_wmo()

matcher::Result dballe::MatchedSubset::match_station_wmo ( int block,
int station = -1 ) const
overridevirtual

Match station WMO code.

If station is -1, only match the block.

Reimplemented from dballe::Matched.

◆ match_var_id()

matcher::Result dballe::MatchedSubset::match_var_id ( int val) const
overridevirtual

Return YES if the subset contains at least one var with the given B33195 attribute; else return NA.

Reimplemented from dballe::Matched.


The documentation for this struct was generated from the following file: