libdballe
5.18
|
Common interface for things that are matched. More...
#include <matcher.h>
Public Member Functions | |
virtual matcher::Result | match_var_id (int val) const |
Match variable ID. | |
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. |
Static Public Member Functions | |
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. |
Common interface for things that are matched.
This allows the Record-derived matcher to operate on several different elements. Examples are Record and Msg, but can also be unknown elements provided by code that uses DB-All.e.
|
static |
Match if min <= date <= max.
It correctly deals with min and max having the first element set to -1 to signify an open bound.
|
static |
Match if min <= val <= max.
It correctly deals with min and max being set to MISSING_INT to signify an open bound.
|
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 in dballe::MatchedMsg, dballe::MatchedRecord, dballe::MatchedMsgs, dballe::MatchedBulletin, and dballe::MatchedSubset.
|
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 in dballe::MatchedMsg, dballe::MatchedRecord, dballe::MatchedMsgs, dballe::MatchedBulletin, and dballe::MatchedSubset.
|
virtual |
Match rep_memo.
the memo value that is passed is always lowercase
Reimplemented in dballe::MatchedMsg, dballe::MatchedRecord, dballe::MatchedMsgs, dballe::MatchedBulletin, and dballe::MatchedSubset.
|
virtual |
Match station ID.
This corresponds to DBA_KEY_ANA_ID
Reimplemented in dballe::MatchedMsg, dballe::MatchedRecord, dballe::MatchedMsgs, dballe::MatchedBulletin, and dballe::MatchedSubset.
|
virtual |
Match station WMO code.
If station is -1, only match the block.
Reimplemented in dballe::MatchedMsg, dballe::MatchedRecord, dballe::MatchedMsgs, dballe::MatchedBulletin, and dballe::MatchedSubset.
|
virtual |
Match variable ID.
This corresponds to B33195
Reimplemented in dballe::MatchedMsg, dballe::MatchedRecord, dballe::MatchedMsgs, dballe::MatchedBulletin, and dballe::MatchedSubset.