Debian Codegraph @

docs/api_reference/CXX/logcursor.html

raw symbols SCIP
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 xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DbEnv::log_cursor()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="logarchive.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 8. 
26 The DbLsn Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="logfile.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="logcursor"></a>DbEnv::log_cursor()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::log_cursor(DbLogc **cursorp, u_int32_t flags);</pre>
45 <p>
46 The <code class="methodname">DbEnv::log_cursor()</code> method returns a created log cursor.
47 </p>
48 <p>
49 The <code class="methodname">DbEnv::log_cursor()</code> <span>
50
51 <span>
52 method either returns a non-zero error value or throws an
53 exception that encapsulates a non-zero error value on
54 failure, and returns 0 on success.
55 </span>
56 </span>
57 </p>
58 <div class="sect2" lang="en" xml:lang="en">
59 <div class="titlepage">
60 <div>
61 <div>
62 <h3 class="title"><a id="idp8270552"></a>Parameters</h3>
63 </div>
64 </div>
65 </div>
66 <div class="sect3" lang="en" xml:lang="en">
67 <div class="titlepage">
68 <div>
69 <div>
70 <h4 class="title"><a id="idp8295168"></a>cursorp</h4>
71 </div>
72 </div>
73 </div>
74 <p>
75 The <span class="bold"><strong>cursorp</strong></span> parameter references
76 memory into which a pointer to the created log cursor is copied.
77 </p>
78 </div>
79 <div class="sect3" lang="en" xml:lang="en">
80 <div class="titlepage">
81 <div>
82 <div>
83 <h4 class="title"><a id="idp8303696"></a>flags</h4>
84 </div>
85 </div>
86 </div>
87 <p>
88 The <span class="bold"><strong>flags</strong></span> parameter is currently
89 unused, and must be set to 0.
90 </p>
91 </div>
92 </div>
93 <div class="sect2" lang="en" xml:lang="en">
94 <div class="titlepage">
95 <div>
96 <div>
97 <h3 class="title"><a id="idp8286008"></a>Errors</h3>
98 </div>
99 </div>
100 </div>
101 <p>
102 The <code class="methodname">DbEnv::log_cursor()</code> <span>
103
104 <span>
105 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
106 exception, encapsulating one of the following non-zero errors, or return one
107 of the following non-zero errors:
108 </span>
109 </span>
110 </p>
111 <div class="sect3" lang="en" xml:lang="en">
112 <div class="titlepage">
113 <div>
114 <div>
115 <h4 class="title"><a id="idp8308280"></a>EINVAL</h4>
116 </div>
117 </div>
118 </div>
119 <p>
120 An invalid flag value or parameter was specified.
121 </p>
122 </div>
123 </div>
124 <div class="sect2" lang="en" xml:lang="en">
125 <div class="titlepage">
126 <div>
127 <div>
128 <h3 class="title"><a id="idp8306304"></a>Class</h3>
129 </div>
130 </div>
131 </div>
132 <p>
133 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>,
134 <a class="link" href="logc.html" title="The DbLogc Handle">DbLogc</a>,
135 <a class="link" href="lsn.html" title="Chapter 8.  The DbLsn Handle">DbLsn</a>
136 </p>
137 </div>
138 <div class="sect2" lang="en" xml:lang="en">
139 <div class="titlepage">
140 <div>
141 <div>
142 <h3 class="title"><a id="idp8299816"></a>See Also</h3>
143 </div>
144 </div>
145 </div>
146 <p>
147 <a class="xref" href="lsn.html#loglist" title="Logging Subsystem and Related Methods">Logging Subsystem and Related Methods</a>
148 </p>
149 </div>
150 </div>
151 <div class="navfooter">
152 <hr />
153 <table width="100%" summary="Navigation footer">
154 <tr>
155 <td width="40%" align="left"><a accesskey="p" href="logarchive.html">Prev</a> </td>
156 <td width="20%" align="center">
157 <a accesskey="u" href="lsn.html">Up</a>
158 </td>
159 <td width="40%" align="right"> <a accesskey="n" href="logfile.html">Next</a></td>
160 </tr>
161 <tr>
162 <td width="40%" align="left" valign="top">DbEnv::log_archive() </td>
163 <td width="20%" align="center">
164 <a accesskey="h" href="index.html">Home</a>
165 </td>
166 <td width="40%" align="right" valign="top"> DbEnv::log_file()</td>
167 </tr>
168 </table>
169 </div>
170 </body>
171 </html>