libdballe  9.11
Public Member Functions | Static Public Member Functions | List of all members
dballe::Query Class Referenceabstract

Query used to filter DB-All.e data. More...

#include <query.h>

Inheritance diagram for dballe::Query:
dballe::core::Query

Public Member Functions

 Query (const Query &)=default
 
 Query (Query &&)=default
 
Queryoperator= (const Query &o)=default
 
Queryoperator= (Query &&o)=default
 
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 print (FILE *out) const =0
 Print the query contents to stderr.
 
virtual std::unique_ptr< Queryclone () const =0
 Return a copy of this query.
 
virtual bool empty () const =0
 Check if the query is empty, that is, it queries everything.
 

Static Public Member Functions

static std::unique_ptr< Querycreate ()
 Create a new Query.
 

Detailed Description

Query used to filter DB-All.e data.

Member Function Documentation

◆ is_subquery()

virtual bool dballe::Query::is_subquery ( const Query other) const
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.


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