ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
TODBCResult.h
Go to the documentation of this file.
1
// @(#)root/odbc:$Id$
2
// Author: Sergey Linev 6/02/2006
3
4
/*************************************************************************
5
* Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_TODBCResult
13
#define ROOT_TODBCResult
14
15
#include "
TSQLResult.h
"
16
17
#include "
TString.h
"
18
19
20
#ifdef __CLING__
21
typedef
void
* SQLHSTMT;
22
#else
23
#ifdef WIN32
24
#include "windows.h"
25
#endif
26
#include <sql.h>
27
#endif
28
29
30
class
TODBCResult :
public
TSQLResult {
31
32
protected
:
33
SQLHSTMT fHstmt;
34
Int_t fFieldCount;
35
TString fNameBuffer;
36
37
public
:
38
TODBCResult(SQLHSTMT stmt);
39
virtual
~TODBCResult();
40
41
void
Close(Option_t *opt=
""
);
42
Int_t GetFieldCount() {
return
fFieldCount; }
43
const
char
*GetFieldName(Int_t field);
44
TSQLRow *Next();
45
46
ClassDef(TODBCResult,0)
// ODBC query result
47
};
48
49
#endif
TSQLResult.h
TString.h
sql
odbc
inc
TODBCResult.h
Generated on Tue May 5 2020 14:03:28 for ROOT by
1.8.5