1#ifndef DBALLE_DB_V7_LEVTR_H
2#define DBALLE_DB_V7_LEVTR_H
5#include <dballe/db/v7/cache.h>
6#include <dballe/db/v7/fwd.h>
7#include <dballe/msg/fwd.h>
25 virtual void _dump(std::function<
void(
int,
const Level&,
const Trange&)> out) = 0;
Smart pointer for trace::Step objects, which calls done() when going out of scope.
Definition: db/v7/fwd.h:46
Storage for related physical data.
Definition: msg.h:131
Store an array of physical data all on the same level.
Definition: context.h:24
Vertical level or layer.
Definition: types.h:625
Information on how a value has been sampled or computed with regards to time.
Definition: types.h:687
Precompiled queries to manipulate the lev_tr table.
Definition: levtr.h:21
const LevTrEntry & lookup_cache(int id)
Lookup a LevTr entry from the cache, throwing an exception if it is not found.
virtual const LevTrEntry * lookup_id(Tracer<> &trc, int id)=0
Look up a LevTr from the database given its ID.
impl::msg::Context * to_msg(Tracer<> &trc, int id, impl::Message &msg)
Get/create a Context in the Msg for this level/timerange.
virtual int obtain_id(Tracer<> &trc, const LevTrEntry &desc)=0
Look up a LevTr from the database given its description.
void dump(FILE *out)
Dump the entire contents of the table to an output stream.
void clear_cache()
Invalidate the LevTrEntry cache.
virtual void prefetch_ids(Tracer<> &trc, const std::set< int > &ids)=0
Given a set of IDs, load LevTr information for them and add it to the cache.
Definition: transaction.h:16