TTreeResult


class description - source file - inheritance tree

class TTreeResult : public TSQLResult

    private:
Bool_t IsValid(Int_t field) protected:
public:
TTreeResult TTreeResult(Int_t nfields) TTreeResult TTreeResult(TTreeResult&) virtual void ~TTreeResult() void AddField(Int_t field, const char* fieldname) void AddRow(TSQLRow* row) static TClass* Class() virtual void Close(Option_t* option) virtual Int_t GetFieldCount() virtual const char* GetFieldName(Int_t field) const virtual TClass* IsA() const virtual TSQLRow* Next() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Int_t fColumnCount number of columns in result TString* fFields array containing field strings TObjArray* fResult query result (TTreeRow objects) Int_t fNextRow row iterator protected:
public:

Class Description

                                                                      
 TTreeResult                                                          
                                                                      
 Class defining interface to a TTree query result with the same       
 interface as for SQL databases. A TTreeResult is returned by         
 TTree::Query() (actually TTreePlayer::Query()).                      
                                                                      
 Related classes are TTreeRow.                                        
                                                                      


TTreeResult(Int_t nfields)
 Create a query result object.

~TTreeResult()
 Cleanup result object.

void Close(Option_t *)
 Close query result.

Bool_t IsValid(Int_t field)
 Check if result set is open and field index within range.

Int_t GetFieldCount()
 Get number of fields in result.

const char* GetFieldName(Int_t field)
 Get name of specified field.

TSQLRow* Next()
 Get next query result row. The returned object must be
 deleted by the user.

void AddField(Int_t field, const char *fieldname)
 Add field name to result set. This is an internal method that is not
 exported via the abstract interface and that should not be user called.

void AddRow(TSQLRow *row)
 Adopt a row to result set. This is an internal method that is not
 exported via the abstract interface and that should not be user called.



Inline Functions


            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
        TTreeResult TTreeResult(TTreeResult&)


Author: Fons Rademakers 30/11/99
Last update: root/tree:$Name: $:$Id: TTreeResult.cxx,v 1.1.1.1 2000/05/16 17:00:45 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.