• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/db-4.8.30/docs/api_reference/STL/
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>set_all_flags</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++ Standard Template Library API Reference" />
10    <link rel="up" href="db_container.html" title="Chapter 3.  Db_container" />
11    <link rel="prev" href="stldb_containerset_db_handle.html" title="set_db_handle" />
12    <link rel="next" href="stldb_containerset_txn_begin_flags.html" title="set_txn_begin_flags" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">
19set_all_flags
20</th>
21        </tr>
22        <tr>
23          <td width="20%" align="left"><a accesskey="p" href="stldb_containerset_db_handle.html">Prev</a> </td>
24          <th width="60%" align="center">Chapter 3. 
25 Db_container  </th>
26          <td width="20%" align="right"> <a accesskey="n" href="stldb_containerset_txn_begin_flags.html">Next</a></td>
27        </tr>
28      </table>
29      <hr />
30    </div>
31    <div class="sect1" lang="en" xml:lang="en">
32      <div class="titlepage">
33        <div>
34          <div>
35            <h2 class="title" style="clear: both"><a id="stldb_containerset_all_flags"></a>
36set_all_flags
37</h2>
38          </div>
39        </div>
40      </div>
41      <div class="sect2" lang="en" xml:lang="en">
42        <div class="titlepage">
43          <div>
44            <div>
45              <h3 class="title"><a id="func_details"></a>
46Function Details</h3>
47            </div>
48          </div>
49        </div>
50        <pre class="programlisting">
51void set_all_flags(u_int32_t txn_begin_flags, u_int32_t commit_flags,
52    u_int32_t cursor_open_flags)
53 </pre>
54        <div class="sect3" lang="en" xml:lang="en">
55          <div class="titlepage"></div>
56          <p>Set the flags required by the Berkeley DB functions DbEnv::txn_begin(), DbTxn::commit() and DbEnv::cursor(). </p>
57          <p>These flags will be set to this container's auto commit member functions when auto commit transaction is used, except that cursor_oflags is set to the Dbc::cursor when creating an iterator for this container. By default the three flags are all zero. You can also set the values of the flags individually by using the appropriate set functions in this class. The corresponding get functions return the flags actually used. </p>
58        </div>
59        <div class="sect3" lang="en" xml:lang="en">
60          <div class="titlepage">
61            <div>
62              <div>
63                <h4 class="title"><a id="id1544796"></a>
64Parameters</h4>
65              </div>
66            </div>
67          </div>
68          <div class="sect4" lang="en" xml:lang="en">
69            <div class="titlepage">
70              <div>
71                <div>
72                  <h5 class="title"><a id="id1544782"></a>
73 commit_flags </h5>
74                </div>
75              </div>
76            </div>
77            <p>Flags to be set to DbTxn::commit(). </p>
78          </div>
79          <div class="sect4" lang="en" xml:lang="en">
80            <div class="titlepage">
81              <div>
82                <div>
83                  <h5 class="title"><a id="id1544778"></a>
84 cursor_open_flags </h5>
85                </div>
86              </div>
87            </div>
88            <p>Flags to be set to Db::cursor(). </p>
89          </div>
90          <div class="sect4" lang="en" xml:lang="en">
91            <div class="titlepage">
92              <div>
93                <div>
94                  <h5 class="title"><a id="id1544772"></a>
95 txn_begin_flags </h5>
96                </div>
97              </div>
98            </div>
99            <p>Flags to be set to DbEnv::txn_begin(). </p>
100          </div>
101        </div>
102      </div>
103      <div class="sect2" lang="en" xml:lang="en">
104        <div class="titlepage">
105          <div>
106            <div>
107              <h3 class="title"><a id="id1544666"></a>
108Group: Get and set functions for data members.</h3>
109            </div>
110          </div>
111        </div>
112        <p>Note that these functions are not thread safe, because all data members of <a class="link" href="db_container.html" title="Chapter 3.  Db_container">db_container</a>
113 are supposed to be set on container construction and initialization, and remain read only afterwards. </p>
114      </div>
115      <div class="sect2" lang="en" xml:lang="en">
116        <div class="titlepage">
117          <div>
118            <div>
119              <h3 class="title"><a id="id1544919"></a>
120Class</h3>
121            </div>
122          </div>
123        </div>
124        <p>
125  <a class="link" href="db_container.html" title="Chapter 3.  Db_container">
126  db_container</a>
127     </p>
128      </div>
129    </div>
130    <div class="navfooter">
131      <hr />
132      <table width="100%" summary="Navigation footer">
133        <tr>
134          <td width="40%" align="left"><a accesskey="p" href="stldb_containerset_db_handle.html">Prev</a> </td>
135          <td width="20%" align="center">
136            <a accesskey="u" href="db_container.html">Up</a>
137          </td>
138          <td width="40%" align="right"> <a accesskey="n" href="stldb_containerset_txn_begin_flags.html">Next</a></td>
139        </tr>
140        <tr>
141          <td width="40%" align="left" valign="top">
142set_db_handle
143 </td>
144          <td width="20%" align="center">
145            <a accesskey="h" href="index.html">Home</a>
146          </td>
147          <td width="40%" align="right" valign="top"148set_txn_begin_flags
149</td>
150        </tr>
151      </table>
152    </div>
153  </body>
154</html>
155