libdballe
7.21
dballe
db
v6
postgresql
v6/postgresql/levtr.h
1
#ifndef DBALLE_DB_V6_POSTGRESQL_LEV_TR_H
2
#define DBALLE_DB_V6_POSTGRESQL_LEV_TR_H
3
4
#include <
dballe/db/db.h
>
5
#include <dballe/db/v6/levtr.h>
6
#include <
dballe/sql/fwd.h
>
7
#include <cstdio>
8
#include <memory>
9
10
namespace
dballe
{
11
struct
Record;
12
struct
Msg;
13
14
namespace
msg {
15
struct
Context;
16
}
17
18
namespace
db {
19
namespace
v6 {
20
namespace
postgresql {
21
struct
DB;
22
26
struct
PostgreSQLLevTrV6
:
public
v6::LevTr
27
{
28
protected
:
32
dballe::sql::PostgreSQLConnection
&
conn
;
33
34
DBRow working_row;
35
36
public
:
37
PostgreSQLLevTrV6
(
dballe::sql::PostgreSQLConnection
& conn);
38
PostgreSQLLevTrV6
(
const
LevTr
&) =
delete
;
39
PostgreSQLLevTrV6
(
const
LevTr
&&) =
delete
;
40
PostgreSQLLevTrV6
& operator=(
const
PostgreSQLLevTrV6
&) =
delete
;
41
~
PostgreSQLLevTrV6
();
42
47
int
obtain_id(
const
Level
& lev,
const
Trange
& tr)
override
;
48
49
const
DBRow* read(
int
id
)
override
;
50
void
read_all(std::function<
void
(
const
DBRow&)> dest)
override
;
51
55
void
dump(FILE* out)
override
;
56
};
57
58
59
}
60
}
61
}
62
}
63
#endif
dballe::sql::PostgreSQLConnection
Database connection.
Definition:
postgresql.h:239
dballe::Trange
Information on how a value has been sampled or computed with regards to time.
Definition:
types.h:587
fwd.h
Forward declarations for public dballe/sql names.
dballe
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition:
cmdline.h:17
dballe::Level
Vertical level or layer.
Definition:
types.h:532
db.h
Functions used to connect to DB-All.e and insert, query and delete data.
dballe::db::v6::postgresql::PostgreSQLLevTrV6::conn
dballe::sql::PostgreSQLConnection & conn
DB connection.
Definition:
v6/postgresql/levtr.h:32
dballe::db::v6::postgresql::PostgreSQLLevTrV6
Precompiled queries to manipulate the lev_tr table.
Definition:
v6/postgresql/levtr.h:26
dballe::db::v6::LevTr
Precompiled queries to manipulate the lev_tr table.
Definition:
v6/levtr.h:22
Generated by
1.8.12