libdballe
5.18
Main Page
Modules
Data Structures
Files
File List
Globals
dballe
db
station.h
Go to the documentation of this file.
1
/*
2
* db/station - station table management
3
*
4
* Copyright (C) 2005--2010 ARPA-SIM <urpsim@smr.arpa.emr.it>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*
19
* Author: Enrico Zini <enrico@enricozini.com>
20
*/
21
22
#ifndef DBALLE_DB_STATION_H
23
#define DBALLE_DB_STATION_H
24
31
#include <
dballe/db/odbcworkarounds.h
>
32
#include <sqltypes.h>
33
#include <cstdio>
34
35
namespace
dballe {
36
struct
DB;
37
38
namespace
db {
39
struct
Connection;
40
struct
Statement;
41
45
struct
Station
46
{
50
DB
&
db
;
51
53
db::Statement
*
sfstm
;
55
db::Statement
*
smstm
;
57
db::Statement
*
sstm
;
59
db::Statement
*
istm
;
61
db::Statement
*
ustm
;
63
db::Statement
*
dstm
;
64
66
DBALLE_SQL_C_SINT_TYPE
id
;
68
DBALLE_SQL_C_SINT_TYPE
lat
;
70
DBALLE_SQL_C_SINT_TYPE
lon
;
72
char
ident
[64];
74
SQLLEN
ident_ind
;
75
76
Station
(
DB
& conn);
77
~
Station
();
78
85
void
set_ident
(
const
char
*
ident
);
86
93
int
get_id
();
94
101
void
get_data
(
int
id
);
102
109
int
insert
();
110
114
void
update
();
115
119
void
remove
();
120
124
void
dump
(FILE* out);
125
126
private
:
127
// disallow copy
128
Station
(
const
Station
&);
129
Station
& operator=(
const
Station
&);
130
};
131
132
#if 0
133
134
135
#ifdef __cplusplus
136
}
137
#endif
138
139
#endif
140
141
}
// namespace db
142
}
// namespace dballe
143
144
/* vim:set ts=4 sw=4: */
145
#endif
Generated on Wed Mar 19 2014 05:22:59 for libdballe by
1.8.1.2