ROOT  6.06/09
Reference Guide
Macros | Functions
TBufferSQL2.cxx File Reference
#include "TBufferSQL2.h"
#include "TObjArray.h"
#include "TROOT.h"
#include "TDataType.h"
#include "TClass.h"
#include "TClassTable.h"
#include "TMap.h"
#include "TExMap.h"
#include "TMethodCall.h"
#include "TStreamerInfo.h"
#include "TStreamerElement.h"
#include "TProcessID.h"
#include "TFile.h"
#include "TMemberStreamer.h"
#include "TStreamer.h"
#include "Riostream.h"
#include <stdlib.h>
#include "TStreamerInfoActions.h"
#include "TSQLServer.h"
#include "TSQLResult.h"
#include "TSQLRow.h"
#include "TSQLStructure.h"
#include "TSQLObjectData.h"
#include "TSQLFile.h"
#include "TSQLClassInfo.h"
+ Include dependency graph for TBufferSQL2.cxx:

Go to the source code of this file.

Macros

#define FLong64   "%lld"
 
#define FULong64   "%llu"
 
#define SQLReadArrayUncompress(vname, arrsize)
 
#define SQLReadArrayCompress(vname, arrsize)
 
#define SQLReadArrayContent(vname, arrsize, withsize)
 
#define TBufferSQL2_ReadArray(tname, vname)
 
#define TBufferSQL2_ReadStaticArray(vname)
 
#define TBufferSQL2_ReadFastArray(vname)
 
#define SQLWriteArrayNoncompress(vname, arrsize)
 
#define SQLWriteArrayCompress(vname, arrsize)
 
#define SQLWriteArrayContent(vname, arrsize, withsize)
 
#define TBufferSQL2_WriteArray(vname)
 
#define TBufferSQL2_WriteFastArray(vname)
 
#define TBufferSQL2_operatorin(vname)
 
#define TBufferSQL2_operatorout(vname)
 

Functions

 ClassImp (TBufferSQL2)
 

Macro Definition Documentation

#define FLong64   "%lld"

Definition at line 59 of file TBufferSQL2.cxx.

Referenced by TBufferSQL2::SqlReadBasic(), and TBufferSQL2::SqlReadObject().

#define FULong64   "%llu"

Definition at line 60 of file TBufferSQL2.cxx.

Referenced by TBufferSQL2::SqlReadBasic(), and TBufferSQL2::SqlWriteBasic().

#define SQLReadArrayCompress (   vname,
  arrsize 
)
Value:
{ \
while(indx<arrsize) { \
const char* name = fCurrentData->GetBlobPrefixName(); \
Int_t first, last, res; \
if (strstr(name,sqlio::IndexSepar)==0) { \
res = sscanf(name,"[%d", &first); last = first; \
} else res = sscanf(name,"[%d..%d", &first, &last); \
if (gDebug>5) std::cout << name << " first = " << first << " last = " << last << " res = " << res << std::endl; \
if ((first!=indx) || (last<first) || (last>=arrsize)) { \
Error("SQLReadArrayCompress","Error reading array content %s", name); \
fErrorFlag = 1; \
break; \
} \
SqlReadBasic(vname[indx]); indx++; \
while(indx<=last) \
vname[indx++] = vname[first]; \
} \
}
const char * IndexSepar
int Int_t
Definition: RtypesCore.h:41
STL namespace.
if(pyself &&pyself!=Py_None)
void Error(const char *location, const char *msgfmt,...)
#define name(a, b)
Definition: linkTestLib0.cpp:5
while((ob=next()))
R__EXTERN Int_t gDebug
Definition: Rtypes.h:128

Definition at line 1017 of file TBufferSQL2.cxx.

#define SQLReadArrayContent (   vname,
  arrsize,
  withsize 
)
Value:
{ \
if (gDebug>3) std::cout << "SQLReadArrayContent " << (arrsize) << std::endl; \
PushStack()->SetArray(withsize ? arrsize : -1); \
Int_t indx = 0; \
if (fCurrentData->IsBlobData()) \
SQLReadArrayCompress(vname, arrsize) \
else \
SQLReadArrayUncompress(vname, arrsize) \
PopStack(); \
if (gDebug>3) std::cout << "SQLReadArrayContent done " << std::endl; \
}
#define SQLReadArrayCompress(vname, arrsize)
int Int_t
Definition: RtypesCore.h:41
STL namespace.
if(pyself &&pyself!=Py_None)
#define SQLReadArrayUncompress(vname, arrsize)
#define SQLReadArrayContent(vname, arrsize, withsize)
else
Definition: TBase64.cxx:55
R__EXTERN Int_t gDebug
Definition: Rtypes.h:128

