TSQLRow.h

Go to the documentation of this file.
00001 // @(#)root/net:$Id: TSQLRow.h 23091 2008-04-09 15:04:27Z rdm $
00002 // Author: Fons Rademakers   25/11/99
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, 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_TSQLRow
00013 #define ROOT_TSQLRow
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TSQLRow                                                              //
00019 //                                                                      //
00020 // Abstract base class defining interface to a row of a SQL query       //
00021 // result. Objects of this class are created by TSQLResult methods.     //
00022 //                                                                      //
00023 // Related classes are TSQLServer and TSQLResult.                       //
00024 //                                                                      //
00025 //////////////////////////////////////////////////////////////////////////
00026 
00027 #ifndef ROOT_TObject
00028 #include "TObject.h"
00029 #endif
00030 
00031 
00032 class TSQLRow : public TObject {
00033 
00034 protected:
00035    TSQLRow() { }
00036 
00037 public:
00038    virtual ~TSQLRow() { }
00039 
00040    virtual void        Close(Option_t *option="") = 0;
00041    virtual ULong_t     GetFieldLength(Int_t field) = 0;
00042    virtual const char *GetField(Int_t field) = 0;
00043    const char         *operator[](Int_t field) { return GetField(field); }
00044 
00045    ClassDef(TSQLRow,0)  // One row of an SQL query result
00046 };
00047 
00048 #endif

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