|
libdballe 9.13
|
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. | |
| 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 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 Public Member Functions inherited from dballe::impl::CursorSummary | |
| 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.
|
overridevirtual |
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.
|
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.