Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TBasketSQL.h
Go to the documentation of this file.
1// @(#)root/tree:$Id$
2// Author: Philippe Canal 2005
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef TBASKETSQL_H
13#define TBASKETSQL_H
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TBasketSQL //
18// //
19// Implement TBasket for a SQL backend //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include <vector>
24#include "TBasket.h"
25
26class TSQLResult;
27class TSQLRow;
28class TBufferSQL;
29
30class TBasketSQL : public TBasket
31{
32
33private:
34 TBasketSQL(const TBasketSQL&); // TBasketSQL objects are not copiable.
35 TBasketSQL& operator=(const TBasketSQL&); // TBasketSQL objects are not copiable.
36
37protected:
41
42public:
43 TBasketSQL();
44 TBasketSQL(const char *name, const char *title,
45 TBranch *branch, TSQLResult **rs,
46 TString *insert_query, std::vector<Int_t> *vc, TSQLRow **row);
47 ~TBasketSQL() override;
48 void PrepareBasket(Long64_t entry) override;
49 virtual Int_t ReadBasketBuffers(Long64_t pos, Int_t len, TFile *file);
50 virtual Int_t ReadBasketBytes(Long64_t pos, TFile *file);
51
53 void CreateBuffer(const char *name, TString title, std::vector<Int_t> * vc, TBranch *branch, TSQLResult ** rs);
54
55 void Update(Int_t offset, Int_t skipped) override;
56
57 ClassDefOverride(TBasketSQL,1) //the TBranch buffers
58
59};
60
61#endif
int Int_t
Definition RtypesCore.h:45
long long Long64_t
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
char name[80]
Definition TGX11.cxx:110
Implement TBasket for a SQL backend.
Definition TBasketSQL.h:31
TSQLResult * GetResultSet()
Definition TBasketSQL.h:52
void CreateBuffer(const char *name, TString title, std::vector< Int_t > *vc, TBranch *branch, TSQLResult **rs)
Create a TSQLBuffer for this basket.
TSQLResult ** fResultPtr
Definition TBasketSQL.h:38
virtual Int_t ReadBasketBuffers(Long64_t pos, Int_t len, TFile *file)
See TBasket::ReadBasketBuffers. This is not implemented in TBasketSQL.
TBasketSQL()
Default constructor.
TSQLRow ** fRowPtr
Definition TBasketSQL.h:39
~TBasketSQL() override
Destructor.
TBasketSQL(const TBasketSQL &)
virtual Int_t ReadBasketBytes(Long64_t pos, TFile *file)
See TBasket::ReadBasketBytes. This is not implemented in TBasketSQL.
void PrepareBasket(Long64_t entry) override
Prepare the basket for the next entry.
void Update(Int_t offset, Int_t skipped) override
See TBasket::Update.
TString * fInsertQuery
Definition TBasketSQL.h:40
TBasketSQL & operator=(const TBasketSQL &)
Manages buffers for branches of a Tree.
Definition TBasket.h:34
A TTree is a list of TBranches.
Definition TBranch.h:93
Implement TBuffer for a SQL backend.
Definition TBufferSQL.h:30
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Definition TFile.h:53
Basic string class.
Definition TString.h:139