Debian Codegraph @

docs/api_reference/CXX/dbget_create_dir.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::get_create_dir()</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="dbget_cachesize.html" title="Db::get_cachesize()" />
12 <link rel="next" href="dbget_dbname.html" title="Db::get_dbname()" />
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::get_create_dir()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="dbget_cachesize.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="dbget_dbname.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="dbget_create_dir"></a>Db::get_create_dir()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 Db::get_create_dir(const char **dirp); </pre>
45 <p>
46 Determine which directory a database file will be created in or was found in.
47 </p>
48 <p>
49 The <code class="methodname">Db::get_create_dir()</code> method may be called at any time.
50 </p>
51 <p>
52 The <code class="methodname">Db::get_create_dir()</code> <span>
53
54 <span>
55 method either returns a non-zero error value or throws an
56 exception that encapsulates a non-zero error value on
57 failure, and returns 0 on success.
58 </span>
59 </span>
60 </p>
61 <div class="sect2" lang="en" xml:lang="en">
62 <div class="titlepage">
63 <div>
64 <div>
65 <h3 class="title"><a id="idp2588232"></a>Parameters</h3>
66 </div>
67 </div>
68 </div>
69 <div class="sect3" lang="en" xml:lang="en">
70 <div class="titlepage">
71 <div>
72 <div>
73 <h4 class="title"><a id="idp3354920"></a>dirp</h4>
74 </div>
75 </div>
76 </div>
77 <p>
78 The <span class="bold"><strong>dirp</strong></span> will be set to the directory
79 specified in the call to <a class="xref" href="dbset_create_dir.html" title="Db::set_create_dir()">Db::set_create_dir()</a>
80 method on this handle or to the directory that the database was found in
81 after <a class="xref" href="dbopen.html" title="Db::open()">Db::open()</a> has been called.
82 </p>
83 </div>
84 </div>
85 <div class="sect2" lang="en" xml:lang="en">
86 <div class="titlepage">
87 <div>
88 <div>
89 <h3 class="title"><a id="idp2679088"></a>Errors</h3>
90 </div>
91 </div>
92 </div>
93 <p>
94 The <code class="methodname">Db::get_create_dir()</code> <span>
95
96 <span>
97 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
98 exception, encapsulating one of the following non-zero errors, or return one
99 of the following non-zero errors:
100 </span>
101 </span>
102 </p>
103 <div class="sect3" lang="en" xml:lang="en">
104 <div class="titlepage">
105 <div>
106 <div>
107 <h4 class="title"><a id="idp3913576"></a>EINVAL</h4>
108 </div>
109 </div>
110 </div>
111 <p>
112 An invalid flag value or parameter was specified.
113 </p>
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="idp1925640"></a>Class</h3>
121 </div>
122 </div>
123 </div>
124 <p>
125 <a class="link" href="db.html" title="Chapter 2.  The Db Handle">Db</a>
126 </p>
127 </div>
128 <div class="sect2" lang="en" xml:lang="en">
129 <div class="titlepage">
130 <div>
131 <div>
132 <h3 class="title"><a id="idm1734760"></a>See Also</h3>
133 </div>
134 </div>
135 </div>
136 <p>
137 <a class="xref" href="db.html#dblist" title="Database and Related Methods">Database and Related Methods</a>
138 </p>
139 </div>
140 </div>
141 <div class="navfooter">
142 <hr />
143 <table width="100%" summary="Navigation footer">
144 <tr>
145 <td width="40%" align="left"><a accesskey="p" href="dbget_cachesize.html">Prev</a> </td>
146 <td width="20%" align="center">
147 <a accesskey="u" href="db.html">Up</a>
148 </td>
149 <td width="40%" align="right"> <a accesskey="n" href="dbget_dbname.html">Next</a></td>
150 </tr>
151 <tr>
152 <td width="40%" align="left" valign="top">Db::get_cachesize() </td>
153 <td width="20%" align="center">
154 <a accesskey="h" href="index.html">Home</a>
155 </td>
156 <td width="40%" align="right" valign="top"> Db::get_dbname()</td>
157 </tr>
158 </table>
159 </div>
160 </body>
161 </html>