Logo ROOT   6.14/05
Reference Guide
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;
36 
37 public:
38  TODBCResult(SQLHSTMT stmt);
39  virtual ~TODBCResult();
40 
41  void Close(Option_t *opt="");
43  const char *GetFieldName(Int_t field);
44  TSQLRow *Next();
45 
46  ClassDef(TODBCResult,0) // ODBC query result
47 };
48 
49 #endif
SQLHSTMT fHstmt
Definition: TODBCResult.h:33
TODBCResult(SQLHSTMT stmt)
Constructor.
Definition: TODBCResult.cxx:21
const char Option_t
Definition: RtypesCore.h:62
Basic string class.
Definition: TString.h:131
int Int_t
Definition: RtypesCore.h:41
TString fNameBuffer
Definition: TODBCResult.h:35
#define ClassDef(name, id)
Definition: Rtypes.h:320
Int_t GetFieldCount()
Definition: TODBCResult.h:42
TSQLRow * Next()
Get next query result row.
Definition: TODBCResult.cxx:80
void Close(Option_t *opt="")
Close (cleanup) ODBC result object. Deletes statement.
Definition: TODBCResult.cxx:45
const char * GetFieldName(Int_t field)
Get name of specified field.
Definition: TODBCResult.cxx:54
virtual ~TODBCResult()
Cleanup ODBC query result.
Definition: TODBCResult.cxx:37
Int_t fFieldCount
Definition: TODBCResult.h:34