41 #ifndef MYSQLPP_MANIP_H
42 #define MYSQLPP_MANIP_H
76 #if !defined(DOXYGEN_IGNORE)
82 quote_type1(std::ostream * o) :
90 operator <<(std::ostream& o, quote_type0 )
92 return quote_type1(&o);
98 SQLQueryParms *qparms;
99 quote_type2(SQLQueryParms* p) :
107 operator <<(SQLQueryParms& p, quote_type0 )
109 return quote_type2(&p);
116 MYSQLPP_EXPORT SQLQueryParms& operator <<(quote_type2 p,
123 MYSQLPP_EXPORT std::ostream& operator <<(quote_type1 o,
124 const SQLTypeAdapter& in);
134 MYSQLPP_EXPORT std::ostream& operator <<(std::ostream& o,
135 const SQLTypeAdapter& in);
140 operator <<(quote_type1 o,
const Set<ST>& in)
142 return *o.ostr <<
'\'' << in <<
'\'';
162 #if !defined(DOXYGEN_IGNORE)
165 struct quote_only_type1
168 quote_only_type1(std::ostream* o) :
175 inline quote_only_type1
176 operator <<(std::ostream& o, quote_only_type0 )
178 return quote_only_type1(&o);
182 struct quote_only_type2
184 SQLQueryParms* qparms;
185 quote_only_type2(SQLQueryParms* p) :
192 inline quote_only_type2
193 operator <<(SQLQueryParms& p, quote_only_type0 )
195 return quote_only_type2(&p);
206 MYSQLPP_EXPORT SQLQueryParms&
207 operator <<(quote_only_type2 p, SQLTypeAdapter& in);
210 MYSQLPP_EXPORT std::ostream&
211 operator <<(quote_only_type1 o,
const SQLTypeAdapter& in);
216 operator <<(quote_only_type1 o,
const Set<ST>& in)
218 return *o.ostr <<
'\'' << in <<
'\'';
243 #if !defined(DOXYGEN_IGNORE)
246 struct quote_double_only_type1
249 quote_double_only_type1(std::ostream* o) :
256 inline quote_double_only_type1
257 operator <<(std::ostream& o, quote_double_only_type0 )
259 return quote_double_only_type1(&o);
263 struct quote_double_only_type2
265 SQLQueryParms *qparms;
266 quote_double_only_type2(SQLQueryParms* p) :
273 inline quote_double_only_type2
274 operator <<(SQLQueryParms& p, quote_double_only_type0 )
276 return quote_double_only_type2(&p);
287 MYSQLPP_EXPORT SQLQueryParms&
288 operator <<(quote_double_only_type2 p, SQLTypeAdapter& in);
291 MYSQLPP_EXPORT std::ostream&
292 operator <<(quote_double_only_type1 o,
const SQLTypeAdapter& in);
297 operator <<(quote_double_only_type1 o,
const Set<ST>& in)
299 return *o.ostr <<
'"' << in <<
'"';
319 #if !defined(DOXYGEN_IGNORE)
325 escape_type1(std::ostream* o) :
333 operator <<(std::ostream& o, escape_type0 )
335 return escape_type1(&o);
341 SQLQueryParms *qparms;
342 escape_type2(SQLQueryParms* p) :
350 operator <<(SQLQueryParms& p, escape_type0 )
352 return escape_type2(&p);
365 MYSQLPP_EXPORT SQLQueryParms&
366 operator <<(escape_type2 p, SQLTypeAdapter& in);
372 MYSQLPP_EXPORT std::ostream&
373 operator <<(escape_type1 o,
const SQLTypeAdapter& in);
393 #if !defined(DOXYGEN_IGNORE)
396 struct do_nothing_type1
399 do_nothing_type1(std::ostream* o) :
406 inline do_nothing_type1
407 operator <<(std::ostream& o, do_nothing_type0 )
409 return do_nothing_type1(&o);
413 MYSQLPP_EXPORT std::ostream&
414 operator <<(do_nothing_type1 o,
const SQLTypeAdapter& in);
417 struct do_nothing_type2
419 SQLQueryParms *qparms;
420 do_nothing_type2(SQLQueryParms* p) :
427 inline do_nothing_type2
428 operator <<(SQLQueryParms& p, do_nothing_type0 )
430 return do_nothing_type2(&p);
437 MYSQLPP_EXPORT SQLQueryParms&
438 operator <<(do_nothing_type2 p, SQLTypeAdapter& in);
459 #if !defined(DOXYGEN_IGNORE)
464 SQLQueryParms* qparms;
465 ignore_type2(SQLQueryParms* p) :
473 operator <<(SQLQueryParms& p, ignore_type0 )
475 return ignore_type2(&p);
482 MYSQLPP_EXPORT SQLQueryParms&
483 operator <<(ignore_type2 p, SQLTypeAdapter& in);
This file includes top-level definitions for use both internal to the library, and outside it....
quote_double_only_type0
Definition: manip.h:238
@ quote_double_only
insert into a std::ostream to double-quote next item
Definition: manip.h:239
quote_only_type0
Definition: manip.h:157
@ quote_only
insert into a std::ostream to single-quote next item
Definition: manip.h:158
do_nothing_type0
Definition: manip.h:388
@ do_nothing
insert into a std::ostream to override manipulation of next item
Definition: manip.h:389
escape_type0
Definition: manip.h:316
quote_type0
Definition: manip.h:71
@ quote
insert into a Query stream to single-quote and escape next item
Definition: manip.h:72
ignore_type0
Definition: manip.h:454
@ ignore
insert into a std::ostream as a dummy manipulator
Definition: manip.h:455
Declares templates for generating custom containers used elsewhere in the library.
Declares the SQLTypeAdapter class.