1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MySQL++ Reference Manual</title>
<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1">
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="refman.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<div class="nav">
<b>mysqlpp</b>::<a class="el" href="structmysqlpp_1_1value__list__ba.html">value_list_ba</a></div>
<h1>mysqlpp::value_list_ba< Seq, Manip > Struct Template Reference</h1><!-- doxytag: class="mysqlpp::value_list_ba" -->Holds a list of items, typically used to construct a SQL "value list".
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="vallist_8h-source.html">vallist.h</a>></code>
<p>
Collaboration diagram for mysqlpp::value_list_ba< Seq, Manip >:<p><center><img src="structmysqlpp_1_1value__list__ba__coll__graph.png" border="0" usemap="#mysqlpp_1_1value__list__ba_3_01Seq_00_01Manip_01_4__coll__map" alt="Collaboration graph"></center>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="structmysqlpp_1_1value__list__ba-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structmysqlpp_1_1value__list__ba.html#5d589f50b26af0a2ff39c3c3897ebc90">value_list_ba</a> (const Seq &s, const char *d, Manip m)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create object. <a href="#5d589f50b26af0a2ff39c3c3897ebc90"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bab3903454b75548f120269967696c26"></a><!-- doxytag: member="mysqlpp::value_list_ba::list" ref="bab3903454b75548f120269967696c26" args="" -->
const Seq * </td><td class="memItemRight" valign="bottom"><a class="el" href="structmysqlpp_1_1value__list__ba.html#bab3903454b75548f120269967696c26">list</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">set of objects in the value list <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6b0f93524912bc3a861b5764883287b7"></a><!-- doxytag: member="mysqlpp::value_list_ba::delim" ref="6b0f93524912bc3a861b5764883287b7" args="" -->
const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structmysqlpp_1_1value__list__ba.html#6b0f93524912bc3a861b5764883287b7">delim</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">delimiter to use between each value in the list when inserting it into a C++ stream <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88e7f44bdf891147b949faa780a7948b"></a><!-- doxytag: member="mysqlpp::value_list_ba::manip" ref="88e7f44bdf891147b949faa780a7948b" args="" -->
Manip </td><td class="memItemRight" valign="bottom"><a class="el" href="structmysqlpp_1_1value__list__ba.html#88e7f44bdf891147b949faa780a7948b">manip</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">manipulator to use when inserting the list into a C++ stream <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<class Seq, class Manip><br>
struct mysqlpp::value_list_ba< Seq, Manip ></h3>
Holds a list of items, typically used to construct a SQL "value list".
<p>
The SQL INSERT statement has a VALUES clause; this class can be used to construct the list of items for that clause.<p>
Imagine an object of this type contains the list (a, b, c), and that the object's delimiter symbol is set to ", ". When you insert that object into a C++ stream, you would get "a, b, c".<p>
This class is never instantiated by hand. The value_list() functions build instances of this structure template to do their work. MySQL++'s SSQLS mechanism calls those functions when building SQL queries; you can call them yourself to do similar work. The "Harnessing SSQLS Internals" section of the user manual has some examples of this.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="structmysqlpp_1_1value__list__b.html">value_list_b</a> </dd></dl>
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="5d589f50b26af0a2ff39c3c3897ebc90"></a><!-- doxytag: member="mysqlpp::value_list_ba::value_list_ba" ref="5d589f50b26af0a2ff39c3c3897ebc90" args="(const Seq &s, const char *d, Manip m)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<class Seq, class Manip> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structmysqlpp_1_1value__list__ba.html">mysqlpp::value_list_ba</a>< Seq, Manip >::<a class="el" href="structmysqlpp_1_1value__list__ba.html">value_list_ba</a> </td>
<td>(</td>
<td class="paramtype">const Seq & </td>
<td class="paramname"> <em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>d</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Manip </td>
<td class="paramname"> <em>m</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create object.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>set of objects in the value list </td></tr>
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td>what delimiter to use between each value in the list when inserting the list into a C++ stream </td></tr>
<tr><td valign="top"></td><td valign="top"><em>m</em> </td><td>manipulator to use when inserting the list into a C++ stream </td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="vallist_8h-source.html">vallist.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Wed Feb 4 14:43:37 2009 for MySQL++ by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>
|