| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 |
<meta name="generator" content="Doxygen 1.15.0"/> |
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 |
<title>Xapian: API Documentation: Xapian::Auto Namespace Reference</title> |
| 9 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 |
<script type="text/javascript" src="jquery.js"></script> |
| 11 |
<script type="text/javascript" src="dynsections.js"></script> |
| 12 |
<link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 16 |
<div id="titlearea"> |
| 17 |
<table cellspacing="0" cellpadding="0"> |
| 18 |
<tbody> |
| 19 |
<tr style="height: 56px;"> |
| 20 |
<td id="projectalign" style="padding-left: 0.5em;"> |
| 21 |
<div id="projectname">xapian-core |
| 22 |
 <span id="projectnumber">1.4.31</span> |
| 23 |
</div> |
| 24 |
</td> |
| 25 |
</tr> |
| 26 |
</tbody> |
| 27 |
</table> |
| 28 |
</div> |
| 29 |
<!-- end header part --> |
| 30 |
<!-- Generated by Doxygen 1.15.0 --> |
| 31 |
<script type="text/javascript"> |
| 32 |
$(function() { codefold.init(); }); |
| 33 |
</script> |
| 34 |
<script type="text/javascript" src="menudata.js"></script> |
| 35 |
<script type="text/javascript" src="menu.js"></script> |
| 36 |
<script type="text/javascript"> |
| 37 |
$(function() { |
| 38 |
initMenu('',false,false,'search.php','Search',false); |
| 39 |
}); |
| 40 |
</script> |
| 41 |
<div id="main-nav"></div> |
| 42 |
<div id="nav-path" class="navpath"> |
| 43 |
<ul> |
| 44 |
<li class="navelem"><a href="namespaceXapian.html">Xapian</a></li><li class="navelem"><a href="namespaceXapian_1_1Auto.html">Auto</a></li> </ul> |
| 45 |
</div> |
| 46 |
</div><!-- top --> |
| 47 |
<div id="doc-content"> |
| 48 |
<div class="header"> |
| 49 |
<div class="summary"> |
| 50 |
<a href="#func-members">Functions</a> </div> |
| 51 |
<div class="headertitle"><div class="title">Xapian::Auto Namespace Reference</div></div> |
| 52 |
</div><!--header--> |
| 53 |
<div class="contents"> |
| 54 |
|
| 55 |
<p><a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> factory functions which determine the database type automatically. |
| 56 |
<a href="#details">More...</a></p> |
| 57 |
<table class="memberdecls"> |
| 58 |
<tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a> |
| 59 |
Functions</h2></td></tr> |
| 60 |
<tr class="memitem:a061dd41e3c877bf094251d25975fe3ee" id="r_a061dd41e3c877bf094251d25975fe3ee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1Database.html">Database</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a061dd41e3c877bf094251d25975fe3ee">open_stub</a> (const std::string &file)</td></tr> |
| 61 |
<tr class="memdesc:a061dd41e3c877bf094251d25975fe3ee"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> object for a stub database file. <br /></td></tr> |
| 62 |
<tr class="memitem:a299894005d7f0996d113d87da285ea8c" id="r_a299894005d7f0996d113d87da285ea8c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1WritableDatabase.html">WritableDatabase</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a299894005d7f0996d113d87da285ea8c">open_stub</a> (const std::string &file, int action)</td></tr> |
| 63 |
<tr class="memdesc:a299894005d7f0996d113d87da285ea8c"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1WritableDatabase.html" title="This class provides read/write access to a database.">WritableDatabase</a> object for a stub database file. <br /></td></tr> |
| 64 |
</table> |
| 65 |
<a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2> |
| 66 |
<div class="textblock"><p><a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> factory functions which determine the database type automatically. </p> |
| 67 |
</div><a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2> |
| 68 |
<a id="a061dd41e3c877bf094251d25975fe3ee" name="a061dd41e3c877bf094251d25975fe3ee"></a> |
| 69 |
<h2 class="memtitle"><span class="permalink"><a href="#a061dd41e3c877bf094251d25975fe3ee">◆ </a></span>open_stub() <span class="overload">[1/2]</span></h2> |
| 70 |
|
| 71 |
<div class="memitem"> |
| 72 |
<div class="memproto"> |
| 73 |
<table class="mlabels"> |
| 74 |
<tr> |
| 75 |
<td class="mlabels-left"> |
| 76 |
<table class="memname"> |
| 77 |
<tr> |
| 78 |
<td class="memname"><a class="el" href="classXapian_1_1Database.html">Database</a> Xapian::Auto::open_stub </td> |
| 79 |
<td>(</td> |
| 80 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>file</em></span></td><td>)</td> |
| 81 |
<td></td> |
| 82 |
</tr> |
| 83 |
</table> |
| 84 |
</td> |
| 85 |
<td class="mlabels-right"> |
| 86 |
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td> |
| 87 |
</tr> |
| 88 |
</table> |
| 89 |
</div><div class="memdoc"> |
| 90 |
|
| 91 |
<p>Construct a <a class="el" href="classXapian_1_1Database.html" title="This class is used to access a database, or a group of databases.">Database</a> object for a stub database file. </p> |
| 92 |
<p>The stub database file contains serialised parameters for one or more databases.</p> |
| 93 |
<dl class="params"><dt>Parameters</dt><dd> |
| 94 |
<table class="params"> |
| 95 |
<tr><td class="paramname">file</td><td>pathname of the stub database file. </td></tr> |
| 96 |
</table> |
| 97 |
</dd> |
| 98 |
</dl> |
| 99 |
|
| 100 |
<p class="reference">References <a class="el" href="namespaceXapian.html#a5299fb3122d20bcb29f697fdcb2fea22">Xapian::DB_BACKEND_STUB</a>.</p> |
| 101 |
|
| 102 |
</div> |
| 103 |
</div> |
| 104 |
<a id="a299894005d7f0996d113d87da285ea8c" name="a299894005d7f0996d113d87da285ea8c"></a> |
| 105 |
<h2 class="memtitle"><span class="permalink"><a href="#a299894005d7f0996d113d87da285ea8c">◆ </a></span>open_stub() <span class="overload">[2/2]</span></h2> |
| 106 |
|
| 107 |
<div class="memitem"> |
| 108 |
<div class="memproto"> |
| 109 |
<table class="mlabels"> |
| 110 |
<tr> |
| 111 |
<td class="mlabels-left"> |
| 112 |
<table class="memname"> |
| 113 |
<tr> |
| 114 |
<td class="memname"><a class="el" href="classXapian_1_1WritableDatabase.html">WritableDatabase</a> Xapian::Auto::open_stub </td> |
| 115 |
<td>(</td> |
| 116 |
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>file</em></span>, </td> |
| 117 |
</tr> |
| 118 |
<tr> |
| 119 |
<td class="paramkey"></td> |
| 120 |
<td></td> |
| 121 |
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>action</em></span> )</td> |
| 122 |
</tr> |
| 123 |
</table> |
| 124 |
</td> |
| 125 |
<td class="mlabels-right"> |
| 126 |
<span class="mlabels"><span class="mlabel inline">inline</span></span> </td> |
| 127 |
</tr> |
| 128 |
</table> |
| 129 |
</div><div class="memdoc"> |
| 130 |
|
| 131 |
<p>Construct a <a class="el" href="classXapian_1_1WritableDatabase.html" title="This class provides read/write access to a database.">WritableDatabase</a> object for a stub database file. </p> |
| 132 |
<p>The stub database file must contain serialised parameters for exactly one database.</p> |
| 133 |
<dl class="params"><dt>Parameters</dt><dd> |
| 134 |
<table class="params"> |
| 135 |
<tr><td class="paramname">file</td><td>pathname of the stub database file. </td></tr> |
| 136 |
<tr><td class="paramname">action</td><td>determines handling of existing/non-existing database:<ul> |
| 137 |
<li><a class="el" href="namespaceXapian.html#a1236aaa6a3d7a37a4c6b95439e449f7a" title="Create a new database.">Xapian::DB_CREATE</a> fail if database already exist, otherwise create new database.</li> |
| 138 |
<li><a class="el" href="namespaceXapian.html#a3d32111900603ce02b8c8467b9c5bacb" title="Create database if it doesn't already exist.">Xapian::DB_CREATE_OR_OPEN</a> open existing database, or create new database if none exists.</li> |
| 139 |
<li><a class="el" href="namespaceXapian.html#afbc13e6712a12dcfd0c048242fc313ed" title="Create database if it doesn't already exist, or overwrite if it does.">Xapian::DB_CREATE_OR_OVERWRITE</a> overwrite existing database, or create new database if none exists.</li> |
| 140 |
<li><a class="el" href="namespaceXapian.html#a54521467b649894bdc411f4c35e56ac3" title="Open an existing database.">Xapian::DB_OPEN</a> open existing database, failing if none exists. </li> |
| 141 |
</ul> |
| 142 |
</td></tr> |
| 143 |
</table> |
| 144 |
</dd> |
| 145 |
</dl> |
| 146 |
|
| 147 |
<p class="reference">References <a class="el" href="namespaceXapian.html#a5299fb3122d20bcb29f697fdcb2fea22">Xapian::DB_BACKEND_STUB</a>.</p> |
| 148 |
|
| 149 |
</div> |
| 150 |
</div> |
| 151 |
</div><!-- contents --> |
| 152 |
<!-- start footer part --> |
| 153 |
<hr class="footer"/><address class="footer"><small> |
| 154 |
Generated by <a href="https://www.doxygen.org/">Doxygen 1.15.0</a> |
| 155 |
</small></address> |
| 156 |
</body> |
| 157 |
</html> |