Definition at line 1039 of file TBufferSQL2.cxx.

#define SQLReadArrayUncompress (   vname,
  arrsize 
)
Value:
{ \
while(indx<arrsize) \
SqlReadBasic(vname[indx++]); \
}
while((ob=next()))

Definition at line 1010 of file TBufferSQL2.cxx.

#define SQLWriteArrayCompress (   vname,
  arrsize 
)
Value:
{ \
Int_t indx = 0; \
while(indx<arrsize) { \
Int_t curr = indx; indx++; \
while ((indx<arrsize) && (vname[indx]==vname[curr])) indx++; \
SqlWriteBasic(vname[curr]); \
Stack()->ChildArrayIndex(curr, indx-curr); \
} \
}
int Int_t
Definition: RtypesCore.h:41
while((ob=next()))

Definition at line 1669 of file TBufferSQL2.cxx.

#define SQLWriteArrayContent (   vname,
  arrsize,
  withsize 
)
Value:
{ \
PushStack()->SetArray(withsize ? arrsize : -1); \
if (fCompressLevel>0) { \
SQLWriteArrayCompress(vname, arrsize) \
} else { \
SQLWriteArrayNoncompress(vname, arrsize) \
} \
PopStack(); \
}
#define SQLWriteArrayNoncompress(vname, arrsize)
#define SQLWriteArrayCompress(vname, arrsize)
if(pyself &&pyself!=Py_None)

Definition at line 1680 of file TBufferSQL2.cxx.

#define SQLWriteArrayNoncompress (   vname,
  arrsize 
)
Value:
{ \
for(Int_t indx=0;indx<arrsize;indx++) { \
SqlWriteBasic(vname[indx]); \
Stack()->ChildArrayIndex(indx, 1); \
} \
}
for(Int_t i=0;i< n;i++)
Definition: legend1.C:18
int Int_t
Definition: RtypesCore.h:41

Definition at line 1660 of file TBufferSQL2.cxx.

#define TBufferSQL2_operatorin (   vname)
#define TBufferSQL2_operatorout (   vname)
#define TBufferSQL2_ReadArray (   tname,
  vname 
)
Value:
{ \
Int_t n = SqlReadArraySize(); \
if (n<=0) return 0; \
if (!vname) vname = new tname[n]; \
SQLReadArrayContent(vname, n, kTRUE); \
return n; \
}
int Int_t
Definition: RtypesCore.h:41
if(pyself &&pyself!=Py_None)
#define SQLReadArrayContent(vname, arrsize, withsize)
return
Definition: TBase64.cxx:62
const Bool_t kTRUE
Definition: Rtypes.h:91
const Int_t n
Definition: legend1.C:16

Definition at line 1053 of file TBufferSQL2.cxx.

Referenced by TBufferSQL2::ReadArray(), TBufferSQL2::ReadArrayDouble32(), and TBufferSQL2::ReadArrayFloat16().

#define TBufferSQL2_ReadFastArray (   vname)
Value:
{ \
if (n<=0) return; \
TStreamerElement* elem = Stack(0)->GetElement(); \
if ((elem!=0) && (elem->GetType()>TStreamerInfo::kOffsetL) && \
(elem->GetType()<TStreamerInfo::kOffsetP) && \
(elem->GetArrayLength()!=n)) fExpectedChain = kTRUE; \
if (fExpectedChain) { \
fExpectedChain = kFALSE; \
Int_t startnumber = Stack(0)->GetElementNumber(); \
TStreamerInfo* info = Stack(1)->GetStreamerInfo(); \
Int_t index = 0; \
while (index<n) { \
elem = (TStreamerElement*)info->GetElements()->At(startnumber++); \
if (index>1) { PopStack(); WorkWithElement(elem, elem->GetType()); } \
if (elem->GetType()<TStreamerInfo::kOffsetL) { \
SqlReadBasic(vname[index]); \
index++; \
} else { \
Int_t elemlen = elem->GetArrayLength(); \
SQLReadArrayContent((vname+index), elemlen, kFALSE); \
index+=elemlen; \
} \
} \
} else { \
} \
}
Describe Streamer information for one class version.
Definition: TStreamerInfo.h:47
int Int_t
Definition: RtypesCore.h:41
const Bool_t kFALSE
Definition: Rtypes.h:92
Type GetType(const std::string &Name)
Definition: Systematics.cxx:34
if(pyself &&pyself!=Py_None)
#define SQLReadArrayContent(vname, arrsize, withsize)
return
Definition: TBase64.cxx:62
while((ob=next()))
const Bool_t kTRUE
Definition: Rtypes.h:91
const Int_t n
Definition: legend1.C:16

