libdballe  8.3
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dballe::impl::msg::CursorStation Struct Reference
Inheritance diagram for dballe::impl::msg::CursorStation:
dballe::impl::CursorStation dballe::CursorStation dballe::Cursor

Public Member Functions

 CursorStation (const impl::Message &msg)
 
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.
 
void enq (Enq &enq) const override
 
DBStation get_station () const override
 Get the whole station data in a single call.
 
DBValues get_values () const override
 Get the station data values.
 

Static Public Member Functions

static std::unique_ptr< CursorStationdowncast (std::unique_ptr< dballe::CursorStation > c)
 Downcast a unique_ptr pointer.
 
- Static Public Member Functions inherited from dballe::impl::CursorStation
static std::unique_ptr< CursorStationdowncast (std::unique_ptr< dballe::CursorStation > c)
 Downcast a unique_ptr pointer.
 
static std::unique_ptr< CursorStationmake_empty ()
 Create a CursorStation iterating on no results.
 

Public Attributes

dballe::DBStation station
 
const Valuesstation_values
 
bool at_start = true
 

Member Function Documentation

◆ next()

bool dballe::impl::msg::CursorStation::next ( )
inlineoverridevirtual

Get a new item from the results of a query.

Returns
true if a new record has been read, false if there is no more data to read

Implements dballe::Cursor.

◆ remaining()

int dballe::impl::msg::CursorStation::remaining ( ) const
inlineoverridevirtual

Get the number of rows still to be fetched.

Returns
The number of rows still to be queried. The value is undefined if no query has been successfully peformed yet using this cursor.

Implements dballe::Cursor.


The documentation for this struct was generated from the following file: