Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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__
21typedef void * SQLHSTMT;
22#else
23#ifdef WIN32
24#include "windows.h"
25#endif
26#include <sql.h>
27#endif
28
29
30class TODBCResult : public TSQLResult {
31
32protected:
33 SQLHSTMT fHstmt;
36
37public:
38 TODBCResult(SQLHSTMT stmt);
39 virtual ~TODBCResult();
40
41 void Close(Option_t *opt="") final;
42 Int_t GetFieldCount() final { return fFieldCount; }
43 const char *GetFieldName(Int_t field) final;
44 TSQLRow *Next() final;
45
46 ClassDefOverride(TODBCResult,0) // ODBC query result
47};
48
49#endif
int Int_t
Definition RtypesCore.h:45
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
TSQLRow * Next() final
Get next query result row.
virtual ~TODBCResult()
Cleanup ODBC query result.
const char * GetFieldName(Int_t field) final
Get name of specified field.
TString fNameBuffer
Definition TODBCResult.h:35
Int_t fFieldCount
Definition TODBCResult.h:34
void Close(Option_t *opt="") final
Close (cleanup) ODBC result object. Deletes statement.
Int_t GetFieldCount() final
Definition TODBCResult.h:42
SQLHSTMT fHstmt
Definition TODBCResult.h:33
Basic string class.
Definition TString.h:139