1 #ifndef DBALLE_DB_V7_LEVTR_H
2 #define DBALLE_DB_V7_LEVTR_H
5 #include <dballe/db/v7/state.h>
28 virtual void _dump(std::function<
void(
int,
const Level&,
const Trange&)> out) = 0;
36 virtual void prefetch_ids(
const std::set<int>& ids, std::function<
void(
int,
const LevTrDesc&)> dest) = 0;
Store an array of physical data all on the same level.
Definition: context.h:44
Storage for related physical data.
Definition: msg.h:70
Cache intermediate results during a database transaction, to avoid hitting the database multiple time...
Definition: state.h:140
virtual levtrs_t::iterator obtain_id(State &state, const LevTrDesc &desc)=0
Look up a LevTr from the database given its description.
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:587
Vertical level or layer.
Definition: types.h:532
virtual void prefetch_same_level(int id, std::function< void(int, const LevTrDesc &)> dest)=0
Given an ID, load LevTr information for all the entries with the same level type. ...
msg::Context * to_msg(State &st, int id, Msg &msg)
Get/create a Context in the Msg for this level/timerange.
Precompiled queries to manipulate the lev_tr table.
Definition: v7/levtr.h:25
virtual levtrs_t::iterator lookup_id(State &st, int id)=0
Look up a LevTr from the database given its ID.
virtual void prefetch_ids(const std::set< int > &ids, std::function< void(int, const LevTrDesc &)> dest)=0
Given a set of IDs, load LevTr information for them and add it to data.
void dump(FILE *out)
Dump the entire contents of the table to an output stream.