library: libTree #include "TTreeSQL.h" |
TTreeSQL
class description - header file - source file - inheritance tree (.pdf)
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)
protected:
Int_t fCurrentEntry
TString fDB
TString fInsertQuery
TString fQuery
TString fTable
TSQLResult* fResult
TSQLRow* fRow
TSQLServer* fServer
Bool_t fBranchChecked
Bool_t CheckBranch(TBranch * tb)
Check if the table has a column corresponding the branch
and that the resultset are properly setup
void CreateBranch(const TString &branchName, const TString &typeName)
Create the column(s) in the database that correspond to the branch
void Init()
Initializeation routine
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
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
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.