library: libTree
#include "TTreeSQL.h"

TTreeSQL


class description - header file - source file - inheritance tree (.pdf)

class TTreeSQL : public TTree

Inheritance Chart:
TObject
<-
TNamed
TAttLine
TAttFill
TAttMarker
<-
TTree
<-
TTreeSQL

    protected:
virtual TBranch* BranchImp(const char* branchname, const char* classname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel) virtual TBranch* BranchImp(const char* branchname, TClass* ptrClass, void* addobj, Int_t bufsize, Int_t splitlevel) void CheckBasket(TBranch* tb) Bool_t CheckBranch(TBranch* tb) Bool_t CheckTable(const TString& table) const TString ConvertTypeName(const TString& typeName) virtual TBasket* CreateBasket(TBranch* br) virtual void CreateBranch(const TString& branchName, const TString& typeName) TString CreateBranches(TSQLResult* rs) void CreateTable(const TString& table) vector<Int_t>* GetColumnIndice(TBranch* branch) void Init() void ResetQuery() public:
TTreeSQL(TSQLServer* server, TString DB, const TString& table) TTreeSQL(const TTreeSQL&) ~TTreeSQL() virtual Int_t Branch(TCollection* list, Int_t bufsize = 32000, Int_t splitlevel = 99, const char* name = "") virtual Int_t Branch(TList* list, Int_t bufsize = 32000, Int_t splitlevel = 99) virtual Int_t Branch(const char* folder, Int_t bufsize = 32000, Int_t splitlevel = 99) virtual TBranch* Branch(const char* name, void* address, const char* leaflist, Int_t bufsize) virtual TBranch* BranchOld(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 1) virtual TBranch* Bronch(const char* name, const char* classname, void* addobj, Int_t bufsize = 32000, Int_t splitlevel = 99) static TClass* Class() virtual Int_t Fill() virtual Long64_t GetEntries() const virtual Long64_t GetEntriesFast() const virtual Int_t GetEntry(Long64_t entry = 0, Int_t getall = 0) TString GetTableName() virtual TClass* IsA() const virtual Long64_t LoadTree(Long64_t entry) virtual Long64_t PrepEntry(Long64_t entry) virtual void Refresh() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t fCurrentEntry TString fDB TString fInsertQuery TString fQuery TString fTable TSQLResult* fResult TSQLRow* fRow TSQLServer* fServer Bool_t fBranchChecked

Class Description

                                                                      
 TTreeSQL                                                             
                                                                      
 Implement TTree for a SQL backend                                    
                                                                      

TTreeSQL(TSQLServer *server, TString DB, const TString& table)
 Constructor with an explicit TSQLServer
TBranch* BranchImp(const char *, const char *, TClass *, void *, Int_t , Int_t )
 Not implemented yet
TBranch* BranchImp(const char *, TClass *, void *, Int_t , Int_t )
 Not implemented yet
Int_t Branch(TCollection *, Int_t, Int_t, const char *)
 Not implemented yet
Int_t Branch(TList *, Int_t, Int_t)
 Not implemented yet
Int_t Branch(const char *, Int_t , Int_t)
 Not implemented yet
TBranch* Bronch(const char *, const char *, void *, Int_t, Int_t)
 Not implemented yet
TBranch* BranchOld(const char *, const char *, void *, Int_t, Int_t)
 Not implemented yet
TBranch * Branch(const char *, const char *, void *, Int_t, Int_t)
 Not implemented yet
void CheckBasket(TBranch *branch)
 Check if the basket is properly setup
Bool_t CheckBranch(TBranch * tb)
 Check if the table has a column corresponding the branch
 and that the resultset are properly setup
Bool_t CheckTable(const TString &table)
 Check the table exist in the database
TString ConvertTypeName(const TString& typeName )
 Convert from ROOT typename to SQL typename
TBasket * CreateBasket(TBranch * tb)
 Create a TBasketSQL
void CreateBranch(const TString &branchName, const TString &typeName)
 Create the column(s) in the database that correspond to the branch
TString CreateBranches(TSQLResult * rs)
 determine leaf description string
void CreateTable(const TString &table)
 Create the database table corresponding to this TTree.
void Init()
 Initializeation routine
Int_t Fill()
 Copy the information from the user object to the TTree
vector<Int_t> * GetColumnIndice(TBranch *branch)
 Return a vector of columns index corresponding to the
 current SQL table and the branch given as argument
 Returns 0 if no columns indices is found
 Otherwise returns a pointer to a vector to be deleted by the caller
Long64_t GetEntries()
 Get the number of rows in the database
Long64_t GetEntriesFast()
 Return the number of entries as of the last check.
 Use GetEntries for a more accurate count.
Int_t GetEntry(Long64_t entry, Int_t getall)
 Load the data for the entry from the database.
Long64_t LoadTree(Long64_t entry)
 Setup the tree to the load the specified entry.
Long64_t PrepEntry(Long64_t entry)
 Make sure the server and result set are setup for the requested entry
void Refresh()
  Refresh contents of this Tree and his branches from the current
  Tree status in the database
  One can call this function in case the Tree on its file is being
  updated by another process
void ResetQuery()
 Reset the internal query
TTreeSQL(TSQLServer * server, TString DB, const TString& table)
TString GetTableName()

Author: Philippe Canal and al. 08/2004
Last update: root/tree:$Name: $:$Id: TTreeSQL.cxx,v 1.9 2006/04/19 08:22:25 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.