libdballe
9.11
|
Public Member Functions | |
Cursor (const BaseSummary< Station > &summary, const Query &query) | |
Cursor (const summary::StationEntries< Station > &entries, const Query &query) | |
bool | has_value () const override |
Check if the cursor points to a valid value. More... | |
int | remaining () const override |
Get the number of rows still to be fetched. More... | |
bool | next () override |
Get a new item from the results of a query. More... | |
void | discard () override |
Discard the results that have not been read yet. | |
DBStation | get_station () const override |
Get the whole station data in a single call. | |
Level | get_level () const override |
Get the level. | |
Trange | get_trange () const override |
Get the time range. | |
wreport::Varcode | get_varcode () const override |
Get the variable code. | |
DatetimeRange | get_datetimerange () const override |
Get the datetime range. | |
size_t | get_count () const override |
Get the count of elements. | |
void | enq (impl::Enq &enq) const override |
Static Public Member Functions | |
static DBStation | _get_dbstation (const DBStation &s) |
static DBStation | _get_dbstation (const dballe::Station &station) |
static int | _get_station_id (const DBStation &s) |
static int | _get_station_id (const dballe::Station &s) |
![]() | |
static std::shared_ptr< CursorSummary > | downcast (std::shared_ptr< dballe::CursorSummary > c) |
Downcast a shared_ptr pointer. | |
static std::shared_ptr< CursorSummary > | make_empty () |
Create a CursorSummary iterating on no results. | |
Public Attributes | |
summary::StationEntries< Station > | results |
summary::StationEntries< Station >::const_iterator | station_entry |
summary::StationEntry< Station >::const_iterator | var_entry |
bool | at_start = true |
int | _remaining = 0 |
|
inlineoverridevirtual |
Check if the cursor points to a valid value.
Implements dballe::Cursor.
|
inlineoverridevirtual |
Get a new item from the results of a query.
Implements dballe::Cursor.
|
inlineoverridevirtual |
Get the number of rows still to be fetched.
Implements dballe::Cursor.