Debian Codegraph @

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