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_env()</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="env.html" title="Chapter 5. The DbEnv Handle" /> 11 <link rel="prev" href="env.html" title="Chapter 5. The DbEnv Handle" /> 12 <link rel="next" href="envadd_data_dir.html" title="DbEnv::add_data_dir()" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Db::get_env()</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="env.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 5. 23 The DbEnv Handle 24 </th> 25 <td width="20%" align="right"> <a accesskey="n" href="envadd_data_dir.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="dbgetenv"></a>Db::get_env()</h2> 35 </div> 36 </div> 37 </div> 38 <pre class="programlisting">#include <db_cxx.h> 39 40DbEnv * 41Db::get_env();</pre> 42 <p> 43 The <code class="methodname">Db::get_env()</code> method returns the handle for the database 44 environment underlying the database. 45 </p> 46 <p> 47 The <code class="methodname">Db::get_env()</code> method may be called at any time during the life of 48 the application. 49 </p> 50 <div class="sect2" lang="en" xml:lang="en"> 51 <div class="titlepage"> 52 <div> 53 <div> 54 <h3 class="title"><a id="id1662434"></a>Class</h3> 55 </div> 56 </div> 57 </div> 58 <p> 59 <a class="link" href="db.html" title="Chapter 2. The Db Handle">Db</a> 60 </p> 61 </div> 62 <div class="sect2" lang="en" xml:lang="en"> 63 <div class="titlepage"> 64 <div> 65 <div> 66 <h3 class="title"><a id="id1662553"></a>See Also</h3> 67 </div> 68 </div> 69 </div> 70 <p> 71 <a class="xref" href="db.html#dblist" title="Database and Related Methods">Database and Related Methods</a> 72 </p> 73 </div> 74 </div> 75 <div class="navfooter"> 76 <hr /> 77 <table width="100%" summary="Navigation footer"> 78 <tr> 79 <td width="40%" align="left"><a accesskey="p" href="env.html">Prev</a> </td> 80 <td width="20%" align="center"> 81 <a accesskey="u" href="env.html">Up</a> 82 </td> 83 <td width="40%" align="right"> <a accesskey="n" href="envadd_data_dir.html">Next</a></td> 84 </tr> 85 <tr> 86 <td width="40%" align="left" valign="top">Chapter 5. 87 The DbEnv Handle 88 </td> 89 <td width="20%" align="center"> 90 <a accesskey="h" href="index.html">Home</a> 91 </td> 92 <td width="40%" align="right" valign="top"> DbEnv::add_data_dir()</td> 93 </tr> 94 </table> 95 </div> 96 </body> 97</html> 98