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
|
<!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="classmysqlpp_1_1SimpleResult.html">SimpleResult</a></div>
<h1>mysqlpp::SimpleResult Class Reference</h1><!-- doxytag: class="mysqlpp::SimpleResult" -->Holds information about the result of queries that don't return rows.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="result_8h-source.html">result.h</a>></code>
<p>
Collaboration diagram for mysqlpp::SimpleResult:<p><center><img src="classmysqlpp_1_1SimpleResult__coll__graph.png" border="0" usemap="#mysqlpp_1_1SimpleResult__coll__map" alt="Collaboration graph"></center>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classmysqlpp_1_1SimpleResult-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"><a class="anchor" name="f42179309a2de75590514c6014f3cf16"></a><!-- doxytag: member="mysqlpp::SimpleResult::SimpleResult" ref="f42179309a2de75590514c6014f3cf16" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1SimpleResult.html#f42179309a2de75590514c6014f3cf16">SimpleResult</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default ctor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5247a26c102ec13cc7c89e3c1e3d9051"></a><!-- doxytag: member="mysqlpp::SimpleResult::SimpleResult" ref="5247a26c102ec13cc7c89e3c1e3d9051" args="(bool copacetic, ulonglong insert_id, ulonglong rows, const std::string &info)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1SimpleResult.html#5247a26c102ec13cc7c89e3c1e3d9051">SimpleResult</a> (bool copacetic, ulonglong insert_id, ulonglong rows, const std::string &info)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize object. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1SimpleResult.html#4b416429cdb316058b15531d0ee6a703">operator private_bool_type</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Test whether the query that created this result succeeded. <a href="#4b416429cdb316058b15531d0ee6a703"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c7493c4b03818e8a88b69abc987286b6"></a><!-- doxytag: member="mysqlpp::SimpleResult::insert_id" ref="c7493c4b03818e8a88b69abc987286b6" args="() const " -->
ulonglong </td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1SimpleResult.html#c7493c4b03818e8a88b69abc987286b6">insert_id</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last value used for an AUTO_INCREMENT field. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c33fe6fbd93a11f22da4aafe438d44d3"></a><!-- doxytag: member="mysqlpp::SimpleResult::rows" ref="c33fe6fbd93a11f22da4aafe438d44d3" args="() const " -->
ulonglong </td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1SimpleResult.html#c33fe6fbd93a11f22da4aafe438d44d3">rows</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of rows affected by the query. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="54d020395c891176edc5698fa108c9f2"></a><!-- doxytag: member="mysqlpp::SimpleResult::info" ref="54d020395c891176edc5698fa108c9f2" args="() const " -->
const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1SimpleResult.html#54d020395c891176edc5698fa108c9f2">info</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get any additional information about the query returned by the server. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Holds information about the result of queries that don't return rows.
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="4b416429cdb316058b15531d0ee6a703"></a><!-- doxytag: member="mysqlpp::SimpleResult::operator private_bool_type" ref="4b416429cdb316058b15531d0ee6a703" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">mysqlpp::SimpleResult::operator private_bool_type </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Test whether the query that created this result succeeded.
<p>
If you test this object in bool context and it's false, it's a signal that the query this was created from failed in some way. Call <a class="el" href="classmysqlpp_1_1Query.html#24ddaff8ae037c56c1a5aceda34e89c8">Query::error()</a> or <a class="el" href="classmysqlpp_1_1Query.html#3acf442e091bdfb5344cbe9990f05f3b">Query::errnum()</a> to find out what exactly happened.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="result_8h-source.html">result.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 16:26:46 2008 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>
|