58 void *buf,
bool adopt) :
115 i = atoi((*fRowPtr)->GetField(*
fIter));
125 f = atof((*fRowPtr)->GetField(*
fIter));
145 d = atof((*fRowPtr)->GetField(*
fIter));
155 (*fInsertQuery) +=
b;
156 (*fInsertQuery) +=
",";
165 (*fInsertQuery) +=
c;
166 (*fInsertQuery) +=
",";
175 (*fInsertQuery) +=
h;
176 (*fInsertQuery) +=
",";
185 (*fInsertQuery) += i;
186 (*fInsertQuery) +=
",";
195 (*fInsertQuery) +=
l;
196 (*fInsertQuery) +=
",";
205 (*fInsertQuery) +=
f;
206 (*fInsertQuery) +=
",";
215 (*fInsertQuery) +=
d;
216 (*fInsertQuery) +=
",";
247 if(code == 0)
Error(
"operator>>(UInt_t&)",
"Error reading UInt_t");
259 if(code == 0)
Error(
"operator>>(ULong_t&)",
"Error reading ULong_t");
271 if(code == 0)
Error(
"operator>>(ULong_t&)",
"Error reading Long64_t");
283 if(code == 0)
Error(
"operator>>(ULong_t&)",
"Error reading ULong64_t");
302 s = (*fRowPtr)->GetField(*
fIter);
311 (*fInsertQuery) += s;
312 (*fInsertQuery) +=
",";
358 (*fInsertQuery) +=
uc;
359 (*fInsertQuery) +=
",";
368 (*fInsertQuery) += us;
369 (*fInsertQuery) +=
",";
378 (*fInsertQuery) +=
ui;
379 (*fInsertQuery) +=
",";
388 (*fInsertQuery) +=
ul;
389 (*fInsertQuery) +=
",";
398 (*fInsertQuery) += ll;
399 (*fInsertQuery) +=
",";
408 (*fInsertQuery) += ull;
409 (*fInsertQuery) +=
",";
418 (*fInsertQuery) +=
"\"";
419 (*fInsertQuery) += str;
420 (*fInsertQuery) +=
"\",";
434 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
437 for(
int i=0; i<
n; ++i) {
438 (*fInsertQuery) +=
b[i];
439 (*fInsertQuery) +=
",";
454 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
457 for(
int i=0; i<
n; ++i) {
459 (*fInsertQuery) +=
",";
474 Fatal(
"WriteFastArrayString",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d", 1LL,
maxElements);
477 (*fInsertQuery) +=
"\"";
478 (*fInsertQuery) +=
c;
479 (*fInsertQuery) +=
"\",";
493 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
496 for(
int i=0; i<
n; ++i) {
497 (*fInsertQuery) +=
uc[i];
498 (*fInsertQuery) +=
",";
513 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
516 for(
int i=0; i<
n; ++i) {
517 (*fInsertQuery) +=
h[i];
518 (*fInsertQuery) +=
",";
534 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
537 for(
int i=0; i<
n; ++i) {
538 (*fInsertQuery) += us[i];
539 (*fInsertQuery) +=
",";
554 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
558 for(
int i=0; i<
n; ++i) {
559 (*fInsertQuery) +=
ii[i];
560 (*fInsertQuery) +=
",";
575 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
578 for(
int i=0; i<
n; ++i) {
579 (*fInsertQuery) +=
ui[i];
580 (*fInsertQuery) +=
",";
595 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
598 for(
int i=0; i<
n; ++i) {
599 (*fInsertQuery)+=
l[i];
600 (*fInsertQuery)+=
",";
615 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
618 for(
int i=0; i<
n; ++i) {
619 (*fInsertQuery) +=
ul[i];
620 (*fInsertQuery) +=
",";
635 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
638 for(
int i=0; i<
n; ++i) {
639 (*fInsertQuery) +=
l[i];
640 (*fInsertQuery) +=
",";
655 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
658 for(
int i=0; i<
n; ++i) {
659 (*fInsertQuery) +=
ul[i];
660 (*fInsertQuery) +=
",";
675 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
678 for(
int i=0; i<
n; ++i) {
679 (*fInsertQuery) +=
f[i];
680 (*fInsertQuery) +=
",";
695 Fatal(
"WriteFastArray",
"Not enough space left in the buffer (1GB limit). %lld elements is greater than the max left of %d",
n,
maxElements);
698 for(
int i=0; i<
n; ++i) {
699 (*fInsertQuery) +=
d[i];
700 (*fInsertQuery )+=
",";
711 Fatal(
"WriteFastArray(void*, const TClass*, Long64_t, TMemberStreamer *)",
"Not implemented yet");
720 Fatal(
"WriteFastArray(void **, const TClass*, Long64_t, bool, TMemberStreamer*)",
"Not implemented yet");
729 for(
int i=0; i<
n; ++i) {
730 b[i] = (
bool)atoi((*fRowPtr)->GetField(*
fIter));
740 for(
int i=0; i<
n; ++i) {
760 for(
int i=0; i<
n; ++i) {
771 for(
int i=0; i<
n; ++i) {
782 for(
int i=0; i<
n; ++i) {
793 for(
int i=0; i<
n; ++i) {
794 in[i] = atoi((*fRowPtr)->GetField(*
fIter));
804 for(
int i=0; i<
n; ++i) {
805 ui[i] = atoi((*fRowPtr)->GetField(*
fIter));
815 for(
int i=0; i<
n; ++i) {
826 for(
int i=0; i<
n; ++i) {
836 for(
int i=0; i<
n; ++i) {
846 for(
int i=0; i<
n; ++i) {
856 for(
int i=0; i<
n; ++i) {
857 f[i] = atof((*fRowPtr)->GetField(*
fIter));
867 for(
int i=0; i<
n; ++i) {
868 d[i] = atof((*fRowPtr)->GetField(*
fIter));
878 Fatal(
"ReadFastArrayFloat16(Float_t *, Int_t , TStreamerElement *)",
"Not implemented yet");
886 Fatal(
"ReadFastArrayWithFactor(Float_t *, Int_t, Double_t, Double_t)",
"Not implemented yet");
894 Fatal(
"ReadFastArrayWithNbits(Float_t *, Int_t , Int_t )",
"Not implemented yet");
902 Fatal(
"ReadFastArrayWithFactor(Double_t *, Int_t, Double_t, Double_t)",
"Not implemented yet");
910 Fatal(
"ReadFastArrayWithNbits(Double_t *, Int_t , Int_t )",
"Not implemented yet");
918 Fatal(
"ReadFastArrayDouble32(Double_t *, Int_t , TStreamerElement *)",
"Not implemented yet");
926 Fatal(
"ReadFastArray(void *, const TClass *, Int_t, TMemberStreamer *, const TClass *)",
"Not implemented yet");
934 Fatal(
"ReadFastArray(void **, const TClass *, Int_t, bool, TMemberStreamer *, const TClass *)",
"Not implemented yet");
unsigned short UShort_t
Unsigned Short integer 2 bytes (unsigned short)
unsigned char UChar_t
Unsigned Character 1 byte (unsigned char)
char Char_t
Character 1 byte (char)
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
float Float_t
Float 4 bytes (float)
short Short_t
Signed Short integer 2 bytes (short)
long long Long64_t
Portable signed long integer 8 bytes.
unsigned long long ULong64_t
Portable unsigned long integer 8 bytes.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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 r
Option_t Option_t TPoint TPoint const char mode
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket.
void ReadCharStar(char *&s) override
Read char* from TBuffer.
void WriteCharStar(char *s) override
Write char* into TBuffer.
void WriteStdString(const std::string *s) override
Write std::string to TBuffer.
void ReadStdString(std::string *s) override
Read std::string from TBuffer.
Implement TBuffer for a SQL backend.
void ReadLong(Long_t &l) final
Operator>>
void WriteDouble(Double_t d) final
Operator<<.
void ReadFastArray(bool *, Int_t) final
ReadFastArray SQL implementation.
void ReadFastArrayFloat16(Float_t *f, Int_t n, TStreamerElement *ele=nullptr) final
ReadFastArray SQL implementation.
void WriteFastArrayString(const Char_t *c, Long64_t n) final
WriteFastArray SQL implementation.
void WriteULong(ULong_t l) final
Operator<<.
void WriteUInt(UInt_t i) final
Operator<<.
void WriteFloat(Float_t f) final
Operator<<.
void ReadULong64(ULong64_t &l) final
Operator>>
void ReadCharStar(char *&s) final
Read a char* string.
void ReadInt(Int_t &i) final
Operator>>
void ReadTString(TString &s) final
Read a TString.
void WriteUChar(UChar_t c) final
Operator<<.
void WriteShort(Short_t s) final
Operator<<.
void WriteUShort(UShort_t s) final
Operator<<.
void ReadShort(Short_t &s) final
Operator>>
void WriteLong(Long_t l) final
Operator<<.
void ReadLong64(Long64_t &l) final
Operator>>
void ReadChar(Char_t &c) final
Operator>>
std::vector< Int_t > * fColumnVec
void ReadFastArrayString(Char_t *, Int_t) final
ReadFastArray SQL implementation.
void WriteStdString(const std::string *s) final
Write a std::string.
void ReadStdString(std::string *s) final
Read a std::string.
void WriteInt(Int_t i) final
Operator<<.
void ReadUShort(UShort_t &s) final
Operator>>
void ReadFastArrayWithFactor(Float_t *ptr, Int_t n, Double_t factor, Double_t minvalue) final
Read array of Float16_t from buffer.
void WriteTString(const TString &s) final
Write a TString.
void ReadUInt(UInt_t &i) final
Operator>>
void WriteULong64(ULong64_t l) final
Operator<<.
~TBufferSQL() override
Destructor.
void ReadCharP(Char_t *c) final
Operator>>
void WriteCharStar(char *s) final
Write a char* string.
void ReadFastArrayWithNbits(Float_t *ptr, Int_t n, Int_t nbits) final
Read array of Float16_t from buffer.
std::vector< Int_t >::const_iterator fIter
void WriteFastArray(const bool *b, Long64_t n) final
WriteFastArray SQL implementation.
void ResetOffset()
Reset Offset.
void WriteBool(bool b) final
Operator<<.
void WriteCharP(const Char_t *c) final
Operator<<.
void WriteLong64(Long64_t l) final
Operator<<.
void ReadDouble(Double_t &d) final
Operator>>
void ReadULong(ULong_t &l) final
Operator>>
void ReadFastArrayDouble32(Double_t *d, Int_t n, TStreamerElement *ele=nullptr) final
ReadFastArray SQL implementation.
void ReadFloat(Float_t &f) final
Operator>>
void WriteChar(Char_t c) final
Operator<<.
void ReadBool(bool &b) final
Operator>>
void ReadUChar(UChar_t &c) final
Operator>>
TClass instances represent classes, structs and namespaces in the ROOT type system.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
Describe one element (data member) to be Streamed.
const char * Data() const