12 #ifndef TBASKETSQL_CXX 13 #define TBASKETSQL_CXX 29 namespace std {}
using namespace std;
49 std::vector<Int_t> *vc,
TSQLRow **
r) :
89 std::vector<Int_t> *vc,
105 Error(
"CreateBuffer",
"Need a vector of columns\n");
133 Error(
"ReadBasketBytes",
"This member function should not be called!");
142 Error(
"ReadBasketBuffers",
"This member function should not be called!");
Bool_t fHeaderOnly
True when only the basket header must be read/written.
TBasketSQL()
Default constructor.
virtual Int_t GetBasketSize() const
Int_t * fDisplacement
![fNevBuf] Displacement of entries in fBuffer(TKey)
virtual void Reset()
See TBasket::Reset.
Implement TBuffer for a SQL backend.
Int_t fBufferSize
fBuffer length in bytes
Int_t * fEntryOffset
[fNevBuf] Offset of entries in fBuffer(TKey); generated at runtime.
virtual void SetName(const char *name)
Set the name of the TNamed.
TBranch * fBranch
Pointer to the basket support branch.
Implement TTree for a SQL backend.
Int_t fNevBuf
Number of entries in basket.
char * fBuffer
Object buffer.
Int_t GetEntryOffsetLen() const
void CreateBuffer(const char *name, TString title, std::vector< Int_t > *vc, TBranch *branch, TSQLResult **rs)
Create a TSQLBuffer for this basket.
virtual void Reset()
Reset the basket to the starting state.
TString fClassName
Object Class name.
void PrepareBasket(Long64_t entry)
Prepare the basket for the next entry.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Manages buffers for branches of a Tree.
void Update(Int_t offset, Int_t skipped)
See TBasket::Update.
TBuffer * fBufferRef
Pointer to the TBuffer object.
Int_t fNevBufSize
Length in Int_t of fEntryOffset OR fixed length of each entry if fEntryOffset is null! ...
Implement TBasket for a SQL backend.
virtual Int_t ReadBasketBytes(Long64_t pos, TFile *file)
See TBasket::ReadBasketBytes. This is not implemented in TBasketSQL.
Int_t fLast
Pointer to last used byte in basket.
A TTree is a list of TBranches.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual Int_t ReadBasketBuffers(Long64_t pos, Int_t len, TFile *file)
See TBasket::ReadBasketBuffers. This is not implemented in TBasketSQL.