libdballe 9.6
|
Public Member Functions | |
Cursor (const BaseSummary< Station > &summary, const Query &query) | |
Cursor (const summary::StationEntries< Station > &entries, const Query &query) | |
bool | has_value () const |
Check if the cursor points to a valid value. | |
int | remaining () const override |
Get the number of rows still to be fetched. | |
bool | next () override |
Get a new item from the results of a query. | |
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 |
virtual void | enq (Enq &enq) const =0 |
virtual Level | get_level () const =0 |
Get the level. | |
virtual Trange | get_trange () const =0 |
Get the time range. | |
virtual wreport::Varcode | get_varcode () const =0 |
Get the variable code. | |
virtual DatetimeRange | get_datetimerange () const =0 |
Get the datetime range. | |
virtual size_t | get_count () const =0 |
Get the count of elements. | |
virtual bool | has_value () const =0 |
Check if the cursor points to a valid value. | |
virtual int | remaining () const =0 |
Get the number of rows still to be fetched. | |
virtual bool | next ()=0 |
Get a new item from the results of a query. | |
virtual void | discard ()=0 |
Discard the results that have not been read yet. | |
virtual DBStation | get_station () const =0 |
Get the whole station data in a single call. | |
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 |
Discard the results that have not been read yet.
Implements dballe::Cursor.
|
virtual |
Implements dballe::impl::CursorSummary.
|
inlineoverridevirtual |
Get the count of elements.
Implements dballe::CursorSummary.
|
inlineoverridevirtual |
Get the datetime range.
Implements dballe::CursorSummary.
|
inlineoverridevirtual |
Get the level.
Implements dballe::CursorSummary.
|
inlineoverridevirtual |
Get the whole station data in a single call.
Implements dballe::Cursor.
|
inlineoverridevirtual |
Get the time range.
Implements dballe::CursorSummary.
|
inlineoverridevirtual |
Get the variable code.
Implements dballe::CursorSummary.
|
inlinevirtual |
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.