ROOT logo
// @(#)root/odbc:$Id$
// Author: Sergey Linev   6/02/2006

/*************************************************************************
 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TODBCRow
#define ROOT_TODBCRow

#ifndef ROOT_TSQLRow
#include "TSQLRow.h"
#endif

#ifndef ROOT_TString
#include "TString.h"
#endif

#ifdef __CINT__
typedef void * SQLHSTMT;
#else
#ifdef WIN32
#include "windows.h"
#endif
#include <sql.h>
#endif

class TODBCRow : public TSQLRow {

protected:
   SQLHSTMT   fHstmt;
   Int_t      fFieldCount;
   char      **fBuffer;
   ULong_t    *fLengths;  
   
   void        CopyFieldValue(Int_t field);
   
private:
   TODBCRow(const TODBCRow&);            // Not implemented.
   TODBCRow &operator=(const TODBCRow&); // Not implemented.

public:
   TODBCRow(SQLHSTMT stmt, Int_t fieldcount);
   virtual ~TODBCRow();

   void        Close(Option_t *opt="");
   ULong_t     GetFieldLength(Int_t field);
   const char *GetField(Int_t field);

   ClassDef(TODBCRow,0)  // One row of ODBC query result
};

#endif
 TODBCRow.h:1
 TODBCRow.h:2
 TODBCRow.h:3
 TODBCRow.h:4
 TODBCRow.h:5
 TODBCRow.h:6
 TODBCRow.h:7
 TODBCRow.h:8
 TODBCRow.h:9
 TODBCRow.h:10
 TODBCRow.h:11
 TODBCRow.h:12
 TODBCRow.h:13
 TODBCRow.h:14
 TODBCRow.h:15
 TODBCRow.h:16
 TODBCRow.h:17
 TODBCRow.h:18
 TODBCRow.h:19
 TODBCRow.h:20
 TODBCRow.h:21
 TODBCRow.h:22
 TODBCRow.h:23
 TODBCRow.h:24
 TODBCRow.h:25
 TODBCRow.h:26
 TODBCRow.h:27
 TODBCRow.h:28
 TODBCRow.h:29
 TODBCRow.h:30
 TODBCRow.h:31
 TODBCRow.h:32
 TODBCRow.h:33
 TODBCRow.h:34
 TODBCRow.h:35
 TODBCRow.h:36
 TODBCRow.h:37
 TODBCRow.h:38
 TODBCRow.h:39
 TODBCRow.h:40
 TODBCRow.h:41
 TODBCRow.h:42
 TODBCRow.h:43
 TODBCRow.h:44
 TODBCRow.h:45
 TODBCRow.h:46
 TODBCRow.h:47
 TODBCRow.h:48
 TODBCRow.h:49
 TODBCRow.h:50
 TODBCRow.h:51
 TODBCRow.h:52
 TODBCRow.h:53
 TODBCRow.h:54
 TODBCRow.h:55
 TODBCRow.h:56
 TODBCRow.h:57