1 #ifndef DBALLE_CORE_MATCHER_H 2 #define DBALLE_CORE_MATCHER_H 5 #include <dballe/core/fwd.h> 18 std::string result_format(Result res);
38 virtual matcher::Result match_var_id(
int val)
const;
45 virtual matcher::Result match_station_id(
int val)
const;
52 virtual matcher::Result match_station_wmo(
int block,
int station=-1)
const;
55 virtual matcher::Result match_datetime(
const DatetimeRange& range)
const;
63 virtual matcher::Result match_coords(
const LatRange& latrange,
const LonRange& lonrange)
const;
70 virtual matcher::Result match_rep_memo(
const char* memo)
const;
78 static matcher::Result int_in_range(
int val,
int min,
int max);
83 static matcher::Result lon_in_range(
int val,
int min,
int max);
94 virtual matcher::Result match(
const Matched& item)
const = 0;
97 static std::unique_ptr<Matcher> create(
const dballe::Query& query);
Common base types used by most of DB-All.e code.
Common interface for things that are matched.
Definition: matcher.h:29
Standard dballe::Query implementation.
Definition: core/query.h:31
Range of datetimes.
Definition: types.h:294
Match DB-All.e objects using the same queries that can be made on DB-All.e databases.
Definition: matcher.h:90
Range of latitudes.
Definition: types.h:467
Range of longitudes.
Definition: types.h:551
Query used to filter DB-All.e data.
Definition: query.h:14