• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/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_db_handle</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_containerget_db_env_handle.html" title="get_db_env_handle" />
12    <link rel="next" href="stldb_containerset_all_flags.html" title="set_all_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_db_handle
20</th>
21        </tr>
22        <tr>
23          <td width="20%" align="left"><a accesskey="p" href="stldb_containerget_db_env_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_all_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_db_handle"></a>
36set_db_handle
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_db_handle(Db��*dbp,
52��������DbEnv��*newenv=NULL)
53 </pre>
54        <div class="sect3" lang="en" xml:lang="en">
55          <div class="titlepage"></div>
56          <p>Set the underlying database's handle, and optionally environment handle if the environment has also changed. </p>
57          <p>That is, users can change the container object's underlying database while the object is alive. dbstl will verify that the handles set conforms to the concrete container's requirement to Berkeley DB database/environment handles. </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="id1544249"></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="id1544733"></a>
73 dbp </h5>
74                </div>
75              </div>
76            </div>
77            <p>The database handle to set. </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="id1544728"></a>
84 newenv </h5>
85                </div>
86              </div>
87            </div>
88            <p>The database environment handle to set. </p>
89          </div>
90        </div>
91      </div>
92      <div class="sect2" lang="en" xml:lang="en">
93        <div class="titlepage">
94          <div>
95            <div>
96              <h3 class="title"><a id="id1544741"></a>
97Group: Get and set functions for data members.</h3>
98            </div>
99          </div>
100        </div>
101        <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>
102 are supposed to be set on container construction and initialization, and remain read only afterwards. </p>
103      </div>
104      <div class="sect2" lang="en" xml:lang="en">
105        <div class="titlepage">
106          <div>
107            <div>
108              <h3 class="title"><a id="id1544811"></a>
109Class</h3>
110            </div>
111          </div>
112        </div>
113        <p>
114  <a class="link" href="db_container.html" title="Chapter��3.�� Db_container">
115  db_container</a>
116     </p>
117      </div>
118    </div>
119    <div class="navfooter">
120      <hr />
121      <table width="100%" summary="Navigation footer">
122        <tr>
123          <td width="40%" align="left"><a accesskey="p" href="stldb_containerget_db_env_handle.html">Prev</a>��</td>
124          <td width="20%" align="center">
125            <a accesskey="u" href="db_container.html">Up</a>
126          </td>
127          <td width="40%" align="right">��<a accesskey="n" href="stldb_containerset_all_flags.html">Next</a></td>
128        </tr>
129        <tr>
130          <td width="40%" align="left" valign="top">
131get_db_env_handle
132��</td>
133          <td width="20%" align="center">
134            <a accesskey="h" href="index.html">Home</a>
135          </td>
136          <td width="40%" align="right" valign="top">��
137set_all_flags
138</td>
139        </tr>
140      </table>
141    </div>
142  </body>
143</html>
144