51 #ifndef STDBXMLWRITER_HH
52 #define STDBXMLWRITER_HH
56 #include "tableAcceptor.hh"
57 #include "stdb_streams.h"
74 virtual void streamHeader(
const char* name) { };
75 virtual void streamTableName(
const char* name){ };
76 virtual void streamEndTableName(){ };
77 virtual void streamAccessor(){ };
78 virtual void endAccessor(){ };
79 virtual void streamRow(
int row){ };
80 virtual void streamEndRow(){ };
81 virtual void streamTail(){ };
84 virtual void pass(
char* name,
short& i,
int& len) ;
85 virtual void pass(
char* name,
int& i,
int& len);
86 virtual void pass(
char* name,
long& i,
int& len);
87 virtual void pass(
char* name,
unsigned short& i,
int& len) ;
88 virtual void pass(
char* name,
unsigned int& i,
int& len) ;
89 virtual void pass(
char* name,
unsigned long& i,
int& len) ;
90 virtual void pass(
char* name,
long long& i,
int& len) ;
92 virtual void pass(
char* name,
float& i,
int& len);
93 virtual void pass(
char* name,
double& i,
int& len);
94 virtual void pass(
char* name,
char*& i,
int& len);
95 virtual void pass(
char* name,
unsigned char& i,
int& len) ;
96 virtual void pass(
char* name,
unsigned char*& i,
int& len) ;
97 virtual void pass(
char* name,
short*& i,
int& len) ;
98 virtual void pass(
char* name,
int*& i,
int& len);
99 virtual void pass(
char* name,
long*& i,
int& len);
100 virtual void pass(
char* name,
unsigned short*& i,
int& len) ;
101 virtual void pass(
char* name,
unsigned int*& i,
int& len) ;
102 virtual void pass(
char* name,
unsigned long*& i,
int& len) ;
103 virtual void pass(
char* name,
long long*& i,
int& len) ;
104 virtual void pass(
char* name,
float*& i,
int& len);
105 virtual void pass(
char* name,
double*& i,
int& len);
111 inline void StDbFastSqlWriter::pass(
char* name,
short& i,
int& len){ *os<<
","<<i; };
112 inline void StDbFastSqlWriter::pass(
char* name,
int& i,
int& len){ *os<<
","<<i; };
113 inline void StDbFastSqlWriter::pass(
char* name,
long& i,
int& len){ *os<<
","<<i; };
114 inline void StDbFastSqlWriter::pass(
char* name,
long long& i,
int& len){ *os<<
","<<i; };
115 inline void StDbFastSqlWriter::pass(
char* name,
unsigned short& i,
int& len){ *os<<
","<<i; };
116 inline void StDbFastSqlWriter::pass(
char* name,
unsigned char& i,
int& len){ *os<<(int)i; };
117 inline void StDbFastSqlWriter::pass(
char* name,
unsigned int& i,
int& len){ *os<<
","<<i; };
118 inline void StDbFastSqlWriter::pass(
char* name,
unsigned long& i,
int& len){ *os<<
","<<i; };
120 inline void StDbFastSqlWriter::pass(
char* name,
float& i,
int& len){ *os<<
","<<i; };
121 inline void StDbFastSqlWriter::pass(
char* name,
double& i,
int& len){ *os<<
","<<i; };
122 inline void StDbFastSqlWriter::pass(
char* name,
char*& i,
int& len){
123 *os<<
",'"<<i<<
"'"; };