libdballe
7.21
|
Precompiled queries to manipulate the lev_tr table. More...
#include <levtr.h>
Classes | |
struct | DBRow |
Public Member Functions | |
virtual int | obtain_id (const Level &lev, const Trange &tr)=0 |
Return the ID for the given Level and Trange, adding it to the database if it does not already exist. | |
virtual const DBRow * | read (int id)=0 |
Read the LevTr data for an id, returns nullptr if not found. | |
virtual void | read_all (std::function< void(const DBRow &)> dest)=0 |
Read the contents of the LevTr table. | |
virtual void | dump (FILE *out)=0 |
Dump the entire contents of the table to an output stream. | |
Precompiled queries to manipulate the lev_tr table.