libdballe
7.19
|
Query used to filter DB-All.e data. More...
#include <query.h>
Public Member Functions | |
virtual void | set_from_record (const dballe::Record &rec)=0 |
Set the query values from the contents of a Record. | |
virtual DatetimeRange | get_datetimerange () const =0 |
Get the Datetime bounds set in this query. | |
virtual void | set_datetimerange (const DatetimeRange &dt)=0 |
Set the Datetime range for this query. | |
virtual LatRange | get_latrange () const =0 |
Get the range of latitudes to be matched. | |
virtual void | set_latrange (const LatRange &latrange)=0 |
Set the range of latitudes to be matched. | |
virtual LonRange | get_lonrange () const =0 |
Get the range of longitudes to be matched. | |
virtual void | set_lonrange (const LonRange &lonrange)=0 |
Set the range of longitudes to be matched. | |
virtual Level | get_level () const =0 |
Get the level to be matched. | |
virtual void | set_level (const Level &level)=0 |
Set the level to be matched. | |
virtual Trange | get_trange () const =0 |
Get the time range to be matched. | |
virtual void | set_trange (const Trange &trange)=0 |
Set the level to be matched. | |
virtual void | clear ()=0 |
Clear the contents of the query, making it match all data. | |
virtual bool | is_subquery (const Query &other) const =0 |
Return true if this query matches a subset of the given query. More... | |
virtual void | foreach_key (std::function< void(const char *, wreport::Var &&)> dest) const =0 |
Generate a sequence of key names and unique_ptr<Var> for all the contents of the query. | |
virtual void | print (FILE *out) const =0 |
Print the query contents to stderr. | |
virtual std::unique_ptr< Query > | clone () const =0 |
Return a copy of this query. | |
Static Public Member Functions | |
static std::unique_ptr< Query > | create () |
Create a new Query. | |
static std::unique_ptr< Query > | from_record (const Record &rec) |
Create a new Query. | |
Query used to filter DB-All.e data.
|
pure virtual |
Return true if this query matches a subset of the given query.
In other words, it returns true if this query is the same as other, plus zero or more extra fields set, or zero or more ranges narrowed.
Implemented in dballe::core::Query.