ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TSQLResult.h
Go to the documentation of this file.
1 // @(#)root/net:$Id$
2 // Author: Fons Rademakers 25/11/99
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, 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_TSQLResult
13 #define ROOT_TSQLResult
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TSQLResult //
19 // //
20 // Abstract base class defining interface to a SQL query result. //
21 // Objects of this class are created by TSQLServer methods. //
22 // //
23 // Related classes are TSQLServer and TSQLRow. //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #ifndef ROOT_TObject
28 #include "TObject.h"
29 #endif
30 
31 class TSQLRow;
32 
33 
34 class TSQLResult : public TObject {
35 
36 protected:
37  Int_t fRowCount; // number of rows in result
38 
39  TSQLResult() : fRowCount(0) { }
40 
41 public:
42  virtual ~TSQLResult() { }
43 
44  virtual void Close(Option_t *option="") = 0;
45  virtual Int_t GetFieldCount() = 0;
46  virtual const char *GetFieldName(Int_t field) = 0;
47  virtual Int_t GetRowCount() const { return fRowCount; }
48  virtual TSQLRow *Next() = 0;
49 
50  ClassDef(TSQLResult,0) // SQL query result
51 };
52 
53 #endif
const char Option_t
Definition: RtypesCore.h:62
virtual ~TSQLResult()
Definition: TSQLResult.h:42
int Int_t
Definition: RtypesCore.h:41
virtual Int_t GetRowCount() const
Definition: TSQLResult.h:47
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void Close(Option_t *option="")=0
virtual Int_t GetFieldCount()=0
Int_t fRowCount
Definition: TSQLResult.h:37
Mother of all ROOT objects.
Definition: TObject.h:58
virtual const char * GetFieldName(Int_t field)=0
virtual TSQLRow * Next()=0