22 #ifndef DBA_MEMDB_STATIONVALUE_H
23 #define DBA_MEMDB_STATIONVALUE_H
25 #include <dballe/memdb/valuestorage.h>
26 #include <dballe/memdb/index.h>
27 #include <dballe/memdb/valuebase.h>
28 #include <wreport/var.h>
39 template<
typename T>
struct Results;
66 bool has_variables_for(
const Station& station)
const
68 return by_station.find(&station) != by_station.end();
74 size_t insert(
const Station& station, std::auto_ptr<wreport::Var> var,
bool replace=
true);
77 size_t insert(
const Station& station,
const wreport::Var& var,
bool replace=
true);
84 bool remove(
const Station& station, wreport::Varcode code);
95 void dump(FILE* out)
const;
Store an array of physical data all on the same level.
Definition: msg/context.h:44
Station information.
Definition: valuebase.h:35
void fill_msg(const Station &station, msg::Context &ctx) const
Fill a message context with all the variables for this station.
void fill_record(const Station &station, Record &rec) const
Fill a record with all the variables for this station.
Storage and index for station information.
Definition: stationvalue.h:58
size_t insert(const Station &station, std::auto_ptr< wreport::Var > var, bool replace=true)
Insert a new value, or replace an existing one for the same station.
DB-All.E record.
Definition: record.h:102
Station information.
Definition: memdb/station.h:43
Station information.
Definition: stationvalue.h:44
Index element positions based by one value.
Definition: index.h:41
void query(const Record &rec, Results< Station > &stations, Results< StationValue > &res) const
Query values for the given stations.
Definition: mem/cursor.h:35