|
libdballe 9.13
|
Base class for cursors that iterate over DB query results. More...
#include <cursor.h>
Public Member Functions | |
| 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. | |
Base class for cursors that iterate over DB query results.
|
pure virtual |
Discard the results that have not been read yet.
Implemented in dballe::db::summary::Cursor< Station >, dballe::impl::msg::CursorData, dballe::impl::msg::CursorStation, and dballe::impl::msg::CursorStationData.
|
pure virtual |
Get the whole station data in a single call.
Implemented in dballe::db::summary::Cursor< Station >, dballe::impl::msg::CursorData, dballe::impl::msg::CursorStation, and dballe::impl::msg::CursorStationData.
|
pure virtual |
Check if the cursor points to a valid value.
Implemented in dballe::db::summary::Cursor< Station >, dballe::impl::msg::CursorData, dballe::impl::msg::CursorStation, and dballe::impl::msg::CursorStationData.
|
pure virtual |
Get a new item from the results of a query.
Implemented in dballe::db::summary::Cursor< Station >, dballe::impl::msg::CursorData, dballe::impl::msg::CursorStation, and dballe::impl::msg::CursorStationData.
|
pure virtual |
Get the number of rows still to be fetched.
Implemented in dballe::db::summary::Cursor< Station >, dballe::impl::msg::CursorData, dballe::impl::msg::CursorStation, and dballe::impl::msg::CursorStationData.