libdballe
9.11
|
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. More... | |
virtual int | remaining () const =0 |
Get the number of rows still to be fetched. More... | |
virtual bool | next ()=0 |
Get a new item from the results of a query. More... | |
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 |
Check if the cursor points to a valid value.
Implemented in dballe::db::summary::Cursor< Station >, dballe::impl::msg::CursorData, dballe::impl::msg::CursorStationData, and dballe::impl::msg::CursorStation.
|
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::CursorStationData, and dballe::impl::msg::CursorStation.
|
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::CursorStationData, and dballe::impl::msg::CursorStation.