22 #ifndef DBALLE_DB_V6_LEV_TR_H
23 #define DBALLE_DB_V6_LEV_TR_H
72 DBALLE_SQL_C_SINT_TYPE
id;
77 DBALLE_SQL_C_SINT_TYPE
l1;
81 DBALLE_SQL_C_SINT_TYPE
l2;
83 DBALLE_SQL_C_SINT_TYPE
pind;
85 DBALLE_SQL_C_SINT_TYPE
p1;
87 DBALLE_SQL_C_SINT_TYPE
p2;
124 void dump(FILE* out);
160 virtual void dump(FILE* out)
const = 0;
162 static std::auto_ptr<LevTrCache> create(
LevTr& lt);
Store an array of physical data all on the same level.
Definition: msg/context.h:44
db::Statement * dstm
Precompiled delete statement.
Definition: lev_tr.h:69
Storage for related physical data.
Definition: msg.h:119
virtual msg::Context * to_msg(int id, Msg &msg)=0
Get/create a Context in the Msg for this level/timerange.
The ODBC specification is imperfect with regards to integer sizes on 64bit platforms, and different ODBC drivers are currently interpreting it differently.
DBALLE_SQL_C_SINT_TYPE p1
Time range P1 SQL parameter.
Definition: lev_tr.h:85
int get_id()
Get the lev_tr id for the current lev_tr data.
DBALLE_SQL_C_SINT_TYPE pind
Time range type SQL parameter.
Definition: lev_tr.h:83
DB-All.E record.
Definition: record.h:102
virtual bool to_rec(int id, Record &rec)=0
Fill a record with level/timerange info with this id.
void dump(FILE *out)
Dump the entire contents of the table to an output stream.
DBALLE_SQL_C_SINT_TYPE ltype2
Second level type SQL parameter.
Definition: lev_tr.h:79
int insert()
Insert a new lev_tr in the database.
virtual Level to_level(int id) const =0
Return a Level for this ID.
DBALLE_SQL_C_SINT_TYPE id
lev_tr ID SQL parameter
Definition: lev_tr.h:72
DB & db
DB connection.
Definition: lev_tr.h:60
virtual void dump(FILE *out) const =0
Dump cache contents to an output stream.
DBALLE_SQL_C_SINT_TYPE l1
Level L1 SQL parameter.
Definition: lev_tr.h:77
db::Statement * sstm
Precompiled select statement.
Definition: lev_tr.h:63
Precompiled queries to manipulate the lev_tr table.
Definition: lev_tr.h:55
ODBC statement.
Definition: internals.h:220
DBALLE_SQL_C_SINT_TYPE ltype1
First level type SQL parameter.
Definition: lev_tr.h:75
virtual Trange to_trange(int id) const =0
Return a Trange for this ID.
virtual void invalidate()=0
Invalidate the cache.
DB-ALLe database connection.
Definition: v6/db.h:87
db::Statement * istm
Precompiled insert statement.
Definition: lev_tr.h:67
db::Statement * sdstm
Precompiled select data statement.
Definition: lev_tr.h:65
DBALLE_SQL_C_SINT_TYPE p2
Time range P2 SQL parameter.
Definition: lev_tr.h:87
void get_data(int id)
Get lev_tr information given a lev_tr ID.
DBALLE_SQL_C_SINT_TYPE l2
Level L2 SQL parameter.
Definition: lev_tr.h:81