1 #ifndef DBALLE_DB_EXPLORER_H
2 #define DBALLE_DB_EXPLORER_H
4 #include <dballe/core/query.h>
7 #include <dballe/db/summary.h>
dballe::DB & db
DB-All.e database.
Definition: explorer.h:19
A station or measured value.
Definition: values.h:104
const dballe::db::Summary & active_summary() const
Get a reference to the summary for the current filter.
const dballe::db::Summary & global_summary() const
Get a reference to the global summary.
dballe::core::Query filter
Currently active filter.
Definition: explorer.h:22
void update_attr(int var_id, wreport::Varcode var_related, const wreport::Var &new_val)
Update an attribute.
void update_data(values::Value &val, const wreport::Var &new_val)
Update val in the database to have the value new_val.
dballe::db::Summary * _active_summary
Summary of active_filter.
Definition: explorer.h:28
Standard dballe::Query implementation.
Definition: core/query.h:29
void update_station(values::Value &val, const wreport::Var &new_val)
Update val in the database to have the value new_val.
Functions used to connect to DB-All.e and insert, query and delete data.
void revalidate()
Throw away all cached data and reload everything from the database.
Definition: explorer.h:15
High level objects for working with DB-All.e DB summaries.
Definition: summary.h:47
void set_filter(const dballe::Query &query)
Set a new filter, updating all browsing data.
const dballe::Query & get_filter() const
Get the current filter.
Query used to filter DB-All.e data.
Definition: query.h:14
dballe::db::Summary * _global_summary
Summary of the whole database.
Definition: explorer.h:25
Structures used as input to database insert functions.