A C++ DAL / ORM code generation framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1170 lines
82 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <title>WORM: WSql::WSqlDatabase Class Reference</title>
  6. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  7. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  8. <script type="text/javascript" src="search/search.js"></script>
  9. <link href="doxygen.css" rel="stylesheet" type="text/css"/>
  10. </head>
  11. <body onload='searchBox.OnSelectItem(0);'>
  12. <!-- Generated by Doxygen 1.7.3 -->
  13. <script type="text/javascript"><!--
  14. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  15. --></script>
  16. <script type="text/javascript">
  17. function hasClass(ele,cls) {
  18. return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
  19. }
  20. function addClass(ele,cls) {
  21. if (!this.hasClass(ele,cls)) ele.className += " "+cls;
  22. }
  23. function removeClass(ele,cls) {
  24. if (hasClass(ele,cls)) {
  25. var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
  26. ele.className=ele.className.replace(reg,' ');
  27. }
  28. }
  29. function toggleVisibility(linkObj) {
  30. var base = linkObj.getAttribute('id');
  31. var summary = document.getElementById(base + '-summary');
  32. var content = document.getElementById(base + '-content');
  33. var trigger = document.getElementById(base + '-trigger');
  34. if ( hasClass(linkObj,'closed') ) {
  35. summary.style.display = 'none';
  36. content.style.display = 'block';
  37. trigger.src = 'open.png';
  38. removeClass(linkObj,'closed');
  39. addClass(linkObj,'opened');
  40. } else if ( hasClass(linkObj,'opened') ) {
  41. summary.style.display = 'block';
  42. content.style.display = 'none';
  43. trigger.src = 'closed.png';
  44. removeClass(linkObj,'opened');
  45. addClass(linkObj,'closed');
  46. }
  47. return false;
  48. }
  49. </script>
  50. <div id="top">
  51. <div id="titlearea">
  52. <table cellspacing="0" cellpadding="0">
  53. <tbody>
  54. <tr style="height: 56px;">
  55. <td id="projectlogo"><img alt="Logo" src="worm_sm.png"></td>
  56. <td style="padding-left: 0.5em;">
  57. <div id="projectname">WORM&#160;<span id="projectnumber">0.2</span></div>
  58. <div id="projectbrief">A C++ DAL/ORM code generation framework</div>
  59. </td>
  60. </tr>
  61. </tbody>
  62. </table>
  63. </div>
  64. <div id="navrow1" class="tabs">
  65. <ul class="tablist">
  66. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  67. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  68. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  69. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  70. <li><a href="files.html"><span>Files</span></a></li>
  71. <li id="searchli">
  72. <div id="MSearchBox" class="MSearchBoxInactive">
  73. <span class="left">
  74. <img id="MSearchSelect" src="search/mag_sel.png"
  75. onmouseover="return searchBox.OnSearchSelectShow()"
  76. onmouseout="return searchBox.OnSearchSelectHide()"
  77. alt=""/>
  78. <input type="text" id="MSearchField" value="Search" accesskey="S"
  79. onfocus="searchBox.OnSearchFieldFocus(true)"
  80. onblur="searchBox.OnSearchFieldFocus(false)"
  81. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  82. </span><span class="right">
  83. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  84. </span>
  85. </div>
  86. </li>
  87. </ul>
  88. </div>
  89. <div id="navrow2" class="tabs2">
  90. <ul class="tablist">
  91. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  92. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  93. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  94. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  95. </ul>
  96. </div>
  97. <div id="nav-path" class="navpath">
  98. <ul>
  99. <li class="navelem"><a class="el" href="namespace_w_sql.html">WSql</a> </li>
  100. <li class="navelem"><a class="el" href="class_w_sql_1_1_w_sql_database.html">WSqlDatabase</a> </li>
  101. </ul>
  102. </div>
  103. </div>
  104. <div class="header">
  105. <div class="summary">
  106. <a href="#pub-methods">Public Member Functions</a> </div>
  107. <div class="headertitle">
  108. <h1>WSql::WSqlDatabase Class Reference</h1> </div>
  109. </div>
  110. <div class="contents">
  111. <!-- doxytag: class="WSql::WSqlDatabase" -->
  112. <p>The <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> class represents a single database.
  113. <a href="#_details">More...</a></p>
  114. <p><code>#include &lt;<a class="el" href="wsqldatabase_8h_source.html">wsqldatabase.h</a>&gt;</code></p>
  115. <p><a href="class_w_sql_1_1_w_sql_database-members.html">List of all members.</a></p>
  116. <table class="memberdecls">
  117. <tr><td colspan="2"><h2><a name="pub-methods"></a>
  118. Public Member Functions</h2></td></tr>
  119. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a6ef4f3c3d9c28a9f6aa171261c79b66e">WSqlDatabase</a> ()</td></tr>
  120. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an empty, invalid <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> object. <a href="#a6ef4f3c3d9c28a9f6aa171261c79b66e"></a><br/></td></tr>
  121. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a093d3810c76b1be2d155c3fd03c0a549">WSqlDatabase</a> (const <a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a> &amp;type)</td></tr>
  122. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> object with a driver. <a href="#a093d3810c76b1be2d155c3fd03c0a549"></a><br/></td></tr>
  123. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#af69197a0eba8ef5f623971ab69c04b14">WSqlDatabase</a> (const <a class="el" href="class_w_sql_1_1_w_sql_database.html">WSqlDatabase</a> &amp;other)</td></tr>
  124. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>other</em>. <a href="#af69197a0eba8ef5f623971ab69c04b14"></a><br/></td></tr>
  125. <tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7adeec6b1bf4b1f55fd63cc4a8fe5316">~WSqlDatabase</a> ()</td></tr>
  126. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys the object and frees any allocated resources. <a href="#a7adeec6b1bf4b1f55fd63cc4a8fe5316"></a><br/></td></tr>
  127. <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_w_sql_1_1_w_sql_database.html">WSqlDatabase</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#aff088c6a45f151d872386a930a1ff7a3">operator=</a> (const <a class="el" href="class_w_sql_1_1_w_sql_database.html">WSqlDatabase</a> &amp;other)</td></tr>
  128. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies the values of <em>other</em> to this object. <a href="#aff088c6a45f151d872386a930a1ff7a3"></a><br/></td></tr>
  129. <tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba">open</a> ()</td></tr>
  130. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Open a connection. <a href="#ac40fb73f4b8c5fd26f7cfb959679f1ba"></a><br/></td></tr>
  131. <tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a8108c44524ad9722c84548f3b7b73d6f">open</a> (const std::string &amp;username, const std::string &amp;password)</td></tr>
  132. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Open a connection using <em>username</em> and <em>password</em>. <a href="#a8108c44524ad9722c84548f3b7b73d6f"></a><br/></td></tr>
  133. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close</a> ()</td></tr>
  134. <tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7c8b8c430fcfaa7d9ef5145c74f7dd48">isOpen</a> () const </td></tr>
  135. <tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a1c943c000ea384846c7d4d77c3513afb">hasError</a> () const </td></tr>
  136. <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_w_sql_1_1_w_sql_error.html">WSqlError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#abc33cf10cd451155204056812e685db8">error</a> () const </td></tr>
  137. <tr><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#aa71bf380cd429a1da326a341e1f8195c">errors</a> ()</td></tr>
  138. <tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a4a4d53b3ff1c197b16495087496f8660">isValid</a> () const </td></tr>
  139. <tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a83d2116612628889d41c13a9bb67ce0c">databaseName</a> () const </td></tr>
  140. <tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a8523467f1ed4ba30b800d6cf6224a9b1">userName</a> () const </td></tr>
  141. <tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a330a670990fc65f07e48366f05093200">password</a> () const </td></tr>
  142. <tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#aaded889a5674813f10c4eff81c90d65d">hostName</a> () const </td></tr>
  143. <tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a9d22fff18962918f7301df4c85548ec6">port</a> () const </td></tr>
  144. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the connection's port number. <a href="#a9d22fff18962918f7301df4c85548ec6"></a><br/></td></tr>
  145. <tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a09f2c6b29cf7eac1b65ee9615aaf9e1c">connectionOptions</a> () const </td></tr>
  146. <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#ada6addb3c7875e03a34871f2baf3595f">driverType</a> ()</td></tr>
  147. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a9511cd5c63a4375e815ad9dafb5ae7e4">setDatabaseName</a> (const std::string &amp;name)</td></tr>
  148. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the the database name. <a href="#a9511cd5c63a4375e815ad9dafb5ae7e4"></a><br/></td></tr>
  149. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a764e33f918dced0411724a3f4781343a">setUserName</a> (const std::string &amp;name)</td></tr>
  150. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the the user name. <a href="#a764e33f918dced0411724a3f4781343a"></a><br/></td></tr>
  151. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a098810c8f81bd4a8f1ea61dc0a3f25ad">setPassword</a> (const std::string &amp;password)</td></tr>
  152. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the the password. <a href="#a098810c8f81bd4a8f1ea61dc0a3f25ad"></a><br/></td></tr>
  153. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#ac59ad9647f4c37e1fd11723d8f0d2933">setHostName</a> (const std::string &amp;host)</td></tr>
  154. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the connection's host name. <a href="#ac59ad9647f4c37e1fd11723d8f0d2933"></a><br/></td></tr>
  155. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7b4a7177c16a84bbfd7ae0ca5da0c72c">setPort</a> (int p)</td></tr>
  156. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the port number for the connection. <a href="#a7b4a7177c16a84bbfd7ae0ca5da0c72c"></a><br/></td></tr>
  157. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a41407aba46af14d6e5d513fbcaac9516">setConnectOptions</a> (const std::string &amp;options=std::string())</td></tr>
  158. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the connection options for this database server. <a href="#a41407aba46af14d6e5d513fbcaac9516"></a><br/></td></tr>
  159. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a30f7bdbae04478250a4b7cef66edfc16">setDriverType</a> (<a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a> t)</td></tr>
  160. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7770c27b068eb51aa856c0ae37d726de">addError</a> (const <a class="el" href="class_w_sql_1_1_w_sql_error.html">WSqlError</a> &amp;e)</td></tr>
  161. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#af7475caa3bfbf3115c1ddf612e6bc402">setDriver</a> (<a class="el" href="class_w_sql_1_1_w_sql_driver.html">WSqlDriver</a> *d)</td></tr>
  162. <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_w_sql_1_1_w_sql_driver.html">WSqlDriver</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a1fc5a8e3e677b74c98c0e9d0cd39b6dc">driver</a> () const </td></tr>
  163. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a pointer to the database driver - expert only. <a href="#a1fc5a8e3e677b74c98c0e9d0cd39b6dc"></a><br/></td></tr>
  164. <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_w_sql_1_1_w_sql_driver.html">WSqlDriver</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a64ec6d10ab64f9408a82e464eefdb275">handle</a> () const </td></tr>
  165. <tr><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::string &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a86df7db5900c3a2d1483375195c7b025">tableNames</a> (<a class="el" href="namespace_w_sql.html#a2860958b4a0664bf26cd4959a7aaace8">WSql::TableType</a> type=WSql::Tables)</td></tr>
  166. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a vector of the database's table names. <a href="#a86df7db5900c3a2d1483375195c7b025"></a><br/></td></tr>
  167. <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_w_sql_1_1_w_sql_table.html">WSqlTable</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a2f068c8103068f0b4cab897b824144b9">tableMetaData</a> (const std::string &amp;tableName) const </td></tr>
  168. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Fetch metadata for table <em>tableName</em>. <a href="#a2f068c8103068f0b4cab897b824144b9"></a><br/></td></tr>
  169. <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a9bd1765f14443afbb875981321d4c529">initMetaData</a> ()</td></tr>
  170. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the metadata for all tables in the database. <a href="#a9bd1765f14443afbb875981321d4c529"></a><br/></td></tr>
  171. <tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a9a368d8a1e0ab21a2ab4b5082acc6a1c">query</a> (const std::string &amp;sql)</td></tr>
  172. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the query in <em>sql</em> returning true on sucess. <a href="#a9a368d8a1e0ab21a2ab4b5082acc6a1c"></a><br/></td></tr>
  173. <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_w_sql_1_1_w_sql_result.html">WSqlResult</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7">result</a> (bool iscached=true)</td></tr>
  174. <tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the result set from the most recent query. <a href="#a7f485f7a20f577f5f398c7b5fec07ab7"></a><br/></td></tr>
  175. <tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_sql_1_1_w_sql_database.html#a1f865041c95b0962b614c219a918808e">initDriver</a> ()</td></tr>
  176. </table>
  177. <hr/><a name="_details"></a><h2>Detailed Description</h2>
  178. <div class="textblock"><p>The <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> class represents a single database. </p>
  179. <p>The <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> class provides an interface for accessing a specific database through a connection. An instance of <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> represents the information relevant to connecting to the database, including the name of the database, the host, the username, etc.</p>
  180. <p><a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> should be instantiated with a driver type (or another valid database object) - when constructed it will try to obtain the requested driver from <a class="el" href="class_w_sql_1_1_w_sql_driver_factory.html">WSqlDriverFactory</a>(todo - currently just creates one ..). If this fails <a class="el" href="class_w_sql_1_1_w_sql_database.html#a4a4d53b3ff1c197b16495087496f8660">isValid()</a> will return false.</p>
  181. <p>Drivers are derived from <a class="el" href="class_w_sql_1_1_w_sql_driver.html" title="The WSqlDriver class is an abstract base class for database drivers.">WSqlDriver</a>, see <a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a> for supported database drivers.</p>
  182. <p>Example: </p>
  183. <div class="fragment"><pre class="fragment"><a class="code" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSql::WSqlDatabase</a> db( <a class="code" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3caee837ff3fecf3701ba3c275c3bc38190">WSql::WMYSQL</a> );
  184. db.setDatabaseName( std::string( <span class="stringliteral">&quot;sakila&quot;</span> ) );
  185. db.setUserName( <span class="stringliteral">&quot;root&quot;</span> );
  186. <span class="keywordflow">if</span> ( !db.open() ) {
  187. std::cerr &lt;&lt; <span class="stringliteral">&quot;Failed to open: &quot;</span> &lt;&lt; db.error().text() &lt;&lt; std::endl;
  188. <span class="keywordflow">return</span> 1;
  189. }
  190. std::string sql = <span class="stringliteral">&quot;select * from &quot;</span> + sometable + <span class="stringliteral">&quot; limit 2;&quot;</span>;
  191. <span class="keywordflow">if</span>(!db.query(sql))
  192. std::cout &lt;&lt; <span class="stringliteral">&quot;Query Failed: &quot;</span> &lt;&lt; db.error().text() &lt;&lt; std::endl;
  193. }<span class="keywordflow">else</span>{
  194. <a class="code" href="class_w_sql_1_1_w_sql_result.html" title="The WSqlResult class provides a representation of the result set from a query.">WSql::WSqlResult</a> *result = db.getResult();
  195. std::cout &lt;&lt; <span class="stringliteral">&quot;Number of rows: &quot;</span> &lt;&lt; result-&gt;<a class="code" href="class_w_sql_1_1_w_sql_result.html#a2f34ccad684262a1860022a2d07cc024">size</a>() &lt;&lt; std::endl;
  196. <a class="code" href="class_w_sql_1_1_w_sql_record.html" title="The WSqlRecord class represents a database record.">WSql::WSqlRecord</a> record = result-&gt;<a class="code" href="class_w_sql_1_1_w_sql_result.html#a85cc6e2cb40f959c2ff2f725356ef5c6">fetchFirst</a>();
  197. <span class="keywordflow">while</span>(!record.<a class="code" href="class_w_sql_1_1_w_sql_record.html#a2953bb26d9c259a284353aba9cbd33da">empty</a>())
  198. {
  199. <span class="keywordtype">int</span> numcols = record.<a class="code" href="class_w_sql_1_1_w_sql_record.html#aa807dec1b294186d17a550498b5aaf7f">count</a>(); <span class="comment">// or record.size();</span>
  200. std::cout &lt;&lt; <span class="stringliteral">&quot;Number of columns: &quot;</span> &lt;&lt; record.<a class="code" href="class_w_sql_1_1_w_sql_record.html#ab8901f9dda027740e651084084d9e617">size</a>() &lt;&lt; std::endl;
  201. <a class="code" href="class_w_sql_1_1_w_sql_field.html" title="The WSqlField class represents a field in a record.">WSql::WSqlField</a> fld;
  202. <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0;i &lt; record.<a class="code" href="class_w_sql_1_1_w_sql_record.html#ab8901f9dda027740e651084084d9e617">size</a>();i++)
  203. {
  204. <span class="comment">//no danger - if there is nothing there we still get an empty field object </span>
  205. fld = record.<a class="code" href="class_w_sql_1_1_w_sql_record.html#a6b4afb8edabdf5643a56e293f87db609">field</a>(i);
  206. std::cout &lt;&lt; <span class="stringliteral">&quot;Field &quot;</span> &lt;&lt; fld.<a class="code" href="class_w_sql_1_1_w_sql_field.html#a953649f01aad00a111f5879295aa07b8" title="Returns the name of the field in the record.">name</a>()
  207. &lt;&lt; <span class="stringliteral">&quot;, Origin Column &quot;</span>&lt;&lt; fld.<a class="code" href="class_w_sql_1_1_w_sql_field.html#a9d7961be812bf9aedd031abbd0126a62" title="Returns the name of the column as defined in the database..">columnName</a>()
  208. &lt;&lt; <span class="stringliteral">&quot;Value: &quot;</span> &lt;&lt; fld.<a class="code" href="class_w_sql_1_1_w_sql_field.html#a3f48248a0281a2beb96cecde18185bd1">data</a>&lt;std::string&gt;() &lt;&lt; std::endl;
  209. }
  210. record = result-&gt;<a class="code" href="class_w_sql_1_1_w_sql_result.html#a0c775e8f12c31e876d30d77aeeeeb898">fetchNext</a>();
  211. }
  212. }
  213. </pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_result.html" title="The WSqlResult class provides a representation of the result set from a query.">WSqlResult</a> <a class="el" href="class_w_sql_1_1_w_sql_record.html" title="The WSqlRecord class represents a database record.">WSqlRecord</a> <a class="el" href="class_w_sql_1_1_w_sql_field.html" title="The WSqlField class represents a field in a record.">WSqlField</a> <a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a> <a class="el" href="class_w_sql_1_1_w_sql_driver.html" title="The WSqlDriver class is an abstract base class for database drivers.">WSqlDriver</a> </dd></dl>
  214. <p>Definition at line <a class="el" href="wsqldatabase_8h_source.html#l00034">34</a> of file <a class="el" href="wsqldatabase_8h_source.html">wsqldatabase.h</a>.</p>
  215. </div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
  216. <a class="anchor" id="a6ef4f3c3d9c28a9f6aa171261c79b66e"></a><!-- doxytag: member="WSql::WSqlDatabase::WSqlDatabase" ref="a6ef4f3c3d9c28a9f6aa171261c79b66e" args="()" -->
  217. <div class="memitem">
  218. <div class="memproto">
  219. <table class="memname">
  220. <tr>
  221. <td class="memname">WSql::WSqlDatabase::WSqlDatabase </td>
  222. <td>(</td>
  223. <td class="paramname"></td><td>)</td>
  224. <td></td>
  225. </tr>
  226. </table>
  227. </div>
  228. <div class="memdoc">
  229. <p>Creates an empty, invalid <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> object. </p>
  230. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00104">104</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  231. </div>
  232. </div>
  233. <a class="anchor" id="a093d3810c76b1be2d155c3fd03c0a549"></a><!-- doxytag: member="WSql::WSqlDatabase::WSqlDatabase" ref="a093d3810c76b1be2d155c3fd03c0a549" args="(const WSql::DriverType &amp;type)" -->
  234. <div class="memitem">
  235. <div class="memproto">
  236. <table class="memname">
  237. <tr>
  238. <td class="memname">WSql::WSqlDatabase::WSqlDatabase </td>
  239. <td>(</td>
  240. <td class="paramtype">const <a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a> &amp;&#160;</td>
  241. <td class="paramname"><em>type</em></td><td>)</td>
  242. <td></td>
  243. </tr>
  244. </table>
  245. </div>
  246. <div class="memdoc">
  247. <p>Creates a <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> object with a driver. </p>
  248. <p>This constructs a database object with a driver of <em>type</em> - the object will attempt to create a driver - if successful <a class="el" href="class_w_sql_1_1_w_sql_database.html#a4a4d53b3ff1c197b16495087496f8660">isValid()</a> will return true. </p>
  249. <dl><dt><b>Parameters:</b></dt><dd>
  250. <table class="params">
  251. <tr><td class="paramname"><a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a></td><td>type - the type of driver to use </td></tr>
  252. </table>
  253. </dd>
  254. </dl>
  255. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00093">93</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  256. </div>
  257. </div>
  258. <a class="anchor" id="af69197a0eba8ef5f623971ab69c04b14"></a><!-- doxytag: member="WSql::WSqlDatabase::WSqlDatabase" ref="af69197a0eba8ef5f623971ab69c04b14" args="(const WSqlDatabase &amp;other)" -->
  259. <div class="memitem">
  260. <div class="memproto">
  261. <table class="memname">
  262. <tr>
  263. <td class="memname">WSql::WSqlDatabase::WSqlDatabase </td>
  264. <td>(</td>
  265. <td class="paramtype">const <a class="el" href="class_w_sql_1_1_w_sql_database.html">WSqlDatabase</a> &amp;&#160;</td>
  266. <td class="paramname"><em>other</em></td><td>)</td>
  267. <td></td>
  268. </tr>
  269. </table>
  270. </div>
  271. <div class="memdoc">
  272. <p>Creates a copy of <em>other</em>. </p>
  273. <p>This constructs a new database object initialized with the values of <em>other</em> WARNING: This also creates a new driver! If <em>other</em> is destroyed <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a> is invalid until the next <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9a368d8a1e0ab21a2ab4b5082acc6a1c" title="Executes the query in sql returning true on sucess.">query()</a> is called!</p>
  274. <dl><dt><b>Parameters:</b></dt><dd>
  275. <table class="params">
  276. <tr><td class="paramname"><a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a></td><td>other - database to copy </td></tr>
  277. </table>
  278. </dd>
  279. </dl>
  280. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00118">118</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  281. </div>
  282. </div>
  283. <a class="anchor" id="a7adeec6b1bf4b1f55fd63cc4a8fe5316"></a><!-- doxytag: member="WSql::WSqlDatabase::~WSqlDatabase" ref="a7adeec6b1bf4b1f55fd63cc4a8fe5316" args="()" -->
  284. <div class="memitem">
  285. <div class="memproto">
  286. <table class="memname">
  287. <tr>
  288. <td class="memname">WSql::WSqlDatabase::~WSqlDatabase </td>
  289. <td>(</td>
  290. <td class="paramname"></td><td>)</td>
  291. <td></td>
  292. </tr>
  293. </table>
  294. </div>
  295. <div class="memdoc">
  296. <p>Destroys the object and frees any allocated resources. </p>
  297. <p>Note that the driver is also destroyed at this time - any WSqlResults obtained from <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a> will be invalid after this. </p>
  298. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> </dd></dl>
  299. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00137">137</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  300. </div>
  301. </div>
  302. <hr/><h2>Member Function Documentation</h2>
  303. <a class="anchor" id="a7770c27b068eb51aa856c0ae37d726de"></a><!-- doxytag: member="WSql::WSqlDatabase::addError" ref="a7770c27b068eb51aa856c0ae37d726de" args="(const WSqlError &amp;e)" -->
  304. <div class="memitem">
  305. <div class="memproto">
  306. <table class="memname">
  307. <tr>
  308. <td class="memname">void WSql::WSqlDatabase::addError </td>
  309. <td>(</td>
  310. <td class="paramtype">const <a class="el" href="class_w_sql_1_1_w_sql_error.html">WSqlError</a> &amp;&#160;</td>
  311. <td class="paramname"><em>e</em></td><td>)</td>
  312. <td><code> [inline]</code></td>
  313. </tr>
  314. </table>
  315. </div>
  316. <div class="memdoc">
  317. <p>Definition at line <a class="el" href="wsqldatabase_8h_source.html#l00074">74</a> of file <a class="el" href="wsqldatabase_8h_source.html">wsqldatabase.h</a>.</p>
  318. </div>
  319. </div>
  320. <a class="anchor" id="a7d1ff5ea5063fd2a0642584972f9dada"></a><!-- doxytag: member="WSql::WSqlDatabase::close" ref="a7d1ff5ea5063fd2a0642584972f9dada" args="()" -->
  321. <div class="memitem">
  322. <div class="memproto">
  323. <table class="memname">
  324. <tr>
  325. <td class="memname">void WSql::WSqlDatabase::close </td>
  326. <td>(</td>
  327. <td class="paramname"></td><td>)</td>
  328. <td></td>
  329. </tr>
  330. </table>
  331. </div>
  332. <div class="memdoc">
  333. <p>Closes the database connection. </p>
  334. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00256">256</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  335. </div>
  336. </div>
  337. <a class="anchor" id="a09f2c6b29cf7eac1b65ee9615aaf9e1c"></a><!-- doxytag: member="WSql::WSqlDatabase::connectionOptions" ref="a09f2c6b29cf7eac1b65ee9615aaf9e1c" args="() const " -->
  338. <div class="memitem">
  339. <div class="memproto">
  340. <table class="memname">
  341. <tr>
  342. <td class="memname">std::string WSql::WSqlDatabase::connectionOptions </td>
  343. <td>(</td>
  344. <td class="paramname"></td><td>)</td>
  345. <td> const</td>
  346. </tr>
  347. </table>
  348. </div>
  349. <div class="memdoc">
  350. <p>Returns the connection options string used for this connection. The string may be empty.</p>
  351. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a41407aba46af14d6e5d513fbcaac9516" title="Sets the connection options for this database server.">setConnectOptions()</a> </dd></dl>
  352. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00582">582</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  353. </div>
  354. </div>
  355. <a class="anchor" id="a83d2116612628889d41c13a9bb67ce0c"></a><!-- doxytag: member="WSql::WSqlDatabase::databaseName" ref="a83d2116612628889d41c13a9bb67ce0c" args="() const " -->
  356. <div class="memitem">
  357. <div class="memproto">
  358. <table class="memname">
  359. <tr>
  360. <td class="memname">std::string WSql::WSqlDatabase::databaseName </td>
  361. <td>(</td>
  362. <td class="paramname"></td><td>)</td>
  363. <td> const</td>
  364. </tr>
  365. </table>
  366. </div>
  367. <div class="memdoc">
  368. <p>Returns the connection's database name, which may be empty. </p>
  369. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a9511cd5c63a4375e815ad9dafb5ae7e4" title="Set the the database name.">setDatabaseName()</a> </dd></dl>
  370. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00368">368</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  371. </div>
  372. </div>
  373. <a class="anchor" id="a1fc5a8e3e677b74c98c0e9d0cd39b6dc"></a><!-- doxytag: member="WSql::WSqlDatabase::driver" ref="a1fc5a8e3e677b74c98c0e9d0cd39b6dc" args="() const " -->
  374. <div class="memitem">
  375. <div class="memproto">
  376. <table class="memname">
  377. <tr>
  378. <td class="memname"><a class="el" href="class_w_sql_1_1_w_sql_driver.html">WSqlDriver</a> * WSql::WSqlDatabase::driver </td>
  379. <td>(</td>
  380. <td class="paramname"></td><td>)</td>
  381. <td> const</td>
  382. </tr>
  383. </table>
  384. </div>
  385. <div class="memdoc">
  386. <p>Return a pointer to the database driver - expert only. </p>
  387. <p>This returns a pointer to the database driver used to access the database connection. <em>Caution!</em> This is not meant to be used directly - use <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a>. <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a>, <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9a368d8a1e0ab21a2ab4b5082acc6a1c" title="Executes the query in sql returning true on sucess.">query()</a> and <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a> for interaction with the driver instead.</p>
  388. <p>!This may be removed in future.</p>
  389. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9a368d8a1e0ab21a2ab4b5082acc6a1c" title="Executes the query in sql returning true on sucess.">query()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a> </dd></dl>
  390. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00420">420</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  391. </div>
  392. </div>
  393. <a class="anchor" id="ada6addb3c7875e03a34871f2baf3595f"></a><!-- doxytag: member="WSql::WSqlDatabase::driverType" ref="ada6addb3c7875e03a34871f2baf3595f" args="()" -->
  394. <div class="memitem">
  395. <div class="memproto">
  396. <table class="memname">
  397. <tr>
  398. <td class="memname"><a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a> WSql::WSqlDatabase::driverType </td>
  399. <td>(</td>
  400. <td class="paramname"></td><td>)</td>
  401. <td><code> [inline]</code></td>
  402. </tr>
  403. </table>
  404. </div>
  405. <div class="memdoc">
  406. <p>Definition at line <a class="el" href="wsqldatabase_8h_source.html#l00064">64</a> of file <a class="el" href="wsqldatabase_8h_source.html">wsqldatabase.h</a>.</p>
  407. </div>
  408. </div>
  409. <a class="anchor" id="abc33cf10cd451155204056812e685db8"></a><!-- doxytag: member="WSql::WSqlDatabase::error" ref="abc33cf10cd451155204056812e685db8" args="() const " -->
  410. <div class="memitem">
  411. <div class="memproto">
  412. <table class="memname">
  413. <tr>
  414. <td class="memname"><a class="el" href="class_w_sql_1_1_w_sql_error.html">WSqlError</a> WSql::WSqlDatabase::error </td>
  415. <td>(</td>
  416. <td class="paramname"></td><td>)</td>
  417. <td> const</td>
  418. </tr>
  419. </table>
  420. </div>
  421. <div class="memdoc">
  422. <p>Returns the last error that occurred on the database or in the driver. </p>
  423. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_error.html" title="The WSqlError class provides SQL database and driver error information.">WSqlError</a> </dd></dl>
  424. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00430">430</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  425. </div>
  426. </div>
  427. <a class="anchor" id="aa71bf380cd429a1da326a341e1f8195c"></a><!-- doxytag: member="WSql::WSqlDatabase::errors" ref="aa71bf380cd429a1da326a341e1f8195c" args="()" -->
  428. <div class="memitem">
  429. <div class="memproto">
  430. <table class="memname">
  431. <tr>
  432. <td class="memname">std::vector&lt;std::string&gt; WSql::WSqlDatabase::errors </td>
  433. <td>(</td>
  434. <td class="paramname"></td><td>)</td>
  435. <td></td>
  436. </tr>
  437. </table>
  438. </div>
  439. <div class="memdoc">
  440. </div>
  441. </div>
  442. <a class="anchor" id="a64ec6d10ab64f9408a82e464eefdb275"></a><!-- doxytag: member="WSql::WSqlDatabase::handle" ref="a64ec6d10ab64f9408a82e464eefdb275" args="() const " -->
  443. <div class="memitem">
  444. <div class="memproto">
  445. <table class="memname">
  446. <tr>
  447. <td class="memname"><a class="el" href="class_w_sql_1_1_w_sql_driver.html">WSqlDriver</a>* WSql::WSqlDatabase::handle </td>
  448. <td>(</td>
  449. <td class="paramname"></td><td>)</td>
  450. <td> const<code> [inline]</code></td>
  451. </tr>
  452. </table>
  453. </div>
  454. <div class="memdoc">
  455. <p>Definition at line <a class="el" href="wsqldatabase_8h_source.html#l00080">80</a> of file <a class="el" href="wsqldatabase_8h_source.html">wsqldatabase.h</a>.</p>
  456. </div>
  457. </div>
  458. <a class="anchor" id="a1c943c000ea384846c7d4d77c3513afb"></a><!-- doxytag: member="WSql::WSqlDatabase::hasError" ref="a1c943c000ea384846c7d4d77c3513afb" args="() const " -->
  459. <div class="memitem">
  460. <div class="memproto">
  461. <table class="memname">
  462. <tr>
  463. <td class="memname">bool WSql::WSqlDatabase::hasError </td>
  464. <td>(</td>
  465. <td class="paramname"></td><td>)</td>
  466. <td> const</td>
  467. </tr>
  468. </table>
  469. </div>
  470. <div class="memdoc">
  471. <p>Returns true if there is an error available. </p>
  472. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#abc33cf10cd451155204056812e685db8">error()</a> </dd></dl>
  473. <p><dl class="todo"><dt><b><a class="el" href="todo.html#_todo000024">Todo:</a></b></dt><dd>resolve this - there is also the local errorStack .. </dd></dl>
  474. </p>
  475. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00275">275</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  476. </div>
  477. </div>
  478. <a class="anchor" id="aaded889a5674813f10c4eff81c90d65d"></a><!-- doxytag: member="WSql::WSqlDatabase::hostName" ref="aaded889a5674813f10c4eff81c90d65d" args="() const " -->
  479. <div class="memitem">
  480. <div class="memproto">
  481. <table class="memname">
  482. <tr>
  483. <td class="memname">std::string WSql::WSqlDatabase::hostName </td>
  484. <td>(</td>
  485. <td class="paramname"></td><td>)</td>
  486. <td> const</td>
  487. </tr>
  488. </table>
  489. </div>
  490. <div class="memdoc">
  491. <p>Returns the connection's host name; it may be empty.</p>
  492. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#ac59ad9647f4c37e1fd11723d8f0d2933" title="Sets the connection&#39;s host name.">setHostName()</a> </dd></dl>
  493. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00397">397</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  494. </div>
  495. </div>
  496. <a class="anchor" id="a1f865041c95b0962b614c219a918808e"></a><!-- doxytag: member="WSql::WSqlDatabase::initDriver" ref="a1f865041c95b0962b614c219a918808e" args="()" -->
  497. <div class="memitem">
  498. <div class="memproto">
  499. <table class="memname">
  500. <tr>
  501. <td class="memname">bool WSql::WSqlDatabase::initDriver </td>
  502. <td>(</td>
  503. <td class="paramname"></td><td>)</td>
  504. <td></td>
  505. </tr>
  506. </table>
  507. </div>
  508. <div class="memdoc">
  509. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00185">185</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  510. </div>
  511. </div>
  512. <a class="anchor" id="a9bd1765f14443afbb875981321d4c529"></a><!-- doxytag: member="WSql::WSqlDatabase::initMetaData" ref="a9bd1765f14443afbb875981321d4c529" args="()" -->
  513. <div class="memitem">
  514. <div class="memproto">
  515. <table class="memname">
  516. <tr>
  517. <td class="memname">void WSql::WSqlDatabase::initMetaData </td>
  518. <td>(</td>
  519. <td class="paramname"></td><td>)</td>
  520. <td></td>
  521. </tr>
  522. </table>
  523. </div>
  524. <div class="memdoc">
  525. <p>Initializes the metadata for all tables in the database. </p>
  526. <p>This method can be used to initialize all the metadata for the the database at once - this is convenient if one wishes to then use table metadata while also conducting queries. If this is called before <a class="el" href="class_w_sql_1_1_w_sql_database.html#a2f068c8103068f0b4cab897b824144b9" title="Fetch metadata for table tableName.">tableMetaData()</a> the metadata for all tables is cached in the driver and will be returned for a given table from the cache.</p>
  527. <dl class="note"><dt><b>Note:</b></dt><dd>This also initializes the referenced tables WSqlReferencedKeys - used by the ORM generation. If you need access to this kind of metadata you must use this method to initialize the referenced key lists - if you initialize table metadata individually the reference keys will be omitted.</dd></dl>
  528. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a2f068c8103068f0b4cab897b824144b9" title="Fetch metadata for table tableName.">tableMetaData()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a86df7db5900c3a2d1483375195c7b025" title="Returns a vector of the database&#39;s table names.">tableNames()</a> </dd></dl>
  529. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00532">532</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  530. </div>
  531. </div>
  532. <a class="anchor" id="a7c8b8c430fcfaa7d9ef5145c74f7dd48"></a><!-- doxytag: member="WSql::WSqlDatabase::isOpen" ref="a7c8b8c430fcfaa7d9ef5145c74f7dd48" args="() const " -->
  533. <div class="memitem">
  534. <div class="memproto">
  535. <table class="memname">
  536. <tr>
  537. <td class="memname">bool WSql::WSqlDatabase::isOpen </td>
  538. <td>(</td>
  539. <td class="paramname"></td><td>)</td>
  540. <td> const</td>
  541. </tr>
  542. </table>
  543. </div>
  544. <div class="memdoc">
  545. <p>Returns true if the database connection is currently open </p>
  546. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00265">265</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  547. </div>
  548. </div>
  549. <a class="anchor" id="a4a4d53b3ff1c197b16495087496f8660"></a><!-- doxytag: member="WSql::WSqlDatabase::isValid" ref="a4a4d53b3ff1c197b16495087496f8660" args="() const " -->
  550. <div class="memitem">
  551. <div class="memproto">
  552. <table class="memname">
  553. <tr>
  554. <td class="memname">bool WSql::WSqlDatabase::isValid </td>
  555. <td>(</td>
  556. <td class="paramname"></td><td>)</td>
  557. <td> const</td>
  558. </tr>
  559. </table>
  560. </div>
  561. <div class="memdoc">
  562. <p>Returns true if the <a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a> has a valid driver. </p>
  563. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00590">590</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  564. </div>
  565. </div>
  566. <a class="anchor" id="ac40fb73f4b8c5fd26f7cfb959679f1ba"></a><!-- doxytag: member="WSql::WSqlDatabase::open" ref="ac40fb73f4b8c5fd26f7cfb959679f1ba" args="()" -->
  567. <div class="memitem">
  568. <div class="memproto">
  569. <table class="memname">
  570. <tr>
  571. <td class="memname">bool WSql::WSqlDatabase::open </td>
  572. <td>(</td>
  573. <td class="paramname"></td><td>)</td>
  574. <td></td>
  575. </tr>
  576. </table>
  577. </div>
  578. <div class="memdoc">
  579. <p>Open a connection. </p>
  580. <p>Opens the database connection using the current connection values. Returns true on success; otherwise returns false. Error information can be retrieved using <a class="el" href="class_w_sql_1_1_w_sql_database.html#abc33cf10cd451155204056812e685db8">error()</a>.</p>
  581. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#abc33cf10cd451155204056812e685db8">error()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9511cd5c63a4375e815ad9dafb5ae7e4" title="Set the the database name.">setDatabaseName()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a764e33f918dced0411724a3f4781343a" title="Set the the user name.">setUserName()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a098810c8f81bd4a8f1ea61dc0a3f25ad" title="Set the the password.">setPassword()</a> </dd>
  582. <dd>
  583. <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac59ad9647f4c37e1fd11723d8f0d2933" title="Sets the connection&#39;s host name.">setHostName()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7b4a7177c16a84bbfd7ae0ca5da0c72c" title="Sets the port number for the connection.">setPort()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a41407aba46af14d6e5d513fbcaac9516" title="Sets the connection options for this database server.">setConnectOptions()</a> </dd></dl>
  584. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00230">230</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  585. </div>
  586. </div>
  587. <a class="anchor" id="a8108c44524ad9722c84548f3b7b73d6f"></a><!-- doxytag: member="WSql::WSqlDatabase::open" ref="a8108c44524ad9722c84548f3b7b73d6f" args="(const std::string &amp;username, const std::string &amp;password)" -->
  588. <div class="memitem">
  589. <div class="memproto">
  590. <table class="memname">
  591. <tr>
  592. <td class="memname">bool WSql::WSqlDatabase::open </td>
  593. <td>(</td>
  594. <td class="paramtype">const std::string &amp;&#160;</td>
  595. <td class="paramname"><em>username</em>, </td>
  596. </tr>
  597. <tr>
  598. <td class="paramkey"></td>
  599. <td></td>
  600. <td class="paramtype">const std::string &amp;&#160;</td>
  601. <td class="paramname"><em>password</em>&#160;</td>
  602. </tr>
  603. <tr>
  604. <td></td>
  605. <td>)</td>
  606. <td></td><td></td>
  607. </tr>
  608. </table>
  609. </div>
  610. <div class="memdoc">
  611. <p>Open a connection using <em>username</em> and <em>password</em>. </p>
  612. <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Opens the database connection using the given <em>user</em> name and <em>password</em>. Returns true on success; otherwise returns false. Error information can be retrieved using the <a class="el" href="class_w_sql_1_1_w_sql_database.html#abc33cf10cd451155204056812e685db8">error()</a> function. </p>
  613. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#abc33cf10cd451155204056812e685db8">error()</a> </dd></dl>
  614. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00245">245</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  615. </div>
  616. </div>
  617. <a class="anchor" id="aff088c6a45f151d872386a930a1ff7a3"></a><!-- doxytag: member="WSql::WSqlDatabase::operator=" ref="aff088c6a45f151d872386a930a1ff7a3" args="(const WSqlDatabase &amp;other)" -->
  618. <div class="memitem">
  619. <div class="memproto">
  620. <table class="memname">
  621. <tr>
  622. <td class="memname"><a class="el" href="class_w_sql_1_1_w_sql_database.html">WSqlDatabase</a> &amp; WSql::WSqlDatabase::operator= </td>
  623. <td>(</td>
  624. <td class="paramtype">const <a class="el" href="class_w_sql_1_1_w_sql_database.html">WSqlDatabase</a> &amp;&#160;</td>
  625. <td class="paramname"><em>other</em></td><td>)</td>
  626. <td></td>
  627. </tr>
  628. </table>
  629. </div>
  630. <div class="memdoc">
  631. <p>Copies the values of <em>other</em> to this object. </p>
  632. <p>WARNING: This also creates a new driver! If <em>other</em> is destroyed <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a> is invalid until the next <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9a368d8a1e0ab21a2ab4b5082acc6a1c" title="Executes the query in sql returning true on sucess.">query()</a>!</p>
  633. <dl><dt><b>Parameters:</b></dt><dd>
  634. <table class="params">
  635. <tr><td class="paramname"><a class="el" href="class_w_sql_1_1_w_sql_database.html" title="The WSqlDatabase class represents a single database.">WSqlDatabase</a></td><td>other - database to copy </td></tr>
  636. </table>
  637. </dd>
  638. </dl>
  639. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00152">152</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  640. </div>
  641. </div>
  642. <a class="anchor" id="a330a670990fc65f07e48366f05093200"></a><!-- doxytag: member="WSql::WSqlDatabase::password" ref="a330a670990fc65f07e48366f05093200" args="() const " -->
  643. <div class="memitem">
  644. <div class="memproto">
  645. <table class="memname">
  646. <tr>
  647. <td class="memname">std::string WSql::WSqlDatabase::password </td>
  648. <td>(</td>
  649. <td class="paramname"></td><td>)</td>
  650. <td> const</td>
  651. </tr>
  652. </table>
  653. </div>
  654. <div class="memdoc">
  655. <p>Returns the connection's password. If the password was not set an empty string is returned. </p>
  656. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00387">387</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  657. </div>
  658. </div>
  659. <a class="anchor" id="a9d22fff18962918f7301df4c85548ec6"></a><!-- doxytag: member="WSql::WSqlDatabase::port" ref="a9d22fff18962918f7301df4c85548ec6" args="() const " -->
  660. <div class="memitem">
  661. <div class="memproto">
  662. <table class="memname">
  663. <tr>
  664. <td class="memname">int WSql::WSqlDatabase::port </td>
  665. <td>(</td>
  666. <td class="paramname"></td><td>)</td>
  667. <td> const<code> [inline]</code></td>
  668. </tr>
  669. </table>
  670. </div>
  671. <div class="memdoc">
  672. <p>Returns the connection's port number. </p>
  673. <p>The value is -1 if the port number has not been set. </p>
  674. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7b4a7177c16a84bbfd7ae0ca5da0c72c" title="Sets the port number for the connection.">setPort()</a> </dd></dl>
  675. <p>Definition at line <a class="el" href="wsqldatabase_8h_source.html#l00062">62</a> of file <a class="el" href="wsqldatabase_8h_source.html">wsqldatabase.h</a>.</p>
  676. </div>
  677. </div>
  678. <a class="anchor" id="a9a368d8a1e0ab21a2ab4b5082acc6a1c"></a><!-- doxytag: member="WSql::WSqlDatabase::query" ref="a9a368d8a1e0ab21a2ab4b5082acc6a1c" args="(const std::string &amp;sql)" -->
  679. <div class="memitem">
  680. <div class="memproto">
  681. <table class="memname">
  682. <tr>
  683. <td class="memname">bool WSql::WSqlDatabase::query </td>
  684. <td>(</td>
  685. <td class="paramtype">const std::string &amp;&#160;</td>
  686. <td class="paramname"><em>sql</em></td><td>)</td>
  687. <td></td>
  688. </tr>
  689. </table>
  690. </div>
  691. <div class="memdoc">
  692. <p>Executes the query in <em>sql</em> returning true on sucess. </p>
  693. <p>This method sends the query SQL in string <em>sql</em> to the database server, the results of which will be available by calling <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a>. Use this method when you expect a result set, for non-result execution use execute() </p>
  694. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a> execute() </dd></dl>
  695. <dl><dt><b>Return values:</b></dt><dd>
  696. <table class="retval">
  697. <tr><td class="paramname">bool</td><td>true on success. </td></tr>
  698. </table>
  699. </dd>
  700. </dl>
  701. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00602">602</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  702. </div>
  703. </div>
  704. <a class="anchor" id="a7f485f7a20f577f5f398c7b5fec07ab7"></a><!-- doxytag: member="WSql::WSqlDatabase::result" ref="a7f485f7a20f577f5f398c7b5fec07ab7" args="(bool iscached=true)" -->
  705. <div class="memitem">
  706. <div class="memproto">
  707. <table class="memname">
  708. <tr>
  709. <td class="memname"><a class="el" href="class_w_sql_1_1_w_sql_result.html">WSqlResult</a> * WSql::WSqlDatabase::result </td>
  710. <td>(</td>
  711. <td class="paramtype">bool&#160;</td>
  712. <td class="paramname"><em>iscached</em> = <code>true</code></td><td>)</td>
  713. <td></td>
  714. </tr>
  715. </table>
  716. </div>
  717. <div class="memdoc">
  718. <p>Returns a pointer to the result set from the most recent query. </p>
  719. <p>This method returns a pointer to a <a class="el" href="class_w_sql_1_1_w_sql_result.html" title="The WSqlResult class provides a representation of the result set from a query.">WSqlResult</a> object containing the most recent result set from a query - it may be empty if no results were returned. You must not delete this pointer yourself - it is owned by the driver.</p>
  720. <p>The parameter <em>iscached</em> may be set to true to indicate a non-cached result set that will be fetched row by row - the default is true and results are cached. Note that uncached queries may or may not be implemented in a particular driver - see the documentation for the specific driver to find out.</p>
  721. <dl class="note"><dt><b>Note:</b></dt><dd>Only use this <em>after</em> an execute() query! Do not use twice in a row as it will delete the previous result and return a newly created object. Example:</dd></dl>
  722. <div class="fragment"><pre class="fragment"> <a class="code" href="class_w_sql_1_1_w_sql_database.html#a6ef4f3c3d9c28a9f6aa171261c79b66e" title="Creates an empty, invalid WSqlDatabase object.">WSqlDatabase</a> db;
  723. <span class="keywordflow">if</span> (!db.open())
  724. dosomeerror();
  725. <span class="keywordflow">if</span> (!db.query(std::string(<span class="stringliteral">&quot;select foo from bar&quot;</span>)))
  726. dosomeerror();
  727. WSqlResult *result = db.getResult();
  728. <span class="comment">//WSqlResult *result2 = db.getResult(); &lt;- wrong </span>
  729. <span class="comment">//...iterate over results ..._then repeat:</span>
  730. <span class="keywordflow">if</span> (!db.query(std::string(<span class="stringliteral">&quot;select baz from bar&quot;</span>)))
  731. dosomeerror();
  732. WSqlResult *result = db.getResult();
  733. ..etc.
  734. </pre></div> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_result.html" title="The WSqlResult class provides a representation of the result set from a query.">WSqlResult</a> <a class="el" href="class_w_sql_1_1_w_sql_record.html" title="The WSqlRecord class represents a database record.">WSqlRecord</a> <a class="el" href="class_w_sql_1_1_w_mysql_driver.html" title="A driver for MySQL databases.">WMysqlDriver</a> <a class="el" href="class_w_sql_1_1_w_sqlite_driver.html">WSqliteDriver</a></dd></dl>
  735. <dl><dt><b>Parameters:</b></dt><dd>
  736. <table class="params">
  737. <tr><td class="paramname">bool</td><td>iscached - if true (the default) fetches entire result set at once. </td></tr>
  738. </table>
  739. </dd>
  740. </dl>
  741. <dl><dt><b>Return values:</b></dt><dd>
  742. <table class="retval">
  743. <tr><td class="paramname">WSqlResult*</td><td>- the result set </td></tr>
  744. </table>
  745. </dd>
  746. </dl>
  747. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00640">640</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  748. </div>
  749. </div>
  750. <a class="anchor" id="a41407aba46af14d6e5d513fbcaac9516"></a><!-- doxytag: member="WSql::WSqlDatabase::setConnectOptions" ref="a41407aba46af14d6e5d513fbcaac9516" args="(const std::string &amp;options=std::string())" -->
  751. <div class="memitem">
  752. <div class="memproto">
  753. <table class="memname">
  754. <tr>
  755. <td class="memname">void WSql::WSqlDatabase::setConnectOptions </td>
  756. <td>(</td>
  757. <td class="paramtype">const std::string &amp;&#160;</td>
  758. <td class="paramname"><em>options</em> = <code>std::string()</code></td><td>)</td>
  759. <td></td>
  760. </tr>
  761. </table>
  762. </div>
  763. <div class="memdoc">
  764. <p>Sets the connection options for this database server. </p>
  765. <p>Sets database-specific <em>options</em>. This must be done before the connection is opened or it has no effect (or you can <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> the connection, call this function and <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> the connection again).</p>
  766. <p>Note that the options are specific to a database server - drivers should handle this string appropriately.</p>
  767. <dl><dt><b>Parameters:</b></dt><dd>
  768. <table class="params">
  769. <tr><td class="paramname">std::string&amp;</td><td>options - connection options to pass to the driver. </td></tr>
  770. </table>
  771. </dd>
  772. </dl>
  773. <dl class="see"><dt><b>See also:</b></dt><dd>getConnectionOptions() </dd></dl>
  774. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00571">571</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  775. </div>
  776. </div>
  777. <a class="anchor" id="a9511cd5c63a4375e815ad9dafb5ae7e4"></a><!-- doxytag: member="WSql::WSqlDatabase::setDatabaseName" ref="a9511cd5c63a4375e815ad9dafb5ae7e4" args="(const std::string &amp;name)" -->
  778. <div class="memitem">
  779. <div class="memproto">
  780. <table class="memname">
  781. <tr>
  782. <td class="memname">void WSql::WSqlDatabase::setDatabaseName </td>
  783. <td>(</td>
  784. <td class="paramtype">const std::string &amp;&#160;</td>
  785. <td class="paramname"><em>name</em></td><td>)</td>
  786. <td></td>
  787. </tr>
  788. </table>
  789. </div>
  790. <div class="memdoc">
  791. <p>Set the the database name. </p>
  792. <p>Sets the connection's database name to <em>name</em>. To have effect, the database name must be set <em>before</em> opening the connection with <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> Alternately, you can <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> the connection, set the database name, and call <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> again There is no default value. </p>
  793. <dl><dt><b>Parameters:</b></dt><dd>
  794. <table class="params">
  795. <tr><td class="paramname">std::string</td><td>name - the name of the database </td></tr>
  796. </table>
  797. </dd>
  798. </dl>
  799. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a83d2116612628889d41c13a9bb67ce0c">databaseName()</a> </dd></dl>
  800. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00292">292</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  801. </div>
  802. </div>
  803. <a class="anchor" id="af7475caa3bfbf3115c1ddf612e6bc402"></a><!-- doxytag: member="WSql::WSqlDatabase::setDriver" ref="af7475caa3bfbf3115c1ddf612e6bc402" args="(WSqlDriver *d)" -->
  804. <div class="memitem">
  805. <div class="memproto">
  806. <table class="memname">
  807. <tr>
  808. <td class="memname">void WSql::WSqlDatabase::setDriver </td>
  809. <td>(</td>
  810. <td class="paramtype"><a class="el" href="class_w_sql_1_1_w_sql_driver.html">WSqlDriver</a> *&#160;</td>
  811. <td class="paramname"><em>d</em></td><td>)</td>
  812. <td><code> [inline]</code></td>
  813. </tr>
  814. </table>
  815. </div>
  816. <div class="memdoc">
  817. <p>Definition at line <a class="el" href="wsqldatabase_8h_source.html#l00076">76</a> of file <a class="el" href="wsqldatabase_8h_source.html">wsqldatabase.h</a>.</p>
  818. </div>
  819. </div>
  820. <a class="anchor" id="a30f7bdbae04478250a4b7cef66edfc16"></a><!-- doxytag: member="WSql::WSqlDatabase::setDriverType" ref="a30f7bdbae04478250a4b7cef66edfc16" args="(WSql::DriverType t)" -->
  821. <div class="memitem">
  822. <div class="memproto">
  823. <table class="memname">
  824. <tr>
  825. <td class="memname">void WSql::WSqlDatabase::setDriverType </td>
  826. <td>(</td>
  827. <td class="paramtype"><a class="el" href="namespace_w_sql.html#ad184e6e363bbd3ea2b768ac8a013bf3c">WSql::DriverType</a>&#160;</td>
  828. <td class="paramname"><em>t</em></td><td>)</td>
  829. <td></td>
  830. </tr>
  831. </table>
  832. </div>
  833. <div class="memdoc">
  834. </div>
  835. </div>
  836. <a class="anchor" id="ac59ad9647f4c37e1fd11723d8f0d2933"></a><!-- doxytag: member="WSql::WSqlDatabase::setHostName" ref="ac59ad9647f4c37e1fd11723d8f0d2933" args="(const std::string &amp;host)" -->
  837. <div class="memitem">
  838. <div class="memproto">
  839. <table class="memname">
  840. <tr>
  841. <td class="memname">void WSql::WSqlDatabase::setHostName </td>
  842. <td>(</td>
  843. <td class="paramtype">const std::string &amp;&#160;</td>
  844. <td class="paramname"><em>hostname</em></td><td>)</td>
  845. <td></td>
  846. </tr>
  847. </table>
  848. </div>
  849. <div class="memdoc">
  850. <p>Sets the connection's host name. </p>
  851. <p>This method sets the connection's host name to <em>hostname</em>. To have effect, the host name must be set <em>before</em> opening the connection with <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> Alternately, you can <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> the connection, set the host name, and call <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> again.</p>
  852. <p>There is no default value. </p>
  853. <dl><dt><b>Parameters:</b></dt><dd>
  854. <table class="params">
  855. <tr><td class="paramname">std::string</td><td>hostname - the hostname to use </td></tr>
  856. </table>
  857. </dd>
  858. </dl>
  859. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#aaded889a5674813f10c4eff81c90d65d">hostName()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> </dd></dl>
  860. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00342">342</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  861. </div>
  862. </div>
  863. <a class="anchor" id="a098810c8f81bd4a8f1ea61dc0a3f25ad"></a><!-- doxytag: member="WSql::WSqlDatabase::setPassword" ref="a098810c8f81bd4a8f1ea61dc0a3f25ad" args="(const std::string &amp;password)" -->
  864. <div class="memitem">
  865. <div class="memproto">
  866. <table class="memname">
  867. <tr>
  868. <td class="memname">void WSql::WSqlDatabase::setPassword </td>
  869. <td>(</td>
  870. <td class="paramtype">const std::string &amp;&#160;</td>
  871. <td class="paramname"><em>password</em></td><td>)</td>
  872. <td></td>
  873. </tr>
  874. </table>
  875. </div>
  876. <div class="memdoc">
  877. <p>Set the the password. </p>
  878. <p>Sets the connection's password to <em>password</em>. To have effect, the password must be set <em></em>{before} the connection is {<a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a>} {opened}. Alternatively, you can <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> the connection, set the password, and call <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> again.</p>
  879. <p>There is no default value. </p>
  880. <dl><dt><b>Parameters:</b></dt><dd>
  881. <table class="params">
  882. <tr><td class="paramname">std::string</td><td>password - the password to use </td></tr>
  883. </table>
  884. </dd>
  885. </dl>
  886. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a330a670990fc65f07e48366f05093200">password()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> </dd></dl>
  887. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00326">326</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  888. </div>
  889. </div>
  890. <a class="anchor" id="a7b4a7177c16a84bbfd7ae0ca5da0c72c"></a><!-- doxytag: member="WSql::WSqlDatabase::setPort" ref="a7b4a7177c16a84bbfd7ae0ca5da0c72c" args="(int p)" -->
  891. <div class="memitem">
  892. <div class="memproto">
  893. <table class="memname">
  894. <tr>
  895. <td class="memname">void WSql::WSqlDatabase::setPort </td>
  896. <td>(</td>
  897. <td class="paramtype">int&#160;</td>
  898. <td class="paramname"><em>port</em></td><td>)</td>
  899. <td></td>
  900. </tr>
  901. </table>
  902. </div>
  903. <div class="memdoc">
  904. <p>Sets the port number for the connection. </p>
  905. <p>This method sets the connection's port number to <em>port</em>. To have effect, the port number must be set <em>before</em> opening the connection with <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> Alternately, you can <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> the connection, set the port number, and call <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> again</p>
  906. <p>The default value is -1.</p>
  907. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a9d22fff18962918f7301df4c85548ec6" title="Returns the connection&#39;s port number.">port()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> </dd></dl>
  908. <dl><dt><b>Parameters:</b></dt><dd>
  909. <table class="params">
  910. <tr><td class="paramname">int</td><td>port number to use </td></tr>
  911. </table>
  912. </dd>
  913. </dl>
  914. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00359">359</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  915. </div>
  916. </div>
  917. <a class="anchor" id="a764e33f918dced0411724a3f4781343a"></a><!-- doxytag: member="WSql::WSqlDatabase::setUserName" ref="a764e33f918dced0411724a3f4781343a" args="(const std::string &amp;name)" -->
  918. <div class="memitem">
  919. <div class="memproto">
  920. <table class="memname">
  921. <tr>
  922. <td class="memname">void WSql::WSqlDatabase::setUserName </td>
  923. <td>(</td>
  924. <td class="paramtype">const std::string &amp;&#160;</td>
  925. <td class="paramname"><em>name</em></td><td>)</td>
  926. <td></td>
  927. </tr>
  928. </table>
  929. </div>
  930. <div class="memdoc">
  931. <p>Set the the user name. </p>
  932. <p>Sets the connection's user name to <em>name</em>. To have effect, the user name must be set <em>before</em> opening the connection with <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> Alternately, you can <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> the connection, set the user name, and call <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> again.</p>
  933. <p>There is no default value. </p>
  934. <dl><dt><b>Parameters:</b></dt><dd>
  935. <table class="params">
  936. <tr><td class="paramname">std::string</td><td>name - the name of the user </td></tr>
  937. </table>
  938. </dd>
  939. </dl>
  940. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a8523467f1ed4ba30b800d6cf6224a9b1">userName()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#ac40fb73f4b8c5fd26f7cfb959679f1ba" title="Open a connection.">open()</a> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7d1ff5ea5063fd2a0642584972f9dada">close()</a> </dd></dl>
  941. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00309">309</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  942. </div>
  943. </div>
  944. <a class="anchor" id="a2f068c8103068f0b4cab897b824144b9"></a><!-- doxytag: member="WSql::WSqlDatabase::tableMetaData" ref="a2f068c8103068f0b4cab897b824144b9" args="(const std::string &amp;tableName) const " -->
  945. <div class="memitem">
  946. <div class="memproto">
  947. <table class="memname">
  948. <tr>
  949. <td class="memname"><a class="el" href="class_w_sql_1_1_w_sql_table.html">WSqlTable</a> WSql::WSqlDatabase::tableMetaData </td>
  950. <td>(</td>
  951. <td class="paramtype">const std::string &amp;&#160;</td>
  952. <td class="paramname"><em>tablename</em></td><td>)</td>
  953. <td> const</td>
  954. </tr>
  955. </table>
  956. </div>
  957. <div class="memdoc">
  958. <p>Fetch metadata for table <em>tableName</em>. </p>
  959. <p>This method returns a <a class="el" href="class_w_sql_1_1_w_sql_table.html" title="WSqlTable is an abstraction for a single table, collection or view in a database.">WSqlTable</a> object populated with WSqlColumns that contain metadata for the columns in the given table <em>tableName</em>. Example:</p>
  960. <div class="fragment"><pre class="fragment"> meta_table = db.tableMetaData(*it);
  961. numflds = meta_table.count();
  962. <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i=0; i &lt; numflds; ++i)
  963. {
  964. <a class="code" href="class_w_sql_1_1_w_sql_column.html" title="The WSqlColumn class represents a column in SQL database tables.">WSql::WSqlColumn</a> column = meta_table.column(i);
  965. std::cout &lt;&lt; <span class="stringliteral">&quot;Column &quot;</span> &lt;&lt; i &lt;&lt; <span class="stringliteral">&quot; = &quot;</span> &lt;&lt; column.<a class="code" href="class_w_sql_1_1_w_sql_column.html#a44843e71b5805c2287e00df46185eb71">columnName</a>() &lt;&lt; std::endl;
  966. std::cout &lt;&lt; <span class="stringliteral">&quot; * Data type: &quot;</span> &lt;&lt; <a class="code" href="namespace_w_sql_1_1_w_sql_data_type.html#a35fc6aeb59a9a430f53eb16069742573" title="Covenience function - returns a string for the type.">WSql::WSqlDataType::toString</a>(column.dataType()) &lt;&lt; std::endl;
  967. std::cout &lt;&lt; <span class="stringliteral">&quot; * Max Length: &quot;</span> &lt;&lt; column.<a class="code" href="class_w_sql_1_1_w_sql_column.html#a46eac3f4c5a14bf24bbac67a02787b8b">maxLength</a>() &lt;&lt; std::endl;
  968. std::cout &lt;&lt; <span class="stringliteral">&quot; * Unsigned: &quot;</span> &lt;&lt; (column.<a class="code" href="class_w_sql_1_1_w_sql_column.html#a77fd5a82727a48f5449b62804260d5c3">isUnsigned</a>() ? <span class="stringliteral">&quot;true&quot;</span> : <span class="stringliteral">&quot;false&quot;</span>) &lt;&lt; std::endl;
  969. std::cout &lt;&lt; <span class="stringliteral">&quot; * Can be null: &quot;</span> &lt;&lt; (column.<a class="code" href="class_w_sql_1_1_w_sql_column.html#a8d6cb49198c3215c1b8542ba9ea0f16b">canBeNull</a>() ? <span class="stringliteral">&quot;true&quot;</span> : <span class="stringliteral">&quot;false&quot;</span>) &lt;&lt; std::endl;
  970. std::cout &lt;&lt; <span class="stringliteral">&quot; * Primary key: &quot;</span> &lt;&lt; (column.<a class="code" href="class_w_sql_1_1_w_sql_column.html#a550d941195f306da2e2df25bbd08dee6">isPrimaryKey</a>() ? <span class="stringliteral">&quot;true&quot;</span> : <span class="stringliteral">&quot;false&quot;</span>) &lt;&lt; std::endl;
  971. std::cout &lt;&lt; <span class="stringliteral">&quot; * Autoincrement: &quot;</span> &lt;&lt; (column.<a class="code" href="class_w_sql_1_1_w_sql_column.html#aa1554dddff2918b50300794905f3edbc">isAutoIncremented</a>()?<span class="stringliteral">&quot;true&quot;</span> : <span class="stringliteral">&quot;false&quot;</span>) &lt;&lt; std::endl;
  972. std::cout &lt;&lt; <span class="stringliteral">&quot; * default value: &quot;</span> &lt;&lt; column.<a class="code" href="class_w_sql_1_1_w_sql_column.html#a55feefa5aa00a43a8c8e09a517414047">defaultValue</a>&lt;std::string&gt;() &lt;&lt; std::endl;
  973. }
  974. </pre></div><dl class="warning"><dt><b>Warning:</b></dt><dd>If the table metadata has not been initialized yet this method will invalidate any previous <a class="el" href="class_w_sql_1_1_w_sql_result.html" title="The WSqlResult class provides a representation of the result set from a query.">WSqlResult</a> pointer returned - in this case nesting calls to this method inside of a loop iterating over WSqlResults WILL NOT WORK. Obtain the <a class="el" href="class_w_sql_1_1_w_sql_table.html" title="WSqlTable is an abstraction for a single table, collection or view in a database.">WSqlTable</a> <em>first</em> and <em>then</em> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9a368d8a1e0ab21a2ab4b5082acc6a1c" title="Executes the query in sql returning true on sucess.">query()</a> a query and fetch the result set using <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a> or use <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9bd1765f14443afbb875981321d4c529" title="Initializes the metadata for all tables in the database.">initMetaData()</a> to initialize the metadata for all tables at once.</dd></dl>
  975. <dl><dt><b>Parameters:</b></dt><dd>
  976. <table class="params">
  977. <tr><td class="paramname">string</td><td>the name of the table to use </td></tr>
  978. </table>
  979. </dd>
  980. </dl>
  981. <dl><dt><b>Return values:</b></dt><dd>
  982. <table class="retval">
  983. <tr><td class="paramname"><a class="el" href="class_w_sql_1_1_w_sql_table.html" title="WSqlTable is an abstraction for a single table, collection or view in a database.">WSqlTable</a></td><td>an object containing metadata </td></tr>
  984. </table>
  985. </dd>
  986. </dl>
  987. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_table.html" title="WSqlTable is an abstraction for a single table, collection or view in a database.">WSqlTable</a> <a class="el" href="class_w_sql_1_1_w_sql_column.html" title="The WSqlColumn class represents a column in SQL database tables.">WSqlColumn</a> </dd></dl>
  988. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00509">509</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  989. </div>
  990. </div>
  991. <a class="anchor" id="a86df7db5900c3a2d1483375195c7b025"></a><!-- doxytag: member="WSql::WSqlDatabase::tableNames" ref="a86df7db5900c3a2d1483375195c7b025" args="(WSql::TableType type=WSql::Tables)" -->
  992. <div class="memitem">
  993. <div class="memproto">
  994. <table class="memname">
  995. <tr>
  996. <td class="memname">const std::vector&lt; std::string &gt; &amp; WSql::WSqlDatabase::tableNames </td>
  997. <td>(</td>
  998. <td class="paramtype"><a class="el" href="namespace_w_sql.html#a2860958b4a0664bf26cd4959a7aaace8">WSql::TableType</a>&#160;</td>
  999. <td class="paramname"><em>type</em> = <code>WSql::Tables</code></td><td>)</td>
  1000. <td></td>
  1001. </tr>
  1002. </table>
  1003. </div>
  1004. <div class="memdoc">
  1005. <p>Returns a vector of the database's table names. </p>
  1006. <p>Returns all the errors that have occurred on the database or in the driver as a vector of strings. </p>
  1007. <dl class="todo"><dt><b><a class="el" href="todo.html#_todo000025">Todo:</a></b></dt><dd>.. decide if we use this .. </dd></dl>
  1008. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_error.html" title="The WSqlError class provides SQL database and driver error information.">WSqlError</a></dd></dl>
  1009. <p>This function returns a vector of strings containing the names tables and views as specified by the parameter <em>type</em>. The vector is cached for quick reference - if empty it is initialized by a request to the driver for the names. If the names are not available an empty vector is returned.</p>
  1010. <dl class="warning"><dt><b>Warning:</b></dt><dd>If the table metadata has not been initialized yet this method will invalidate any previous <a class="el" href="class_w_sql_1_1_w_sql_result.html" title="The WSqlResult class provides a representation of the result set from a query.">WSqlResult</a> pointer returned - in this case nesting calls to this method inside of a loop iterating over WSqlResults WILL NOT WORK. Obtain the <a class="el" href="class_w_sql_1_1_w_sql_table.html" title="WSqlTable is an abstraction for a single table, collection or view in a database.">WSqlTable</a> <em>first</em> and <em>then</em> <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9a368d8a1e0ab21a2ab4b5082acc6a1c" title="Executes the query in sql returning true on sucess.">query()</a> a query and fetch the result set using <a class="el" href="class_w_sql_1_1_w_sql_database.html#a7f485f7a20f577f5f398c7b5fec07ab7" title="Returns a pointer to the result set from the most recent query.">getResult()</a> or use <a class="el" href="class_w_sql_1_1_w_sql_database.html#a9bd1765f14443afbb875981321d4c529" title="Initializes the metadata for all tables in the database.">initMetaData()</a> to initialize the metadata for all tables at once.</dd></dl>
  1011. <dl class="todo"><dt><b><a class="el" href="todo.html#_todo000026">Todo:</a></b></dt><dd>Use the table type - currently does nothing.</dd></dl>
  1012. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="namespace_w_sql.html#a2860958b4a0664bf26cd4959a7aaace8">WSql::TableType</a> </dd></dl>
  1013. <dl><dt><b>Parameters:</b></dt><dd>
  1014. <table class="params">
  1015. <tr><td class="paramname"><a class="el" href="namespace_w_sql.html#a2860958b4a0664bf26cd4959a7aaace8">WSql::TableType</a></td><td></td></tr>
  1016. </table>
  1017. </dd>
  1018. </dl>
  1019. <dl><dt><b>Return values:</b></dt><dd>
  1020. <table class="retval">
  1021. <tr><td class="paramname">std::vector&lt;std::string&gt;&amp;</td><td>- the table names in this database </td></tr>
  1022. </table>
  1023. </dd>
  1024. </dl>
  1025. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00467">467</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  1026. </div>
  1027. </div>
  1028. <a class="anchor" id="a8523467f1ed4ba30b800d6cf6224a9b1"></a><!-- doxytag: member="WSql::WSqlDatabase::userName" ref="a8523467f1ed4ba30b800d6cf6224a9b1" args="() const " -->
  1029. <div class="memitem">
  1030. <div class="memproto">
  1031. <table class="memname">
  1032. <tr>
  1033. <td class="memname">std::string WSql::WSqlDatabase::userName </td>
  1034. <td>(</td>
  1035. <td class="paramname"></td><td>)</td>
  1036. <td> const</td>
  1037. </tr>
  1038. </table>
  1039. </div>
  1040. <div class="memdoc">
  1041. <p>Returns the connection's user name; it may be empty.</p>
  1042. <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_w_sql_1_1_w_sql_database.html#a764e33f918dced0411724a3f4781343a" title="Set the the user name.">setUserName()</a> </dd></dl>
  1043. <p>Definition at line <a class="el" href="wsqldatabase_8cpp_source.html#l00378">378</a> of file <a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a>.</p>
  1044. </div>
  1045. </div>
  1046. <hr/>The documentation for this class was generated from the following files:<ul>
  1047. <li>src/sql/<a class="el" href="wsqldatabase_8h_source.html">wsqldatabase.h</a></li>
  1048. <li>src/sql/<a class="el" href="wsqldatabase_8cpp_source.html">wsqldatabase.cpp</a></li>
  1049. </ul>
  1050. </div>
  1051. <!--- window showing the filter options -->
  1052. <div id="MSearchSelectWindow"
  1053. onmouseover="return searchBox.OnSearchSelectShow()"
  1054. onmouseout="return searchBox.OnSearchSelectHide()"
  1055. onkeydown="return searchBox.OnSearchSelectKey(event)">
  1056. <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>
  1057. <!-- iframe showing the search results (closed by default) -->
  1058. <div id="MSearchResultsWindow">
  1059. <iframe src="" frameborder="0"
  1060. name="MSearchResults" id="MSearchResults">
  1061. </iframe>
  1062. </div>
  1063. <hr class="footer"/><address class="footer"><small>Generated on Fri Nov 18 2011 21:01:46 for WORM by&#160;
  1064. <a href="http://www.doxygen.org/index.html">
  1065. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
  1066. </body>
  1067. </html>