-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgsql.h
44 lines (29 loc) · 920 Bytes
/
pgsql.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
-------------------------------------------------------------------------
OBJECT NAME: adsIOrt.h
FULL NAME: Class for reading real-time ADS images.
DESCRIPTION: This class will allow forward scanning of ADS files.
COPYRIGHT: University Corporation for Atmospheric Research, 1999
-------------------------------------------------------------------------
*/
#ifndef SQLRT_H
#define SQLRT_H
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <libpq-fe.h>
/* -------------------------------------------------------------------- */
class SQLrt {
public:
SQLrt();
bool GetVariableFirst(char buff[]);
bool GetVariableNext(char buff[]);
bool GetVariableLatest(char buff[], int minusN);
bool GetVariableLatest(char buff[]) { return(GetVariableLatest(buff, 0)); }
private:
PGconn *conn;
PGresult *res;
PGnotify *rc;
char sqlBuff[8192];
}; /* END SQLRT.H */
#endif