ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 #ifndef ROOT_TSQLResult
16 #include "TSQLResult.h"
17 #endif
18 
19 #ifndef ROOT_TString
20 #include "TString.h"
21 #endif
22 
23 
24 #ifdef __CLING__
25 typedef void * SQLHSTMT;
26 #else
27 #ifdef WIN32
28 #include "windows.h"
29 #endif
30 #include <sql.h>
31 #endif
32 
33 
34 class TODBCResult : public TSQLResult {
35 
36 protected:
37  SQLHSTMT fHstmt;
40 
41 public:
42  TODBCResult(SQLHSTMT stmt);
43  virtual ~TODBCResult();
44 
45  void Close(Option_t *opt="");
47  const char *GetFieldName(Int_t field);
48  TSQLRow *Next();
49 
50  ClassDef(TODBCResult,0) // ODBC query result
51 };
52 
53 #endif
SQLHSTMT fHstmt
Definition: TODBCResult.h:37
TODBCResult(SQLHSTMT stmt)
const char Option_t
Definition: RtypesCore.h:62
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
TString fNameBuffer
Definition: TODBCResult.h:39
#define ClassDef(name, id)
Definition: Rtypes.h:254
Int_t GetFieldCount()
Definition: TODBCResult.h:46
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:38