TODBCResult.h

Go to the documentation of this file.
00001 // @(#)root/odbc:$Id: TODBCResult.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Sergey Linev   6/02/2006
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TODBCResult
00013 #define ROOT_TODBCResult
00014 
00015 #ifndef ROOT_TSQLResult
00016 #include "TSQLResult.h"
00017 #endif
00018 
00019 #ifndef ROOT_TString
00020 #include "TString.h"
00021 #endif
00022 
00023 
00024 #ifdef __CINT__
00025 typedef void * SQLHSTMT;
00026 #else
00027 #ifdef WIN32
00028 #include "windows.h"
00029 #endif
00030 #include <sql.h>
00031 #endif
00032 
00033 
00034 class TODBCResult : public TSQLResult {
00035 
00036 protected:
00037    SQLHSTMT    fHstmt;
00038    Int_t       fFieldCount;
00039    TString     fNameBuffer;
00040 
00041 public:
00042    TODBCResult(SQLHSTMT stmt);
00043    virtual ~TODBCResult();
00044 
00045    void        Close(Option_t *opt="");
00046    Int_t       GetFieldCount() { return fFieldCount; }
00047    const char *GetFieldName(Int_t field);
00048    TSQLRow    *Next();
00049 
00050    ClassDef(TODBCResult,0)  // ODBC query result
00051 };
00052 
00053 #endif

Generated on Tue Jul 5 15:14:38 2011 for ROOT_528-00b_version by  doxygen 1.5.1