StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StDbLib
StDbFastSqlWriter.cc
1
#include "StDbFastSqlWriter.h"
2
#include "StDbTable.h"
3
4
void
5
StDbFastSqlWriter::ioTable(
StDbTable
* table){
6
7
table->setRowNumber();
8
int
nrows=table->GetNRows();
9
for
(
int
k=0;k<nrows;k++){
10
if
(k>0)*os<<
"),("
;
11
*os<<table->getBeginTime();
12
table->dbStreamer((
typeAcceptor
*)
this
,
false
);
13
}
14
15
}
16
17
void
18
StDbFastSqlWriter::pass(
char
* name,
unsigned
char
*& i,
int
& len){
19
*os<<
",'"
<<(int)i[0];
20
for
(
int
j=1;j<len;j++)*os<<
","
<<(
int
)i[j];
21
*os<<
"'"
;
22
}
23
24
void
25
StDbFastSqlWriter::pass(
char
* name,
short
*& i,
int
& len){
26
*os<<
",'"
<<i[0];
27
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
28
*os<<
"'"
;
29
}
30
31
void
32
StDbFastSqlWriter::pass(
char
* name,
int
*& i,
int
& len){
33
*os<<
",'"
<<i[0];
34
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
35
*os<<
"'"
;
36
}
37
38
void
39
StDbFastSqlWriter::pass(
char
* name,
long
*& i,
int
& len){
40
*os<<
",'"
<<i[0];
41
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
42
*os<<
"'"
;
43
}
44
45
46
void
47
StDbFastSqlWriter::pass(
char
* name,
unsigned
short
*& i,
int
& len){
48
*os<<
",'"
<<i[0];
49
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
50
*os<<
"'"
;
51
}
52
53
void
54
StDbFastSqlWriter::pass(
char
* name,
unsigned
int
*& i,
int
& len){
55
*os<<
",'"
<<i[0];
56
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
57
*os<<
"'"
;
58
}
59
60
void
61
StDbFastSqlWriter::pass(
char
* name,
unsigned
long
*& i,
int
& len){
62
*os<<
",'"
<<i[0];
63
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
64
*os<<
"'"
;
65
}
66
67
void
68
StDbFastSqlWriter::pass(
char
* name,
long
long
*& i,
int
& len){
69
*os<<
",'"
<<i[0];
70
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
71
*os<<
"'"
;
72
}
73
74
void
75
StDbFastSqlWriter::pass(
char
* name,
float
*& i,
int
& len){
76
*os<<
",'"
<<i[0];
77
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
78
*os<<
"'"
;
79
}
80
81
void
82
StDbFastSqlWriter::pass(
char
* name,
double
*& i,
int
& len){
83
*os<<
",'"
<<i[0];
84
for
(
int
j=1;j<len;j++)*os<<
","
<<i[j];
85
*os<<
"'"
;
86
}
87
88
typeAcceptor
Definition:
typeAcceptor.hh:40
StDbTable
Definition:
StDbTable.h:152
Generated by
1.8.5