Debian Codegraph @

docs/api_reference/CXX/seqset_flags.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>DbSequence::set_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++ API Reference" />
10 <link rel="up" href="seq.html" title="Chapter 12.  The DbSequence Handle" />
11 <link rel="prev" href="seqset_cachesize.html" title="DbSequence::set_cachesize()" />
12 <link rel="next" href="seqset_range.html" title="DbSequence::set_range()" />
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">DbSequence::set_flags()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="seqset_cachesize.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 12. 
26 The DbSequence Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="seqset_range.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="seqset_flags"></a>DbSequence::set_flags()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbSequence::set_flags(u_int32_t flags); </pre>
45 <p>
46 Configure a sequence. The flags are only effective when creating a
47 sequence. Calling <code class="methodname">DbSequence::set_flags()</code> is additive; there is no
48 way to clear flags.
49 </p>
50 <p>
51 The <code class="methodname">DbSequence::set_flags()</code> method may not be called after the
52 <a class="xref" href="seqopen.html" title="DbSequence::open()">DbSequence::open()</a> method is called.
53 </p>
54 <p>
55 The <code class="methodname">DbSequence::set_flags()</code> <span>
56
57 <span>
58 method either returns a non-zero error value or throws an
59 exception that encapsulates a non-zero error value on
60 failure, and returns 0 on success.
61 </span>
62 </span>
63 </p>
64 <div class="sect2" lang="en" xml:lang="en">
65 <div class="titlepage">
66 <div>
67 <div>
68 <h3 class="title"><a id="idp10176968"></a>Parameters</h3>
69 </div>
70 </div>
71 </div>
72 <div class="sect3" lang="en" xml:lang="en">
73 <div class="titlepage">
74 <div>
75 <div>
76 <h4 class="title"><a id="idp10176320"></a>flags</h4>
77 </div>
78 </div>
79 </div>
80 <p>
81 The <span class="bold"><strong>flags</strong></span> parameter must be set to 0
82 or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing
83 together one or more of the following values:
84 </p>
85 <div class="itemizedlist">
86 <ul type="disc">
87 <li>
88 <p>
89 <code class="literal">DB_SEQ_DEC</code>
90 </p>
91 <p>
92 Specify that the sequence should be decremented.
93 </p>
94 </li>
95 <li>
96 <p>
97 <code class="literal">DB_SEQ_INC</code>
98 </p>
99 <p>
100 Specify that the sequence should be incremented. This is the default.
101 </p>
102 </li>
103 <li>
104 <p><a id="seqset_flags_DB_SEQ_WRAP"></a>
105 <code class="literal">DB_SEQ_WRAP</code>
106 </p>
107 <p>
108 Specify that the sequence should wrap around when it is incremented
109 (decremented) past the specified maximum (minimum) value.
110 </p>
111 </li>
112 </ul>
113 </div>
114 </div>
115 </div>
116 <div class="sect2" lang="en" xml:lang="en">
117 <div class="titlepage">
118 <div>
119 <div>
120 <h3 class="title"><a id="idp10183680"></a>Errors</h3>
121 </div>
122 </div>
123 </div>
124 <p>
125 The <code class="methodname">DbSequence::set_flags()</code> <span>
126
127 <span>
128 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
129 exception, encapsulating one of the following non-zero errors, or return one
130 of the following non-zero errors:
131 </span>
132 </span>
133 </p>
134 <div class="sect3" lang="en" xml:lang="en">
135 <div class="titlepage">
136 <div>
137 <div>
138 <h4 class="title"><a id="idp10180840"></a>EINVAL</h4>
139 </div>
140 </div>
141 </div>
142 <p>
143 An invalid flag value or parameter was specified.
144 </p>
145 </div>
146 </div>
147 <div class="sect2" lang="en" xml:lang="en">
148 <div class="titlepage">
149 <div>
150 <div>
151 <h3 class="title"><a id="idp10189752"></a>Class</h3>
152 </div>
153 </div>
154 </div>
155 <p>
156 <a class="link" href="seq.html" title="Chapter 12.  The DbSequence Handle">DbSequence</a>
157 </p>
158 </div>
159 <div class="sect2" lang="en" xml:lang="en">
160 <div class="titlepage">
161 <div>
162 <div>
163 <h3 class="title"><a id="idp10186600"></a>See Also</h3>
164 </div>
165 </div>
166 </div>
167 <p>
168 <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a>
169 </p>
170 </div>
171 </div>
172 <div class="navfooter">
173 <hr />
174 <table width="100%" summary="Navigation footer">
175 <tr>
176 <td width="40%" align="left"><a accesskey="p" href="seqset_cachesize.html">Prev</a> </td>
177 <td width="20%" align="center">
178 <a accesskey="u" href="seq.html">Up</a>
179 </td>
180 <td width="40%" align="right"> <a accesskey="n" href="seqset_range.html">Next</a></td>
181 </tr>
182 <tr>
183 <td width="40%" align="left" valign="top">DbSequence::set_cachesize() </td>
184 <td width="20%" align="center">
185 <a accesskey="h" href="index.html">Home</a>
186 </td>
187 <td width="40%" align="right" valign="top"> DbSequence::set_range()</td>
188 </tr>
189 </table>
190 </div>
191 </body>
192 </html>