ROOT logo
// @(#)root/net:$Id$
// Author: Fons Rademakers   25/11/99

/*************************************************************************
 * Copyright (C) 1995-2000, 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_TSQLResult
#define ROOT_TSQLResult


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TSQLResult                                                           //
//                                                                      //
// Abstract base class defining interface to a SQL query result.        //
// Objects of this class are created by TSQLServer methods.             //
//                                                                      //
// Related classes are TSQLServer and TSQLRow.                          //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TObject
#include "TObject.h"
#endif

class  TSQLRow;


class TSQLResult : public TObject {

protected:
   Int_t    fRowCount;   // number of rows in result

   TSQLResult() : fRowCount(0) { }

public:
   virtual ~TSQLResult() { }

   virtual void        Close(Option_t *option="") = 0;
   virtual Int_t       GetFieldCount() = 0;
   virtual const char *GetFieldName(Int_t field) = 0;
   virtual Int_t       GetRowCount() const { return fRowCount; }
   virtual TSQLRow    *Next() = 0;

   ClassDef(TSQLResult,0)  // SQL query result
};

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