1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>DbEnv::log_cursor()</title> 7 <link rel="stylesheet" href="apiReference.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" /> 10 <link rel="up" href="lsn.html" title="Chapter��8.�� The DbLsn Handle" /> 11 <link rel="prev" href="logarchive.html" title="DbEnv::log_archive()" /> 12 <link rel="next" href="logfile.html" title="DbEnv::log_file()" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">DbEnv::log_cursor()</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="logarchive.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��8.�� 23 The DbLsn Handle 24 </th> 25 <td width="20%" align="right">��<a accesskey="n" href="logfile.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="logcursor"></a>DbEnv::log_cursor()</h2> 35 </div> 36 </div> 37 </div> 38 <pre class="programlisting">#include <db_cxx.h> 39 40int 41DbEnv::log_cursor(DbLogc **cursorp, u_int32_t flags);</pre> 42 <p> 43 The <code class="methodname">DbEnv::log_cursor()</code> method returns a created log cursor. 44 </p> 45 <p> 46 The <code class="methodname">DbEnv::log_cursor()</code> <span> 47 48 <span> 49 method either returns a non-zero error value or throws an 50 exception that encapsulates a non-zero error value on 51 failure, and returns 0 on success. 52 </span> 53 </span> 54 </p> 55 <div class="sect2" lang="en" xml:lang="en"> 56 <div class="titlepage"> 57 <div> 58 <div> 59 <h3 class="title"><a id="id1685059"></a>Parameters</h3> 60 </div> 61 </div> 62 </div> 63 <div class="sect3" lang="en" xml:lang="en"> 64 <div class="titlepage"> 65 <div> 66 <div> 67 <h4 class="title"><a id="id1685213"></a>cursorp</h4> 68 </div> 69 </div> 70 </div> 71 <p> 72 The <span class="bold"><strong>cursorp</strong></span> parameter references 73 memory into which a pointer to the created log cursor is copied. 74 </p> 75 </div> 76 <div class="sect3" lang="en" xml:lang="en"> 77 <div class="titlepage"> 78 <div> 79 <div> 80 <h4 class="title"><a id="id1685326"></a>flags</h4> 81 </div> 82 </div> 83 </div> 84 <p> 85 The <span class="bold"><strong>flags</strong></span> parameter is currently 86 unused, and must be set to 0. 87 </p> 88 </div> 89 </div> 90 <div class="sect2" lang="en" xml:lang="en"> 91 <div class="titlepage"> 92 <div> 93 <div> 94 <h3 class="title"><a id="id1685077"></a>Errors</h3> 95 </div> 96 </div> 97 </div> 98 <p> 99 The <code class="methodname">DbEnv::log_cursor()</code> <span> 100 101 <span> 102 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter��6.��The DbException Class">DbException</a> 103 exception, encapsulating one of the following non-zero errors, or return one 104 of the following non-zero errors: 105 </span> 106 </span> 107 </p> 108 <div class="sect3" lang="en" xml:lang="en"> 109 <div class="titlepage"> 110 <div> 111 <div> 112 <h4 class="title"><a id="id1685055"></a>EINVAL</h4> 113 </div> 114 </div> 115 </div> 116 <p> 117 An invalid flag value or parameter was specified. 118 </p> 119 </div> 120 </div> 121 <div class="sect2" lang="en" xml:lang="en"> 122 <div class="titlepage"> 123 <div> 124 <div> 125 <h3 class="title"><a id="id1685056"></a>Class</h3> 126 </div> 127 </div> 128 </div> 129 <p> 130 <a class="link" href="env.html" title="Chapter��5.�� The DbEnv Handle">DbEnv</a>, 131 <a class="link" href="logc.html" title="The DbLogc Handle">DbLogc</a>, 132 <a class="link" href="lsn.html" title="Chapter��8.�� The DbLsn Handle">DbLsn</a> 133 </p> 134 </div> 135 <div class="sect2" lang="en" xml:lang="en"> 136 <div class="titlepage"> 137 <div> 138 <div> 139 <h3 class="title"><a id="id1685079"></a>See Also</h3> 140 </div> 141 </div> 142 </div> 143 <p> 144 <a class="xref" href="lsn.html#loglist" title="Logging Subsystem and Related Methods">Logging Subsystem and Related Methods</a> 145 </p> 146 </div> 147 </div> 148 <div class="navfooter"> 149 <hr /> 150 <table width="100%" summary="Navigation footer"> 151 <tr> 152 <td width="40%" align="left"><a accesskey="p" href="logarchive.html">Prev</a>��</td> 153 <td width="20%" align="center"> 154 <a accesskey="u" href="lsn.html">Up</a> 155 </td> 156 <td width="40%" align="right">��<a accesskey="n" href="logfile.html">Next</a></td> 157 </tr> 158 <tr> 159 <td width="40%" align="left" valign="top">DbEnv::log_archive()��</td> 160 <td width="20%" align="center"> 161 <a accesskey="h" href="index.html">Home</a> 162 </td> 163 <td width="40%" align="right" valign="top">��DbEnv::log_file()</td> 164 </tr> 165 </table> 166 </div> 167 </body> 168</html> 169