libdballe  5.18
Public Member Functions | Data Fields | Protected Attributes
dballe::MatchedSubset Struct Reference
Inheritance diagram for dballe::MatchedSubset:
dballe::Matched

Public Member Functions

 MatchedSubset (const wreport::Subset &r)
virtual matcher::Result match_var_id (int val) const
 Return YES if the subset contains at least one var with the given B33195 attribute; else return NA.
virtual matcher::Result match_station_id (int val) const
 Match station ID.
virtual matcher::Result match_station_wmo (int block, int station=-1) const
 Match station WMO code.
virtual matcher::Result match_date (const int *min, const int *max) const
 Match date.
virtual matcher::Result match_coords (int latmin, int latmax, int lonmin, int lonmax) const
 Match coordinates, with bounds in 1/100000 of degree.
virtual matcher::Result match_rep_memo (const char *memo) const
 Match rep_memo.

Data Fields

const wreport::Subset & r

Protected Attributes

int date [6]
int lat
int lon
const wreport::Var * var_ana_id
const wreport::Var * var_block
const wreport::Var * var_station
const wreport::Var * var_rep_memo

Additional Inherited Members

- Static Public Member Functions inherited from dballe::Matched
static matcher::Result date_in_range (const int *date, const int *min, const int *max)
 Match if min <= date <= max.
static matcher::Result int_in_range (int val, int min, int max)
 Match if min <= val <= max.

Member Function Documentation

virtual matcher::Result dballe::MatchedSubset::match_coords ( int  latmin,
int  latmax,
int  lonmin,
int  lonmax 
) const
virtual

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.

virtual matcher::Result dballe::MatchedSubset::match_date ( const int *  min,
const int *  max 
) const
virtual

Match date.

min and max are arrays of 6 ints (from year to second), and either of them can have -1 as the first element to indicate an open bound.

Reimplemented from dballe::Matched.

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

Match rep_memo.

the memo value that is passed is always lowercase

Reimplemented from dballe::Matched.

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

Match station ID.

This corresponds to DBA_KEY_ANA_ID

Reimplemented from dballe::Matched.

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

Match station WMO code.

If station is -1, only match the block.

Reimplemented from dballe::Matched.


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