Debian Codegraph @

docs/api_reference/CXX/dbset_message_stream.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>Db::set_message_stream()</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="db.html" title="Chapter 2.  The Db Handle" />
11 <link rel="prev" href="dbset_lorder.html" title="Db::set_lorder()" />
12 <link rel="next" href="dbset_msgcall.html" title="Db::set_msgcall()" />
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">Db::set_message_stream()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbset_lorder.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 2. 
26 The Db Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="dbset_msgcall.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="dbset_message_stream"></a>Db::set_message_stream()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 void Db::set_message_stream(class ostream*); </pre>
44 <p>
45 There are interfaces in the Berkeley DB library which either
46 directly output informational messages or statistical
47 information, or configure the library to output such messages
48 when performing other operations. For example, the
49 <a class="xref" href="envset_verbose.html" title="DbEnv::set_verbose()">DbEnv::set_verbose()</a>
50 and <a class="xref" href="envstat.html" title="DbEnv::stat_print()">DbEnv::stat_print()</a>
51 methods.
52 </p>
53 <p>
54 The <a class="xref" href="envset_message_stream.html" title="DbEnv::set_message_stream()">DbEnv::set_message_stream()</a>
55 and <code class="methodname">Db::set_message_stream()</code> methods are used
56 to display these messages for the application. In this case, the message will include a
57 trailing <code class="literal">&lt;newline&gt;</code> character.
58 </p>
59 <p>
60 Setting <span class="bold"><strong>stream</strong></span> to NULL unconfigures the interface.
61 </p>
62 <p>
63 Alternatively, you can use the
64 <a class="xref" href="envset_msgfile.html" title="DbEnv::set_msgfile()">DbEnv::set_msgfile()</a> or
65 <a class="xref" href="dbset_msgfile.html" title="Db::set_msgfile()">Db::set_msgfile()</a> methods
66 to display the additional information via a C Library <code class="literal">FILE *</code>,
67 or the <a class="xref" href="envset_msgcall.html" title="DbEnv::set_msgcall()">DbEnv::set_msgcall()</a>
68 and <a class="xref" href="dbset_msgcall.html" title="Db::set_msgcall()">Db::set_msgcall()</a>
69 methods to capture the additional error information in a way that does not use either
70 output streams or C Library <code class="literal">FILE *</code>'s.
71 You should not mix these approaches.
72 </p>
73 <p>
74 For <a class="link" href="db.html" title="Chapter 2.  The Db Handle">Db</a> handles opened inside of Berkeley DB
75 environments, calling the <code class="methodname">Db::set_message_stream()</code> method
76 affects the entire environment and is equivalent to calling the
77 <a class="xref" href="envset_message_stream.html" title="DbEnv::set_message_stream()">DbEnv::set_message_stream()</a> method.
78 </p>
79 <p>
80 The <code class="methodname">Db::set_message_stream()</code> method configures
81 operations performed using the specified
82 <a class="link" href="db.html" title="Chapter 2.  The Db Handle">Db</a>
83 handle, not all operations performed on the underlying database.
84 </p>
85 <p>
86 The <code class="methodname">Db::set_message_stream()</code> method may be called at any time during the
87 life of the application.
88 </p>
89 <div class="sect2" lang="en" xml:lang="en">
90 <div class="titlepage">
91 <div>
92 <div>
93 <h3 class="title"><a id="idp5711224"></a>Parameters</h3>
94 </div>
95 </div>
96 </div>
97 <div class="sect3" lang="en" xml:lang="en">
98 <div class="titlepage">
99 <div>
100 <div>
101 <h4 class="title"><a id="idp5711416"></a>stream</h4>
102 </div>
103 </div>
104 </div>
105 <p>
106 The <span class="bold"><strong>stream</strong></span> parameter is the
107 application-specified output stream to be used for additional message
108 information.
109 </p>
110 </div>
111 </div>
112 <div class="sect2" lang="en" xml:lang="en">
113 <div class="titlepage">
114 <div>
115 <div>
116 <h3 class="title"><a id="idp5675544"></a>Class</h3>
117 </div>
118 </div>
119 </div>
120 <p>
121 <a class="link" href="db.html" title="Chapter 2.  The Db Handle">Db</a>
122 </p>
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="idp5706408"></a>See Also</h3>
129 </div>
130 </div>
131 </div>
132 <p>
133 <a class="xref" href="db.html#dblist" title="Database and Related Methods">Database and Related Methods</a>
134 </p>
135 </div>
136 </div>
137 <div class="navfooter">
138 <hr />
139 <table width="100%" summary="Navigation footer">
140 <tr>
141 <td width="40%" align="left"><a accesskey="p" href="dbset_lorder.html">Prev</a> </td>
142 <td width="20%" align="center">
143 <a accesskey="u" href="db.html">Up</a>
144 </td>
145 <td width="40%" align="right"> <a accesskey="n" href="dbset_msgcall.html">Next</a></td>
146 </tr>
147 <tr>
148 <td width="40%" align="left" valign="top">Db::set_lorder() </td>
149 <td width="20%" align="center">
150 <a accesskey="h" href="index.html">Home</a>
151 </td>
152 <td width="40%" align="right" valign="top"> Db::set_msgcall()</td>
153 </tr>
154 </table>
155 </div>
156 </body>
157 </html>