1 #ifndef DBALLE_CURSOR_H
2 #define DBALLE_CURSOR_H
4 #include <dballe/fwd.h>
6 #include <wreport/var.h>
44 virtual bool next() = 0;
120 virtual const Message& get_message()
const = 0;
121 virtual std::unique_ptr<Message> detach_message() = 0;
virtual bool next()=0
Get a new item from the results of a query.
virtual wreport::Varcode get_varcode() const =0
Get the variable code.
Cursor iterating over stations.
Definition: cursor.h:56
Cursor iterating over summary entries.
Definition: cursor.h:97
A bulletin that has been decoded and physically interpreted.
Definition: message.h:28
Base class for cursors that iterate over DB query results.
Definition: cursor.h:15
virtual DBValues get_values() const =0
Get the station data values.
virtual bool has_value() const =0
Check if the cursor points to a valid value.
virtual wreport::Varcode get_varcode() const =0
Get the variable code.
virtual Trange get_trange() const =0
Get the time range.
virtual wreport::Varcode get_varcode() const =0
Get the variable code.
virtual DBStation get_station() const =0
Get the whole station data in a single call.
virtual wreport::Var get_var() const =0
Get the variable.
virtual int remaining() const =0
Get the number of rows still to be fetched.
Collection of DBValue objects, indexed by wreport::Varcode.
Definition: values.h:191
virtual Trange get_trange() const =0
Get the time range.
Range of datetimes.
Definition: types.h:294
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:686
virtual Level get_level() const =0
Get the level.
virtual wreport::Var get_var() const =0
Get the variable.
virtual Datetime get_datetime() const =0
Get the datetime.
Vertical level or layer.
Definition: types.h:624
Cursor iterating over station data values.
Definition: cursor.h:66
virtual DatetimeRange get_datetimerange() const =0
Get the datetime range.
Cursor iterating over data values.
Definition: cursor.h:77
virtual void discard()=0
Discard the results that have not been read yet.
Date and time.
Definition: types.h:164
Cursor iterating over messages.
Definition: cursor.h:117
virtual Level get_level() const =0
Get the level.
virtual size_t get_count() const =0
Get the count of elements.