Definition at line 1386 of file TBufferSQL2.cxx.

Referenced by TBufferSQL2::ReadFastArray(), TBufferSQL2::ReadFastArrayDouble32(), TBufferSQL2::ReadFastArrayFloat16(), TBufferSQL2::ReadFastArrayWithFactor(), and TBufferSQL2::ReadFastArrayWithNbits().

#define TBufferSQL2_ReadStaticArray (   vname)
Value:
{ \
Int_t n = SqlReadArraySize(); \
if (n<=0) return 0; \
if (!vname) return 0; \
SQLReadArrayContent(vname, n, kTRUE); \
return n; \
}
int Int_t
Definition: RtypesCore.h:41
if(pyself &&pyself!=Py_None)
#define SQLReadArrayContent(vname, arrsize, withsize)
return
Definition: TBase64.cxx:62
const Bool_t kTRUE
Definition: Rtypes.h:91
const Int_t n
Definition: legend1.C:16

Definition at line 1255 of file TBufferSQL2.cxx.

Referenced by TBufferSQL2::ReadStaticArray(), TBufferSQL2::ReadStaticArrayDouble32(), and TBufferSQL2::ReadStaticArrayFloat16().

#define TBufferSQL2_WriteArray (   vname)
Value:
{ \
}
#define SQLWriteArrayContent(vname, arrsize, withsize)
const Bool_t kTRUE
Definition: Rtypes.h:91
const Int_t n
Definition: legend1.C:16

Definition at line 1692 of file TBufferSQL2.cxx.

Referenced by TBufferSQL2::WriteArray(), TBufferSQL2::WriteArrayDouble32(), and TBufferSQL2::WriteArrayFloat16().

#define TBufferSQL2_WriteFastArray (   vname)
Value:
{ \
if (n<=0) return; \
TStreamerElement* elem = Stack(0)->GetElement(); \
if ((elem!=0) && (elem->GetType()>TStreamerInfo::kOffsetL) && \
(elem->GetType()<TStreamerInfo::kOffsetP) && \
(elem->GetArrayLength()!=n)) fExpectedChain = kTRUE; \
if (fExpectedChain) { \
TStreamerInfo* info = Stack(1)->GetStreamerInfo(); \
Int_t startnumber = Stack(0)->GetElementNumber(); \
Int_t index = 0; \
while (index<n) { \
elem = (TStreamerElement*)info->GetElements()->At(startnumber++); \
if (index>0) { PopStack(); WorkWithElement(elem, elem->GetType()); } \
if (elem->GetType()<TStreamerInfo::kOffsetL) { \
SqlWriteBasic(vname[index]); \
index++; \
} else { \
Int_t elemlen = elem->GetArrayLength(); \
SQLWriteArrayContent((vname+index), elemlen, kFALSE); \
index+=elemlen; \
} \
fExpectedChain = kFALSE; \
} \
} else { \
} \
}
Describe Streamer information for one class version.
Definition: TStreamerInfo.h:47
int Int_t
Definition: RtypesCore.h:41
const Bool_t kFALSE
Definition: Rtypes.h:92
Type GetType(const std::string &Name)
Definition: Systematics.cxx:34
if(pyself &&pyself!=Py_None)
#define SQLWriteArrayContent(vname, arrsize, withsize)
return
Definition: TBase64.cxx:62
while((ob=next()))
const Bool_t kTRUE
Definition: Rtypes.h:91
const Int_t n
Definition: legend1.C:16

Definition at line 1819 of file TBufferSQL2.cxx.

Referenced by TBufferSQL2::WriteFastArray(), TBufferSQL2::WriteFastArrayDouble32(), and TBufferSQL2::WriteFastArrayFloat16().

Function Documentation

ClassImp ( TBufferSQL2  )