Debian Codegraph @

docs/api_reference/CXX/repget_config.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::rep_get_config()</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="rep.html" title="Chapter 11.  Replication Methods" />
11 <link rel="prev" href="repget_clockskew.html" title="DbEnv::rep_get_clockskew()" />
12 <link rel="next" href="repget_limit.html" title="DbEnv::rep_get_limit()" />
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::rep_get_config()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="repget_clockskew.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 11. 
26 Replication Methods
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="repget_limit.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="repget_config"></a>DbEnv::rep_get_config()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::rep_get_config(u_int32_t which, int *onoffp);</pre>
45 <p>
46 The <code class="methodname">DbEnv::rep_get_config()</code> method returns whether the specified
47 <span class="bold"><strong>which</strong></span> parameter is currently set or not.
48 See the <a class="xref" href="repconfig.html" title="DbEnv::rep_set_config()">DbEnv::rep_set_config()</a> method for the
49 configuration flags that can be set for replication.
50 </p>
51 <p>
52 The <code class="methodname">DbEnv::rep_get_config()</code> method may be called at any time during
53 the life of the application.
54 </p>
55 <p>
56 The <code class="methodname">DbEnv::rep_get_config()</code> <span>
57
58 <span>
59 method either returns a non-zero error value or throws an
60 exception that encapsulates a non-zero error value on
61 failure, and returns 0 on success.
62 </span>
63 </span>
64 </p>
65 <div class="sect2" lang="en" xml:lang="en">
66 <div class="titlepage">
67 <div>
68 <div>
69 <h3 class="title"><a id="idp9470048"></a>Parameters</h3>
70 </div>
71 </div>
72 </div>
73 <div class="sect3" lang="en" xml:lang="en">
74 <div class="titlepage">
75 <div>
76 <div>
77 <h4 class="title"><a id="idp9469144"></a>which</h4>
78 </div>
79 </div>
80 </div>
81 <p>
82 The <span class="bold"><strong>which</strong></span> parameter is the configuration flag
83 which is being checked.
84 See the <a class="xref" href="repconfig.html" title="DbEnv::rep_set_config()">DbEnv::rep_set_config()</a>
85 method for a list of configuration flags that you can
86 provide to this parameter.
87 </p>
88 </div>
89 <div class="sect3" lang="en" xml:lang="en">
90 <div class="titlepage">
91 <div>
92 <div>
93 <h4 class="title"><a id="idp9456640"></a>onoffp</h4>
94 </div>
95 </div>
96 </div>
97 <p>
98 The <span class="bold"><strong>onoffp</strong></span> parameter references
99 memory into which the configuration of the specified <span class="bold"><strong>which</strong></span> parameter is copied.
100 </p>
101 <p>
102 If the returned <span class="bold"><strong>onoff</strong></span> value is zero,
103 the parameter is off; otherwise it is on.
104 </p>
105 </div>
106 </div>
107 <div class="sect2" lang="en" xml:lang="en">
108 <div class="titlepage">
109 <div>
110 <div>
111 <h3 class="title"><a id="idp9470904"></a>Class</h3>
112 </div>
113 </div>
114 </div>
115 <p>
116 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>
117 </p>
118 </div>
119 <div class="sect2" lang="en" xml:lang="en">
120 <div class="titlepage">
121 <div>
122 <div>
123 <h3 class="title"><a id="idp9460576"></a>See Also</h3>
124 </div>
125 </div>
126 </div>
127 <p>
128 <a class="xref" href="rep.html#replist" title="Replication and Related Methods">Replication and Related Methods</a>,
129 <a class="xref" href="repconfig.html" title="DbEnv::rep_set_config()">DbEnv::rep_set_config()</a>
130 </p>
131 </div>
132 </div>
133 <div class="navfooter">
134 <hr />
135 <table width="100%" summary="Navigation footer">
136 <tr>
137 <td width="40%" align="left"><a accesskey="p" href="repget_clockskew.html">Prev</a> </td>
138 <td width="20%" align="center">
139 <a accesskey="u" href="rep.html">Up</a>
140 </td>
141 <td width="40%" align="right"> <a accesskey="n" href="repget_limit.html">Next</a></td>
142 </tr>
143 <tr>
144 <td width="40%" align="left" valign="top">DbEnv::rep_get_clockskew() </td>
145 <td width="20%" align="center">
146 <a accesskey="h" href="index.html">Home</a>
147 </td>
148 <td width="40%" align="right" valign="top"> DbEnv::rep_get_limit()</td>
149 </tr>
150 </table>
151 </div>
152 </body>
153 </html>