libdballe 9.6
Public Member Functions | List of all members
dballe::db::CursorStationData Struct Referenceabstract
Inheritance diagram for dballe::db::CursorStationData:
dballe::impl::CursorStationData dballe::CursorStationData dballe::Cursor

Public Member Functions

virtual void remove ()=0
 Remove this datum.
 
virtual std::shared_ptr< db::Transactionget_transaction () const =0
 Get the database that created this cursor.
 
virtual int attr_reference_id () const =0
 Return an integer value that can be used to refer to the current variable for attribute access.
 
virtual void query_attrs (std::function< void(std::unique_ptr< wreport::Var >)> dest, bool force_read=false)=0
 Query/return the attributes for the current value of this cursor.
 
virtual void insert_attrs (const Values &attrs)
 Insert/update attributes for the current variable.
 
virtual void remove_attrs (const db::AttrList &attrs)
 Remove attributes for the current variable.
 
virtual unsigned test_iterate (FILE *dump=0)=0
 Iterate the cursor until the end, returning the number of items.
 
- Public Member Functions inherited from dballe::impl::CursorStationData
virtual void enq (Enq &enq) const =0
 
- Public Member Functions inherited from dballe::CursorStationData
virtual wreport::Varcode get_varcode () const =0
 Get the variable code.
 
virtual wreport::Var get_var () const =0
 Get the variable.
 
- Public Member Functions inherited from dballe::Cursor
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.
 

Additional Inherited Members

- Static Public Member Functions inherited from dballe::impl::CursorStationData
static std::shared_ptr< CursorStationDatadowncast (std::shared_ptr< dballe::CursorStationData > c)
 Downcast a shared_ptr pointer.
 
static std::shared_ptr< CursorStationDatamake_empty ()
 Create a CursorStationData iterating on no results.
 

Member Function Documentation

◆ test_iterate()

virtual unsigned dballe::db::CursorStationData::test_iterate ( FILE *  dump = 0)
pure virtual

Iterate the cursor until the end, returning the number of items.

If dump is a FILE pointer, also dump the cursor values to it


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