Changeset 15419 for trunk/Mars/msql/MTreeSQL.h
- Timestamp:
- 04/24/13 19:11:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msql/MTreeSQL.h
r15417 r15419 39 39 class TSQLServer; 40 40 class TSQLRow; 41 class MBasketSQL;42 41 43 42 class MTreeSQL : public TTree { … … 46 45 Int_t fCurrentEntry; 47 46 TString fDB; 48 TString fInsertQuery;49 47 TString fQuery; 50 TString fTable;51 48 TSQLResult *fResult; 52 49 TSQLRow *fRow; 53 50 TSQLServer *fServer; 54 Bool_t fBranchChecked;51 std::vector<TString> fTables; 55 52 56 void CheckBasket(TBranch * tb);57 Bool_t CheckBranch(TBranch * tb);58 53 Bool_t CheckTable(const TString &table) const; 59 TString CreateBranches(TSQLResult * rs );54 TString CreateBranches(TSQLResult * rs, const TString &table); 60 55 std::vector<Int_t> *GetColumnIndice(TBranch *branch); 61 void Init(); 62 void ResetQuery(); 63 TString ConvertTypeName(const TString& typeName ); 64 virtual void CreateBranch(const TString& branchName,const TString &typeName); 65 Bool_t CreateTable(const TString& table); 66 virtual TBasket *CreateBasket(TBranch * br); 56 void Init(); 57 virtual TBasket *CreateBasket(TBranch * br); 67 58 68 59 virtual TBranch *BranchImp(const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel); 69 60 virtual TBranch *BranchImp(const char *branchname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel); 70 61 71 62 public: 72 MTreeSQL(TSQLServer * server, TString DB, const TString& table, const TString &addon );63 MTreeSQL(TSQLServer * server, TString DB, const TString& table, const TString &addon=""); 73 64 74 65 virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name=""); … … 88 79 virtual Long64_t GetEntries(const char *sel) { return TTree::GetEntries(sel); } 89 80 virtual Long64_t GetEntriesFast()const; 90 TString GetTableName(){ return fTable; }91 81 virtual Long64_t LoadTree(Long64_t entry); 92 82 virtual Long64_t PrepEntry(Long64_t entry);
Note:
See TracChangeset
for help on using the changeset viewer.