Debian Codegraph @

plus/xapidoc/classqdbm_1_1Villa.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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 <title>QDBM for C++: qdbm::Villa Class Reference</title>
6 <link href="tabs.css" rel="stylesheet" type="text/css"/>
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
8 </head>
9 <body>
10 <!-- Generated by Doxygen 1.6.3 -->
11 <div class="navigation" id="top">
12 <div class="tabs">
13 <ul>
14 <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
15 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
16 <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
17 </ul>
18 </div>
19 <div class="tabs">
20 <ul>
21 <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
22 <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
23 <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
24 </ul>
25 </div>
26 <div class="navpath"><a class="el" href="namespaceqdbm.html">qdbm</a>::<a class="el" href="classqdbm_1_1Villa.html">Villa</a>
27 </div>
28 </div>
29 <div class="contents">
30 <h1>qdbm::Villa Class Reference</h1><!-- doxytag: class="qdbm::Villa" --><!-- doxytag: inherits="qdbm::ADBM" -->
31 <p>C++ API of <a class="el" href="classqdbm_1_1Villa.html" title="C++ API of Villa, the basic API of QDBM.">Villa</a>, the basic API of QDBM.
32 <a href="#_details">More...</a></p>
33 <div class="dynheader">
34 Inheritance diagram for qdbm::Villa:</div>
35 <div class="dynsection">
36 <div class="center">
37 <img src="classqdbm_1_1Villa.png" usemap="#qdbm::Villa_map" alt=""/>
38 <map id="qdbm::Villa_map" name="qdbm::Villa_map">
39 <area href="classqdbm_1_1ADBM.html" alt="qdbm::ADBM" shape="rect" coords="0,0,84,24"/>
40 </map>
41 </div>
42 </div>
43
44 <p><a href="classqdbm_1_1Villa-members.html">List of all members.</a></p>
45 <table border="0" cellpadding="0" cellspacing="0">
46 <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
47 <tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ab7e48f936c1744a53366605a2ae1d8d8">Villa</a> (const char *name, int omode=<a class="el" href="classqdbm_1_1Villa.html#ae1e12d53353fb1a34fd3a7249f213740">Villa::OREADER</a>, VLCFUNC cmp=Villa::cmplex) throw (Villa_error)</td></tr>
48 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the database handle. <a href="#ab7e48f936c1744a53366605a2ae1d8d8"></a><br/></td></tr>
49 <tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a4fa7997ebdcc0c6d04ea460e6da3a9b5">~Villa</a> () throw ()</td></tr>
50 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Release the resources. <a href="#a4fa7997ebdcc0c6d04ea460e6da3a9b5"></a><br/></td></tr>
51 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a9a8998bd4e2278cd6a4175ba20216de0">close</a> () throw (Villa_error)</td></tr>
52 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Close the database handle. <a href="#a9a8998bd4e2278cd6a4175ba20216de0"></a><br/></td></tr>
53 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a52f993a6a042bf8f11417a00b791144a">put</a> (const char *kbuf, int ksiz, const char *vbuf, int vsiz, int dmode=<a class="el" href="classqdbm_1_1Villa.html#a3d2ebe4de4c5b61ccec9d2f7443a9422">Villa::DOVER</a>) throw (Villa_error)</td></tr>
54 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Store a record. <a href="#a52f993a6a042bf8f11417a00b791144a"></a><br/></td></tr>
55 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#af9404d9fe087e8c0b03b9310e03d5f2b">out</a> (const char *kbuf, int ksiz) throw (Villa_error)</td></tr>
56 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete a record. <a href="#af9404d9fe087e8c0b03b9310e03d5f2b"></a><br/></td></tr>
57 <tr><td class="memItemLeft" align="right" valign="top">virtual char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a445a5ec9a639c75e304772399c7e3e28">get</a> (const char *kbuf, int ksiz, int *sp=0) throw (Villa_error)</td></tr>
58 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieve a record. <a href="#a445a5ec9a639c75e304772399c7e3e28"></a><br/></td></tr>
59 <tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#abd5f53413efe1ae3f9ac13887eb1f27e">vsiz</a> (const char *kbuf, int ksiz) throw (Villa_error)</td></tr>
60 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the size of the value of a record. <a href="#abd5f53413efe1ae3f9ac13887eb1f27e"></a><br/></td></tr>
61 <tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#af1869eec7f0855721b375ddb10689c49">vnum</a> (const char *kbuf, int ksiz) throw (Villa_error)</td></tr>
62 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of records corresponding a key. <a href="#af1869eec7f0855721b375ddb10689c49"></a><br/></td></tr>
63 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a024d727d09de7a4e457b7a79ed04d915">curfirst</a> () throw (Villa_error)</td></tr>
64 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move the cursor to the first record. <a href="#a024d727d09de7a4e457b7a79ed04d915"></a><br/></td></tr>
65 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#afca8bc31b980645480f5dbce5f74c3ed">curlast</a> () throw (Villa_error)</td></tr>
66 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move the cursor to the last record. <a href="#afca8bc31b980645480f5dbce5f74c3ed"></a><br/></td></tr>
67 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a17c9ed17ffea0dfcaa59ab7a7e2257b5">curprev</a> () throw (Villa_error)</td></tr>
68 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move the cursor to the previous record. <a href="#a17c9ed17ffea0dfcaa59ab7a7e2257b5"></a><br/></td></tr>
69 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ac859238ca73660a0e8458234996fecd7">curnext</a> () throw (Villa_error)</td></tr>
70 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move the cursor to the next record. <a href="#ac859238ca73660a0e8458234996fecd7"></a><br/></td></tr>
71 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#aedca9b4c7e0ca4e482d4bd7d8b6f1ab9">curjump</a> (const char *kbuf, int ksiz, int jmode=<a class="el" href="classqdbm_1_1Villa.html#a70bec277a0394ba241d568d54d058a42">Villa::JFORWARD</a>) throw (Villa_error)</td></tr>
72 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move the cursor to a position around a record. <a href="#aedca9b4c7e0ca4e482d4bd7d8b6f1ab9"></a><br/></td></tr>
73 <tr><td class="memItemLeft" align="right" valign="top">virtual char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a31266ce48e19672262f1e5b45f4257b5">curkey</a> (int *sp=0) throw (Villa_error)</td></tr>
74 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the key of the record where the cursor is. <a href="#a31266ce48e19672262f1e5b45f4257b5"></a><br/></td></tr>
75 <tr><td class="memItemLeft" align="right" valign="top">virtual char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a7315b12c26280eb4f601b4179eb68f36">curval</a> (int *sp=0) throw (Villa_error)</td></tr>
76 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the value of the record where the cursor is. <a href="#a7315b12c26280eb4f601b4179eb68f36"></a><br/></td></tr>
77 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a0cc98407cf9b1c2710e254cf02f57f6f">curput</a> (const char *vbuf, int vsiz, int cpmode=<a class="el" href="classqdbm_1_1Villa.html#a621759a7db91f6740bc97563c3877f48">Villa::CPCURRENT</a>) throw (Villa_error)</td></tr>
78 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Insert a record around the cursor. <a href="#a0cc98407cf9b1c2710e254cf02f57f6f"></a><br/></td></tr>
79 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a269a4d1d31fa27fb96fcfc9d975279a8">curout</a> () throw (Villa_error)</td></tr>
80 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete the record where the cursor is. <a href="#a269a4d1d31fa27fb96fcfc9d975279a8"></a><br/></td></tr>
81 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a0134319c8837b3975f669a1b205aa59c">settuning</a> (int lrecmax, int nidxmax, int lcnum, int ncnum) throw (Villa_error)</td></tr>
82 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the tuning parameters for performance. <a href="#a0134319c8837b3975f669a1b205aa59c"></a><br/></td></tr>
83 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#aadf475dedb9a114ef7471c1a8394c629">sync</a> () throw (Villa_error)</td></tr>
84 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Synchronize updating contents with the file and the device. <a href="#aadf475dedb9a114ef7471c1a8394c629"></a><br/></td></tr>
85 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a178364b4ab1e9c6a444c110995db5206">optimize</a> () throw (Villa_error)</td></tr>
86 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Optimize a database. <a href="#a178364b4ab1e9c6a444c110995db5206"></a><br/></td></tr>
87 <tr><td class="memItemLeft" align="right" valign="top">virtual char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a8edea5deb079856384bf74902bc36509">name</a> () throw (Villa_error)</td></tr>
88 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the name of the database. <a href="#a8edea5deb079856384bf74902bc36509"></a><br/></td></tr>
89 <tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#af311742793824a0bb22f1299db54a563">fsiz</a> () throw (Villa_error)</td></tr>
90 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the size of the database file. <a href="#af311742793824a0bb22f1299db54a563"></a><br/></td></tr>
91 <tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a2206bdc2c9fed4083dcaac44045877db">lnum</a> () throw (Villa_error)</td></tr>
92 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of the leaf nodes of B+ tree. <a href="#a2206bdc2c9fed4083dcaac44045877db"></a><br/></td></tr>
93 <tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a5f82fe416f3107dd6a80ccb26c87a7fd">nnum</a> () throw (Villa_error)</td></tr>
94 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of the non-leaf nodes of B+ tree. <a href="#a5f82fe416f3107dd6a80ccb26c87a7fd"></a><br/></td></tr>
95 <tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a4b5b5ce2cf4bb6eb4e175a4c9844e745">rnum</a> () throw (Villa_error)</td></tr>
96 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of the records stored in a database. <a href="#a4b5b5ce2cf4bb6eb4e175a4c9844e745"></a><br/></td></tr>
97 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a9f1a2cf8d141a4a889a53b88de8f45a0">writable</a> () throw (Villa_error)</td></tr>
98 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check whether the database handle is a writer or not. <a href="#a9f1a2cf8d141a4a889a53b88de8f45a0"></a><br/></td></tr>
99 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a21670d562a7add1a851dea429c7f9cdb">fatalerror</a> () throw (Villa_error)</td></tr>
100 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check whether the database has a fatal error or not. <a href="#a21670d562a7add1a851dea429c7f9cdb"></a><br/></td></tr>
101 <tr><td class="memItemLeft" align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a2f6e1cf8fad4a305d14ea33a6c9454db">inode</a> () throw (Villa_error)</td></tr>
102 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the inode number of the database file. <a href="#a2f6e1cf8fad4a305d14ea33a6c9454db"></a><br/></td></tr>
103 <tr><td class="memItemLeft" align="right" valign="top">virtual time_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#acc20d567d72b4a2c0984e7f420a6312c">mtime</a> () throw (Villa_error)</td></tr>
104 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the last modified time of the database. <a href="#acc20d567d72b4a2c0984e7f420a6312c"></a><br/></td></tr>
105 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a559b21eea9caeceedd57cd822db9f409">tranbegin</a> () throw (Villa_error)</td></tr>
106 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Begin the transaction. <a href="#a559b21eea9caeceedd57cd822db9f409"></a><br/></td></tr>
107 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a6fb5f2a5eb77cdb317b8d416c833ba2c">trancommit</a> () throw (Villa_error)</td></tr>
108 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Commit the transaction. <a href="#a6fb5f2a5eb77cdb317b8d416c833ba2c"></a><br/></td></tr>
109 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ad089cf6b1268b10a001872d464f87647">tranabort</a> () throw (Villa_error)</td></tr>
110 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Abort the transaction. <a href="#ad089cf6b1268b10a001872d464f87647"></a><br/></td></tr>
111 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a54ce0c14d1404f6e94eb1014eaa39983">storerec</a> (const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &amp;key, const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &amp;val, bool replace=true) throw (Villa_error)</td></tr>
112 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Store a record. <a href="#a54ce0c14d1404f6e94eb1014eaa39983"></a><br/></td></tr>
113 <tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a882fa32b1717020f71887dc3755974f4">deleterec</a> (const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &amp;key) throw (Villa_error)</td></tr>
114 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Delete a record. <a href="#a882fa32b1717020f71887dc3755974f4"></a><br/></td></tr>
115 <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a802ec4bded4a2c7c82f92135dc06eaee">fetchrec</a> (const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &amp;key) throw (Villa_error)</td></tr>
116 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fetch a record. <a href="#a802ec4bded4a2c7c82f92135dc06eaee"></a><br/></td></tr>
117 <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a0ae0c58823d32ce6b4d14b1ab13730dc">firstkey</a> () throw (Villa_error)</td></tr>
118 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the first key. <a href="#a0ae0c58823d32ce6b4d14b1ab13730dc"></a><br/></td></tr>
119 <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a3af1120e3735b90c6d81954a8b96b42e">nextkey</a> () throw (Villa_error)</td></tr>
120 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the next key. <a href="#a3af1120e3735b90c6d81954a8b96b42e"></a><br/></td></tr>
121 <tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ad47f50bc42329b5eba5ecd48ff0b7466">error</a> () throw (Villa_error)</td></tr>
122 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check whether a fatal error occured or not. <a href="#ad47f50bc42329b5eba5ecd48ff0b7466"></a><br/></td></tr>
123 <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
124 <tr><td class="memItemLeft" align="right" valign="top">static const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a566d8f0cf8822abda23dc1cafacf5d47">version</a> () throw ()</td></tr>
125 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the version information. <a href="#a566d8f0cf8822abda23dc1cafacf5d47"></a><br/></td></tr>
126 <tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a120a58b55367be76ebe035389cade573">remove</a> (const char *name) throw (Villa_error)</td></tr>
127 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Remove a database directory. <a href="#a120a58b55367be76ebe035389cade573"></a><br/></td></tr>
128 <tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#aeceaec757f8a746b20afb2afc9e674da">cmplex</a> (const char *aptr, int asiz, const char *bptr, int bsiz) throw ()</td></tr>
129 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare keys of two records by lexical order. <a href="#aeceaec757f8a746b20afb2afc9e674da"></a><br/></td></tr>
130 <tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#aa172ab746ca43de1982424feddc40e12">cmpint</a> (const char *aptr, int asiz, const char *bptr, int bsiz) throw ()</td></tr>
131 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare keys of two records as integers. <a href="#aa172ab746ca43de1982424feddc40e12"></a><br/></td></tr>
132 <tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#af699f81d15adb5c190f53a588e020011">cmpnum</a> (const char *aptr, int asiz, const char *bptr, int bsiz) throw ()</td></tr>
133 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare keys of two records as numbers of big endian. <a href="#af699f81d15adb5c190f53a588e020011"></a><br/></td></tr>
134 <tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a4c53a6b1510e44311c582bfdaebc7ae7">cmpdec</a> (const char *aptr, int asiz, const char *bptr, int bsiz) throw ()</td></tr>
135 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare keys of two records as decimal strings. <a href="#a4c53a6b1510e44311c582bfdaebc7ae7"></a><br/></td></tr>
136 <tr><td colspan="2"><h2>Public Attributes</h2></td></tr>
137 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab3077fee760423e09579216b650bfbf5"></a><!-- doxytag: member="qdbm::Villa::silent" ref="ab3077fee760423e09579216b650bfbf5" args="" -->
138 bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ab3077fee760423e09579216b650bfbf5">silent</a></td></tr>
139 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">whether to repress frequent exceptions <br/></td></tr>
140 <tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
141 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae54a24ce3dfdf9975e6e17dc06c655e7"></a><!-- doxytag: member="qdbm::Villa::ENOERR" ref="ae54a24ce3dfdf9975e6e17dc06c655e7" args="" -->
142 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ae54a24ce3dfdf9975e6e17dc06c655e7">ENOERR</a></td></tr>
143 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: no error <br/></td></tr>
144 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a666377be608844b1f4991310924b3288"></a><!-- doxytag: member="qdbm::Villa::EFATAL" ref="a666377be608844b1f4991310924b3288" args="" -->
145 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a666377be608844b1f4991310924b3288">EFATAL</a></td></tr>
146 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: with fatal error <br/></td></tr>
147 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a843560d42ccf2262167d3c2be61fab4a"></a><!-- doxytag: member="qdbm::Villa::EMODE" ref="a843560d42ccf2262167d3c2be61fab4a" args="" -->
148 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a843560d42ccf2262167d3c2be61fab4a">EMODE</a></td></tr>
149 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: invalid mode <br/></td></tr>
150 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9dd93cd3933fe8b514c1b74deea53e1b"></a><!-- doxytag: member="qdbm::Villa::EBROKEN" ref="a9dd93cd3933fe8b514c1b74deea53e1b" args="" -->
151 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a9dd93cd3933fe8b514c1b74deea53e1b">EBROKEN</a></td></tr>
152 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: broken database file <br/></td></tr>
153 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9f5761554137a05d99751a520e7c47cc"></a><!-- doxytag: member="qdbm::Villa::EKEEP" ref="a9f5761554137a05d99751a520e7c47cc" args="" -->
154 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a9f5761554137a05d99751a520e7c47cc">EKEEP</a></td></tr>
155 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: existing record <br/></td></tr>
156 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9711d1b0afaab12a5024d9c251dec313"></a><!-- doxytag: member="qdbm::Villa::ENOITEM" ref="a9711d1b0afaab12a5024d9c251dec313" args="" -->
157 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a9711d1b0afaab12a5024d9c251dec313">ENOITEM</a></td></tr>
158 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: no item found <br/></td></tr>
159 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeaff89b30b67cc6ec6133c273e0dbc15"></a><!-- doxytag: member="qdbm::Villa::EALLOC" ref="aeaff89b30b67cc6ec6133c273e0dbc15" args="" -->
160 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#aeaff89b30b67cc6ec6133c273e0dbc15">EALLOC</a></td></tr>
161 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: memory allocation error <br/></td></tr>
162 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac05d0ef39f45a8b25ea5df2609dbbd30"></a><!-- doxytag: member="qdbm::Villa::EMAP" ref="ac05d0ef39f45a8b25ea5df2609dbbd30" args="" -->
163 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ac05d0ef39f45a8b25ea5df2609dbbd30">EMAP</a></td></tr>
164 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: memory mapping error <br/></td></tr>
165 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79c2b9648d42d52159fbf3cde23a52bf"></a><!-- doxytag: member="qdbm::Villa::EOPEN" ref="a79c2b9648d42d52159fbf3cde23a52bf" args="" -->
166 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a79c2b9648d42d52159fbf3cde23a52bf">EOPEN</a></td></tr>
167 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: open error <br/></td></tr>
168 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5dd2522c9200d295757d27c455a92d51"></a><!-- doxytag: member="qdbm::Villa::ECLOSE" ref="a5dd2522c9200d295757d27c455a92d51" args="" -->
169 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a5dd2522c9200d295757d27c455a92d51">ECLOSE</a></td></tr>
170 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: close error <br/></td></tr>
171 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a568bcc7fdb735f4120a6f25e91eb0f06"></a><!-- doxytag: member="qdbm::Villa::ETRUNC" ref="a568bcc7fdb735f4120a6f25e91eb0f06" args="" -->
172 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a568bcc7fdb735f4120a6f25e91eb0f06">ETRUNC</a></td></tr>
173 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: trunc error <br/></td></tr>
174 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff1a8cf7294eb57da6318ed46438b82b"></a><!-- doxytag: member="qdbm::Villa::ESYNC" ref="aff1a8cf7294eb57da6318ed46438b82b" args="" -->
175 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#aff1a8cf7294eb57da6318ed46438b82b">ESYNC</a></td></tr>
176 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: sync error <br/></td></tr>
177 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd60de39872f561cb9362ccb7fdfa2c2"></a><!-- doxytag: member="qdbm::Villa::ESTAT" ref="afd60de39872f561cb9362ccb7fdfa2c2" args="" -->
178 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#afd60de39872f561cb9362ccb7fdfa2c2">ESTAT</a></td></tr>
179 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: stat error <br/></td></tr>
180 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75af509a105651e8b8cc9ed5a2a7a66f"></a><!-- doxytag: member="qdbm::Villa::ESEEK" ref="a75af509a105651e8b8cc9ed5a2a7a66f" args="" -->
181 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a75af509a105651e8b8cc9ed5a2a7a66f">ESEEK</a></td></tr>
182 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: seek error <br/></td></tr>
183 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b3923f45b1b762cd2911ccd719669c3"></a><!-- doxytag: member="qdbm::Villa::EREAD" ref="a9b3923f45b1b762cd2911ccd719669c3" args="" -->
184 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a9b3923f45b1b762cd2911ccd719669c3">EREAD</a></td></tr>
185 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: read error <br/></td></tr>
186 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a90c1b4a4ba05bc2f71c31e0621653aa5"></a><!-- doxytag: member="qdbm::Villa::EWRITE" ref="a90c1b4a4ba05bc2f71c31e0621653aa5" args="" -->
187 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a90c1b4a4ba05bc2f71c31e0621653aa5">EWRITE</a></td></tr>
188 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: write error <br/></td></tr>
189 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7ab4cbe5f48a7ad346c5d00925a15d78"></a><!-- doxytag: member="qdbm::Villa::ELOCK" ref="a7ab4cbe5f48a7ad346c5d00925a15d78" args="" -->
190 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a7ab4cbe5f48a7ad346c5d00925a15d78">ELOCK</a></td></tr>
191 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: lock error <br/></td></tr>
192 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a06d769a61f4d935412238d7e0c4e3189"></a><!-- doxytag: member="qdbm::Villa::EUNLINK" ref="a06d769a61f4d935412238d7e0c4e3189" args="" -->
193 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a06d769a61f4d935412238d7e0c4e3189">EUNLINK</a></td></tr>
194 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: unlink error <br/></td></tr>
195 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a817cf66b7174cc58dbc5a87f58b39883"></a><!-- doxytag: member="qdbm::Villa::EMKDIR" ref="a817cf66b7174cc58dbc5a87f58b39883" args="" -->
196 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a817cf66b7174cc58dbc5a87f58b39883">EMKDIR</a></td></tr>
197 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: mkdir error <br/></td></tr>
198 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf749cc5136be9e7d87016d787764f5d"></a><!-- doxytag: member="qdbm::Villa::ERMDIR" ref="abf749cc5136be9e7d87016d787764f5d" args="" -->
199 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#abf749cc5136be9e7d87016d787764f5d">ERMDIR</a></td></tr>
200 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: rmdir error <br/></td></tr>
201 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b31318af3c021ba2b7f8c91c728da54"></a><!-- doxytag: member="qdbm::Villa::EMISC" ref="a8b31318af3c021ba2b7f8c91c728da54" args="" -->
202 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a8b31318af3c021ba2b7f8c91c728da54">EMISC</a></td></tr>
203 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">error code: miscellaneous error <br/></td></tr>
204 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1e12d53353fb1a34fd3a7249f213740"></a><!-- doxytag: member="qdbm::Villa::OREADER" ref="ae1e12d53353fb1a34fd3a7249f213740" args="" -->
205 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ae1e12d53353fb1a34fd3a7249f213740">OREADER</a></td></tr>
206 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: open as a reader <br/></td></tr>
207 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac049dcfadef588158e05578debfeccd8"></a><!-- doxytag: member="qdbm::Villa::OWRITER" ref="ac049dcfadef588158e05578debfeccd8" args="" -->
208 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ac049dcfadef588158e05578debfeccd8">OWRITER</a></td></tr>
209 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: open as a writer <br/></td></tr>
210 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac1a3f1fc2773ba3e9ebb6147a40b10bb"></a><!-- doxytag: member="qdbm::Villa::OCREAT" ref="ac1a3f1fc2773ba3e9ebb6147a40b10bb" args="" -->
211 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ac1a3f1fc2773ba3e9ebb6147a40b10bb">OCREAT</a></td></tr>
212 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: writer creating <br/></td></tr>
213 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d7d67100bd4c269480f24a2fe1d1d1e"></a><!-- doxytag: member="qdbm::Villa::OTRUNC" ref="a7d7d67100bd4c269480f24a2fe1d1d1e" args="" -->
214 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a7d7d67100bd4c269480f24a2fe1d1d1e">OTRUNC</a></td></tr>
215 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: writer truncating <br/></td></tr>
216 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa8d5c4927c17d6537ac1744e17776faa"></a><!-- doxytag: member="qdbm::Villa::ONOLCK" ref="aa8d5c4927c17d6537ac1744e17776faa" args="" -->
217 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#aa8d5c4927c17d6537ac1744e17776faa">ONOLCK</a></td></tr>
218 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: open without locking <br/></td></tr>
219 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c0d4de0d965815ff36f77e1b3306eb8"></a><!-- doxytag: member="qdbm::Villa::OLCKNB" ref="a7c0d4de0d965815ff36f77e1b3306eb8" args="" -->
220 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a7c0d4de0d965815ff36f77e1b3306eb8">OLCKNB</a></td></tr>
221 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: lock without blocking <br/></td></tr>
222 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac92922cc15115496c276ba0b7803b66b"></a><!-- doxytag: member="qdbm::Villa::OZCOMP" ref="ac92922cc15115496c276ba0b7803b66b" args="" -->
223 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ac92922cc15115496c276ba0b7803b66b">OZCOMP</a></td></tr>
224 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: compress leaves with ZLIB <br/></td></tr>
225 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a916bd1b54bff8bebf59ace064ce5a396"></a><!-- doxytag: member="qdbm::Villa::OYCOMP" ref="a916bd1b54bff8bebf59ace064ce5a396" args="" -->
226 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a916bd1b54bff8bebf59ace064ce5a396">OYCOMP</a></td></tr>
227 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: compress leaves with LZO <br/></td></tr>
228 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70ccd78e2106474db5a408016e322d9b"></a><!-- doxytag: member="qdbm::Villa::OXCOMP" ref="a70ccd78e2106474db5a408016e322d9b" args="" -->
229 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a70ccd78e2106474db5a408016e322d9b">OXCOMP</a></td></tr>
230 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">open mode: compress leaves with BZIP2 <br/></td></tr>
231 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d2ebe4de4c5b61ccec9d2f7443a9422"></a><!-- doxytag: member="qdbm::Villa::DOVER" ref="a3d2ebe4de4c5b61ccec9d2f7443a9422" args="" -->
232 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a3d2ebe4de4c5b61ccec9d2f7443a9422">DOVER</a></td></tr>
233 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">write mode: overwrite the existing value <br/></td></tr>
234 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa39cd2615dbbeeb50998588b5f9d383c"></a><!-- doxytag: member="qdbm::Villa::DKEEP" ref="aa39cd2615dbbeeb50998588b5f9d383c" args="" -->
235 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#aa39cd2615dbbeeb50998588b5f9d383c">DKEEP</a></td></tr>
236 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">write mode: keep the existing value <br/></td></tr>
237 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a04ce8905ff2d3e1f5645b78a8846362b"></a><!-- doxytag: member="qdbm::Villa::DCAT" ref="a04ce8905ff2d3e1f5645b78a8846362b" args="" -->
238 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a04ce8905ff2d3e1f5645b78a8846362b">DCAT</a></td></tr>
239 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">write mode: concatenate values <br/></td></tr>
240 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43c7d4b27cf33e52c6e3c098de9dfe84"></a><!-- doxytag: member="qdbm::Villa::DDUP" ref="a43c7d4b27cf33e52c6e3c098de9dfe84" args="" -->
241 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a43c7d4b27cf33e52c6e3c098de9dfe84">DDUP</a></td></tr>
242 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">write mode: allow duplication of keys <br/></td></tr>
243 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a537fdcb15d728bb74bb1b937c06aef8b"></a><!-- doxytag: member="qdbm::Villa::DDUPR" ref="a537fdcb15d728bb74bb1b937c06aef8b" args="" -->
244 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a537fdcb15d728bb74bb1b937c06aef8b">DDUPR</a></td></tr>
245 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">write mode: allow duplication with reverse order <br/></td></tr>
246 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70bec277a0394ba241d568d54d058a42"></a><!-- doxytag: member="qdbm::Villa::JFORWARD" ref="a70bec277a0394ba241d568d54d058a42" args="" -->
247 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a70bec277a0394ba241d568d54d058a42">JFORWARD</a></td></tr>
248 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">jump mode: step forward <br/></td></tr>
249 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a089c0af671db80cb5c910094f94a753e"></a><!-- doxytag: member="qdbm::Villa::JBACKWARD" ref="a089c0af671db80cb5c910094f94a753e" args="" -->
250 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a089c0af671db80cb5c910094f94a753e">JBACKWARD</a></td></tr>
251 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">jump mode: step backward <br/></td></tr>
252 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a621759a7db91f6740bc97563c3877f48"></a><!-- doxytag: member="qdbm::Villa::CPCURRENT" ref="a621759a7db91f6740bc97563c3877f48" args="" -->
253 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a621759a7db91f6740bc97563c3877f48">CPCURRENT</a></td></tr>
254 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">insertion mode: overwrite the current record <br/></td></tr>
255 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad09d697934ae0a4c5aa75655c489b240"></a><!-- doxytag: member="qdbm::Villa::CPBEFORE" ref="ad09d697934ae0a4c5aa75655c489b240" args="" -->
256 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#ad09d697934ae0a4c5aa75655c489b240">CPBEFORE</a></td></tr>
257 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">insertion mode: insert before the current record <br/></td></tr>
258 <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e940ea8450059d2b65f8b12d3bc5e04"></a><!-- doxytag: member="qdbm::Villa::CPAFTER" ref="a1e940ea8450059d2b65f8b12d3bc5e04" args="" -->
259 static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Villa.html#a1e940ea8450059d2b65f8b12d3bc5e04">CPAFTER</a></td></tr>
260 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">insertion mode: insert after the current record <br/></td></tr>
261 </table>
262 <hr/><a name="_details"></a><h2>Detailed Description</h2>
263 <p>C++ API of <a class="el" href="classqdbm_1_1Villa.html" title="C++ API of Villa, the basic API of QDBM.">Villa</a>, the basic API of QDBM. </p>
264 <hr/><h2>Constructor &amp; Destructor Documentation</h2>
265 <a class="anchor" id="ab7e48f936c1744a53366605a2ae1d8d8"></a><!-- doxytag: member="qdbm::Villa::Villa" ref="ab7e48f936c1744a53366605a2ae1d8d8" args="(const char *name, int omode=Villa::OREADER, VLCFUNC cmp=Villa::cmplex)" -->
266 <div class="memitem">
267 <div class="memproto">
268 <table class="memname">
269 <tr>
270 <td class="memname">qdbm::Villa::Villa </td>
271 <td>(</td>
272 <td class="paramtype">const char *&nbsp;</td>
273 <td class="paramname"> <em>name</em>, </td>
274 </tr>
275 <tr>
276 <td class="paramkey"></td>
277 <td></td>
278 <td class="paramtype">int&nbsp;</td>
279 <td class="paramname"> <em>omode</em> = <code><a class="el" href="classqdbm_1_1Villa.html#ae1e12d53353fb1a34fd3a7249f213740">Villa::OREADER</a></code>, </td>
280 </tr>
281 <tr>
282 <td class="paramkey"></td>
283 <td></td>
284 <td class="paramtype">VLCFUNC&nbsp;</td>
285 <td class="paramname"> <em>cmp</em> = <code>Villa::cmplex</code></td><td>&nbsp;</td>
286 </tr>
287 <tr>
288 <td></td>
289 <td>)</td>
290 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)</td>
291 </tr>
292 </table>
293 </div>
294 <div class="memdoc">
295
296 <p>Get the database handle. </p>
297 <dl><dt><b>Parameters:</b></dt><dd>
298 <table border="0" cellspacing="2" cellpadding="0">
299 <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>the name of a database file. </td></tr>
300 <tr><td valign="top"></td><td valign="top"><em>omode</em>&nbsp;</td><td>the connection mode: `VillaOWRITER' as a writer, `VillaOREADER' as a reader. If the mode is `VillaOWRITER', the following may be added by bitwise or: `VillaOCREAT', which means it creates a new database if not exist, `VillaOTRUNC', which means it creates a new database regardless if one exists, `VillaOZCOMP', which means leaves in the database are compressed with ZLIB, `VillaOYCOMP', which means leaves in the database are compressed with LZO, `VillaOXCOMP', which means leaves in the database are compressed with BZIP2. Both of `VillaOREADER' and `VillaOWRITER' can be added to by bitwise or: `VillaONOLCK', which means it opens a database file without file locking, or `VillaOLCKNB', which means locking is performed without blocking. </td></tr>
301 <tr><td valign="top"></td><td valign="top"><em>cmp</em>&nbsp;</td><td>the comparing function: `Villacmplex' comparing keys in lexical order, `Villacmpint' comparing keys as objects of `int' in native byte order, `Villacmpnum' comparing keys as numbers of big endian, `Villacmpdec' comparing keys as decimal strings. Any function compatible with them can be assigned to the comparing function. The comparing function should be kept same in the life of a database. </td></tr>
302 </table>
303 </dd>
304 </dl>
305 <dl><dt><b>Exceptions:</b></dt><dd>
306 <table border="0" cellspacing="2" cellpadding="0">
307 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
308 </table>
309 </dd>
310 </dl>
311 <dl class="note"><dt><b>Note:</b></dt><dd>While connecting as a writer, an exclusive lock is invoked to the database file. While connecting as a reader, a shared lock is invoked to the database file. The thread blocks until the lock is achieved. `VillaOZCOMP', `VillaOYCOMP', and `VillaOXCOMP' are available only if QDBM was built each with ZLIB, LZO, and BZIP2 enabled. If `VillaONOLCK' is used, the application is responsible for exclusion control. </dd></dl>
312
313 </div>
314 </div>
315 <a class="anchor" id="a4fa7997ebdcc0c6d04ea460e6da3a9b5"></a><!-- doxytag: member="qdbm::Villa::~Villa" ref="a4fa7997ebdcc0c6d04ea460e6da3a9b5" args="()" -->
316 <div class="memitem">
317 <div class="memproto">
318 <table class="memname">
319 <tr>
320 <td class="memname">virtual qdbm::Villa::~Villa </td>
321 <td>(</td>
322 <td class="paramname"></td>
323 <td>&nbsp;)&nbsp;</td>
324 <td> throw ()<code> [virtual]</code></td>
325 </tr>
326 </table>
327 </div>
328 <div class="memdoc">
329
330 <p>Release the resources. </p>
331 <dl class="note"><dt><b>Note:</b></dt><dd>If the database handle is not closed yet, it is closed. </dd></dl>
332
333 </div>
334 </div>
335 <hr/><h2>Member Function Documentation</h2>
336 <a class="anchor" id="a9a8998bd4e2278cd6a4175ba20216de0"></a><!-- doxytag: member="qdbm::Villa::close" ref="a9a8998bd4e2278cd6a4175ba20216de0" args="()" -->
337 <div class="memitem">
338 <div class="memproto">
339 <table class="memname">
340 <tr>
341 <td class="memname">virtual void qdbm::Villa::close </td>
342 <td>(</td>
343 <td class="paramname"></td>
344 <td>&nbsp;)&nbsp;</td>
345 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
346 </tr>
347 </table>
348 </div>
349 <div class="memdoc">
350
351 <p>Close the database handle. </p>
352 <dl><dt><b>Exceptions:</b></dt><dd>
353 <table border="0" cellspacing="2" cellpadding="0">
354 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
355 </table>
356 </dd>
357 </dl>
358 <dl class="note"><dt><b>Note:</b></dt><dd>Updating a database is assured to be written when the handle is closed. If a writer opens a database but does not close it appropriately, the database will be broken. If the transaction is activated and not committed, it is aborted. </dd></dl>
359
360 <p>Implements <a class="el" href="classqdbm_1_1ADBM.html#afe282ce1168c9a437b74e6f90e21db3d">qdbm::ADBM</a>.</p>
361
362 </div>
363 </div>
364 <a class="anchor" id="a4c53a6b1510e44311c582bfdaebc7ae7"></a><!-- doxytag: member="qdbm::Villa::cmpdec" ref="a4c53a6b1510e44311c582bfdaebc7ae7" args="(const char *aptr, int asiz, const char *bptr, int bsiz)" -->
365 <div class="memitem">
366 <div class="memproto">
367 <table class="memname">
368 <tr>
369 <td class="memname">static int qdbm::Villa::cmpdec </td>
370 <td>(</td>
371 <td class="paramtype">const char *&nbsp;</td>
372 <td class="paramname"> <em>aptr</em>, </td>
373 </tr>
374 <tr>
375 <td class="paramkey"></td>
376 <td></td>
377 <td class="paramtype">int&nbsp;</td>
378 <td class="paramname"> <em>asiz</em>, </td>
379 </tr>
380 <tr>
381 <td class="paramkey"></td>
382 <td></td>
383 <td class="paramtype">const char *&nbsp;</td>
384 <td class="paramname"> <em>bptr</em>, </td>
385 </tr>
386 <tr>
387 <td class="paramkey"></td>
388 <td></td>
389 <td class="paramtype">int&nbsp;</td>
390 <td class="paramname"> <em>bsiz</em></td><td>&nbsp;</td>
391 </tr>
392 <tr>
393 <td></td>
394 <td>)</td>
395 <td></td><td></td><td> throw ()<code> [static]</code></td>
396 </tr>
397 </table>
398 </div>
399 <div class="memdoc">
400
401 <p>Compare keys of two records as decimal strings. </p>
402 <dl><dt><b>Parameters:</b></dt><dd>
403 <table border="0" cellspacing="2" cellpadding="0">
404 <tr><td valign="top"></td><td valign="top"><em>aptr</em>&nbsp;</td><td>the pointer to the region of one key. </td></tr>
405 <tr><td valign="top"></td><td valign="top"><em>asiz</em>&nbsp;</td><td>the size of the region of one key. </td></tr>
406 <tr><td valign="top"></td><td valign="top"><em>bptr</em>&nbsp;</td><td>the pointer to the region of the other key. </td></tr>
407 <tr><td valign="top"></td><td valign="top"><em>bsiz</em>&nbsp;</td><td>the size of the region of the other key. </td></tr>
408 </table>
409 </dd>
410 </dl>
411 <dl class="return"><dt><b>Returns:</b></dt><dd>positive if the former is big, negative if the latter is big, 0 if both are equivalent. </dd></dl>
412
413 </div>
414 </div>
415 <a class="anchor" id="aa172ab746ca43de1982424feddc40e12"></a><!-- doxytag: member="qdbm::Villa::cmpint" ref="aa172ab746ca43de1982424feddc40e12" args="(const char *aptr, int asiz, const char *bptr, int bsiz)" -->
416 <div class="memitem">
417 <div class="memproto">
418 <table class="memname">
419 <tr>
420 <td class="memname">static int qdbm::Villa::cmpint </td>
421 <td>(</td>
422 <td class="paramtype">const char *&nbsp;</td>
423 <td class="paramname"> <em>aptr</em>, </td>
424 </tr>
425 <tr>
426 <td class="paramkey"></td>
427 <td></td>
428 <td class="paramtype">int&nbsp;</td>
429 <td class="paramname"> <em>asiz</em>, </td>
430 </tr>
431 <tr>
432 <td class="paramkey"></td>
433 <td></td>
434 <td class="paramtype">const char *&nbsp;</td>
435 <td class="paramname"> <em>bptr</em>, </td>
436 </tr>
437 <tr>
438 <td class="paramkey"></td>
439 <td></td>
440 <td class="paramtype">int&nbsp;</td>
441 <td class="paramname"> <em>bsiz</em></td><td>&nbsp;</td>
442 </tr>
443 <tr>
444 <td></td>
445 <td>)</td>
446 <td></td><td></td><td> throw ()<code> [static]</code></td>
447 </tr>
448 </table>
449 </div>
450 <div class="memdoc">
451
452 <p>Compare keys of two records as integers. </p>
453 <dl><dt><b>Parameters:</b></dt><dd>
454 <table border="0" cellspacing="2" cellpadding="0">
455 <tr><td valign="top"></td><td valign="top"><em>aptr</em>&nbsp;</td><td>the pointer to the region of one key. </td></tr>
456 <tr><td valign="top"></td><td valign="top"><em>asiz</em>&nbsp;</td><td>the size of the region of one key. </td></tr>
457 <tr><td valign="top"></td><td valign="top"><em>bptr</em>&nbsp;</td><td>the pointer to the region of the other key. </td></tr>
458 <tr><td valign="top"></td><td valign="top"><em>bsiz</em>&nbsp;</td><td>the size of the region of the other key. </td></tr>
459 </table>
460 </dd>
461 </dl>
462 <dl class="return"><dt><b>Returns:</b></dt><dd>positive if the former is big, negative if the latter is big, 0 if both are equivalent. </dd></dl>
463
464 </div>
465 </div>
466 <a class="anchor" id="aeceaec757f8a746b20afb2afc9e674da"></a><!-- doxytag: member="qdbm::Villa::cmplex" ref="aeceaec757f8a746b20afb2afc9e674da" args="(const char *aptr, int asiz, const char *bptr, int bsiz)" -->
467 <div class="memitem">
468 <div class="memproto">
469 <table class="memname">
470 <tr>
471 <td class="memname">static int qdbm::Villa::cmplex </td>
472 <td>(</td>
473 <td class="paramtype">const char *&nbsp;</td>
474 <td class="paramname"> <em>aptr</em>, </td>
475 </tr>
476 <tr>
477 <td class="paramkey"></td>
478 <td></td>
479 <td class="paramtype">int&nbsp;</td>
480 <td class="paramname"> <em>asiz</em>, </td>
481 </tr>
482 <tr>
483 <td class="paramkey"></td>
484 <td></td>
485 <td class="paramtype">const char *&nbsp;</td>
486 <td class="paramname"> <em>bptr</em>, </td>
487 </tr>
488 <tr>
489 <td class="paramkey"></td>
490 <td></td>
491 <td class="paramtype">int&nbsp;</td>
492 <td class="paramname"> <em>bsiz</em></td><td>&nbsp;</td>
493 </tr>
494 <tr>
495 <td></td>
496 <td>)</td>
497 <td></td><td></td><td> throw ()<code> [static]</code></td>
498 </tr>
499 </table>
500 </div>
501 <div class="memdoc">
502
503 <p>Compare keys of two records by lexical order. </p>
504 <dl><dt><b>Parameters:</b></dt><dd>
505 <table border="0" cellspacing="2" cellpadding="0">
506 <tr><td valign="top"></td><td valign="top"><em>aptr</em>&nbsp;</td><td>the pointer to the region of one key. </td></tr>
507 <tr><td valign="top"></td><td valign="top"><em>asiz</em>&nbsp;</td><td>the size of the region of one key. </td></tr>
508 <tr><td valign="top"></td><td valign="top"><em>bptr</em>&nbsp;</td><td>the pointer to the region of the other key. </td></tr>
509 <tr><td valign="top"></td><td valign="top"><em>bsiz</em>&nbsp;</td><td>the size of the region of the other key. </td></tr>
510 </table>
511 </dd>
512 </dl>
513 <dl class="return"><dt><b>Returns:</b></dt><dd>positive if the former is big, negative if the latter is big, 0 if both are equivalent. </dd></dl>
514
515 </div>
516 </div>
517 <a class="anchor" id="af699f81d15adb5c190f53a588e020011"></a><!-- doxytag: member="qdbm::Villa::cmpnum" ref="af699f81d15adb5c190f53a588e020011" args="(const char *aptr, int asiz, const char *bptr, int bsiz)" -->
518 <div class="memitem">
519 <div class="memproto">
520 <table class="memname">
521 <tr>
522 <td class="memname">static int qdbm::Villa::cmpnum </td>
523 <td>(</td>
524 <td class="paramtype">const char *&nbsp;</td>
525 <td class="paramname"> <em>aptr</em>, </td>
526 </tr>
527 <tr>
528 <td class="paramkey"></td>
529 <td></td>
530 <td class="paramtype">int&nbsp;</td>
531 <td class="paramname"> <em>asiz</em>, </td>
532 </tr>
533 <tr>
534 <td class="paramkey"></td>
535 <td></td>
536 <td class="paramtype">const char *&nbsp;</td>
537 <td class="paramname"> <em>bptr</em>, </td>
538 </tr>
539 <tr>
540 <td class="paramkey"></td>
541 <td></td>
542 <td class="paramtype">int&nbsp;</td>
543 <td class="paramname"> <em>bsiz</em></td><td>&nbsp;</td>
544 </tr>
545 <tr>
546 <td></td>
547 <td>)</td>
548 <td></td><td></td><td> throw ()<code> [static]</code></td>
549 </tr>
550 </table>
551 </div>
552 <div class="memdoc">
553
554 <p>Compare keys of two records as numbers of big endian. </p>
555 <dl><dt><b>Parameters:</b></dt><dd>
556 <table border="0" cellspacing="2" cellpadding="0">
557 <tr><td valign="top"></td><td valign="top"><em>aptr</em>&nbsp;</td><td>the pointer to the region of one key. </td></tr>
558 <tr><td valign="top"></td><td valign="top"><em>asiz</em>&nbsp;</td><td>the size of the region of one key. </td></tr>
559 <tr><td valign="top"></td><td valign="top"><em>bptr</em>&nbsp;</td><td>the pointer to the region of the other key. </td></tr>
560 <tr><td valign="top"></td><td valign="top"><em>bsiz</em>&nbsp;</td><td>the size of the region of the other key. </td></tr>
561 </table>
562 </dd>
563 </dl>
564 <dl class="return"><dt><b>Returns:</b></dt><dd>positive if the former is big, negative if the latter is big, 0 if both are equivalent. </dd></dl>
565
566 </div>
567 </div>
568 <a class="anchor" id="a024d727d09de7a4e457b7a79ed04d915"></a><!-- doxytag: member="qdbm::Villa::curfirst" ref="a024d727d09de7a4e457b7a79ed04d915" args="()" -->
569 <div class="memitem">
570 <div class="memproto">
571 <table class="memname">
572 <tr>
573 <td class="memname">virtual bool qdbm::Villa::curfirst </td>
574 <td>(</td>
575 <td class="paramname"></td>
576 <td>&nbsp;)&nbsp;</td>
577 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
578 </tr>
579 </table>
580 </div>
581 <div class="memdoc">
582
583 <p>Move the cursor to the first record. </p>
584 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and no record corresponds, false is returned instead of exception. </dd></dl>
585 <dl><dt><b>Exceptions:</b></dt><dd>
586 <table border="0" cellspacing="2" cellpadding="0">
587 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or there is no record in the database. </td></tr>
588 </table>
589 </dd>
590 </dl>
591
592 </div>
593 </div>
594 <a class="anchor" id="aedca9b4c7e0ca4e482d4bd7d8b6f1ab9"></a><!-- doxytag: member="qdbm::Villa::curjump" ref="aedca9b4c7e0ca4e482d4bd7d8b6f1ab9" args="(const char *kbuf, int ksiz, int jmode=Villa::JFORWARD)" -->
595 <div class="memitem">
596 <div class="memproto">
597 <table class="memname">
598 <tr>
599 <td class="memname">virtual bool qdbm::Villa::curjump </td>
600 <td>(</td>
601 <td class="paramtype">const char *&nbsp;</td>
602 <td class="paramname"> <em>kbuf</em>, </td>
603 </tr>
604 <tr>
605 <td class="paramkey"></td>
606 <td></td>
607 <td class="paramtype">int&nbsp;</td>
608 <td class="paramname"> <em>ksiz</em>, </td>
609 </tr>
610 <tr>
611 <td class="paramkey"></td>
612 <td></td>
613 <td class="paramtype">int&nbsp;</td>
614 <td class="paramname"> <em>jmode</em> = <code><a class="el" href="classqdbm_1_1Villa.html#a70bec277a0394ba241d568d54d058a42">Villa::JFORWARD</a></code></td><td>&nbsp;</td>
615 </tr>
616 <tr>
617 <td></td>
618 <td>)</td>
619 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
620 </tr>
621 </table>
622 </div>
623 <div class="memdoc">
624
625 <p>Move the cursor to a position around a record. </p>
626 <dl><dt><b>Parameters:</b></dt><dd>
627 <table border="0" cellspacing="2" cellpadding="0">
628 <tr><td valign="top"></td><td valign="top"><em>kbuf</em>&nbsp;</td><td>the pointer to the region of a key. </td></tr>
629 <tr><td valign="top"></td><td valign="top"><em>ksiz</em>&nbsp;</td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr>
630 <tr><td valign="top"></td><td valign="top"><em>jmode</em>&nbsp;</td><td>detail adjustment: `VillaJFORWARD', which means that the cursor is set to the first record of the same key and that the cursor is set to the next substitute if completely matching record does not exist, `VillaJBACKWARD', which means that the cursor is set to the last record of the same key and that the cursor is set to the previous substitute if completely matching record does not exist. </td></tr>
631 </table>
632 </dd>
633 </dl>
634 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and no record corresponds, false is returned instead of exception. </dd></dl>
635 <dl><dt><b>Exceptions:</b></dt><dd>
636 <table border="0" cellspacing="2" cellpadding="0">
637 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or there is no record corresponding the condition. </td></tr>
638 </table>
639 </dd>
640 </dl>
641
642 </div>
643 </div>
644 <a class="anchor" id="a31266ce48e19672262f1e5b45f4257b5"></a><!-- doxytag: member="qdbm::Villa::curkey" ref="a31266ce48e19672262f1e5b45f4257b5" args="(int *sp=0)" -->
645 <div class="memitem">
646 <div class="memproto">
647 <table class="memname">
648 <tr>
649 <td class="memname">virtual char* qdbm::Villa::curkey </td>
650 <td>(</td>
651 <td class="paramtype">int *&nbsp;</td>
652 <td class="paramname"> <em>sp</em> = <code>0</code></td>
653 <td>&nbsp;)&nbsp;</td>
654 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
655 </tr>
656 </table>
657 </div>
658 <div class="memdoc">
659
660 <p>Get the key of the record where the cursor is. </p>
661 <dl><dt><b>Parameters:</b></dt><dd>
662 <table border="0" cellspacing="2" cellpadding="0">
663 <tr><td valign="top"></td><td valign="top"><em>sp</em>&nbsp;</td><td>the pointer to a variable to which the size of the region of the return value is assigned. If it is 0, it is not used. </td></tr>
664 </table>
665 </dd>
666 </dl>
667 <dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the region of the key of the corresponding record. If the silent flag is true and no record corresponds, 0 is returned instead of exception. </dd></dl>
668 <dl><dt><b>Exceptions:</b></dt><dd>
669 <table border="0" cellspacing="2" cellpadding="0">
670 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds to the cursor. </td></tr>
671 </table>
672 </dd>
673 </dl>
674 <dl class="note"><dt><b>Note:</b></dt><dd>Because an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string. Because the region of the return value is allocated with the `stdmalloc' call, it should be released with the `stdfree' call if it is no longer in use. </dd></dl>
675
676 </div>
677 </div>
678 <a class="anchor" id="afca8bc31b980645480f5dbce5f74c3ed"></a><!-- doxytag: member="qdbm::Villa::curlast" ref="afca8bc31b980645480f5dbce5f74c3ed" args="()" -->
679 <div class="memitem">
680 <div class="memproto">
681 <table class="memname">
682 <tr>
683 <td class="memname">virtual bool qdbm::Villa::curlast </td>
684 <td>(</td>
685 <td class="paramname"></td>
686 <td>&nbsp;)&nbsp;</td>
687 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
688 </tr>
689 </table>
690 </div>
691 <div class="memdoc">
692
693 <p>Move the cursor to the last record. </p>
694 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and no record corresponds, false is returned instead of exception. </dd></dl>
695 <dl><dt><b>Exceptions:</b></dt><dd>
696 <table border="0" cellspacing="2" cellpadding="0">
697 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or there is no record in the database. </td></tr>
698 </table>
699 </dd>
700 </dl>
701
702 </div>
703 </div>
704 <a class="anchor" id="ac859238ca73660a0e8458234996fecd7"></a><!-- doxytag: member="qdbm::Villa::curnext" ref="ac859238ca73660a0e8458234996fecd7" args="()" -->
705 <div class="memitem">
706 <div class="memproto">
707 <table class="memname">
708 <tr>
709 <td class="memname">virtual bool qdbm::Villa::curnext </td>
710 <td>(</td>
711 <td class="paramname"></td>
712 <td>&nbsp;)&nbsp;</td>
713 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
714 </tr>
715 </table>
716 </div>
717 <div class="memdoc">
718
719 <p>Move the cursor to the next record. </p>
720 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and no record corresponds, false is returned instead of exception. </dd></dl>
721 <dl><dt><b>Exceptions:</b></dt><dd>
722 <table border="0" cellspacing="2" cellpadding="0">
723 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or there is no next record. </td></tr>
724 </table>
725 </dd>
726 </dl>
727
728 </div>
729 </div>
730 <a class="anchor" id="a269a4d1d31fa27fb96fcfc9d975279a8"></a><!-- doxytag: member="qdbm::Villa::curout" ref="a269a4d1d31fa27fb96fcfc9d975279a8" args="()" -->
731 <div class="memitem">
732 <div class="memproto">
733 <table class="memname">
734 <tr>
735 <td class="memname">virtual bool qdbm::Villa::curout </td>
736 <td>(</td>
737 <td class="paramname"></td>
738 <td>&nbsp;)&nbsp;</td>
739 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
740 </tr>
741 </table>
742 </div>
743 <div class="memdoc">
744
745 <p>Delete the record where the cursor is. </p>
746 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and no record corresponds to the cursor, false is returned instead of exception. </dd></dl>
747 <dl><dt><b>Exceptions:</b></dt><dd>
748 <table border="0" cellspacing="2" cellpadding="0">
749 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds to the cursor. </td></tr>
750 </table>
751 </dd>
752 </dl>
753 <dl class="note"><dt><b>Note:</b></dt><dd>After deletion, the cursor is moved to the next record if possible. </dd></dl>
754
755 </div>
756 </div>
757 <a class="anchor" id="a17c9ed17ffea0dfcaa59ab7a7e2257b5"></a><!-- doxytag: member="qdbm::Villa::curprev" ref="a17c9ed17ffea0dfcaa59ab7a7e2257b5" args="()" -->
758 <div class="memitem">
759 <div class="memproto">
760 <table class="memname">
761 <tr>
762 <td class="memname">virtual bool qdbm::Villa::curprev </td>
763 <td>(</td>
764 <td class="paramname"></td>
765 <td>&nbsp;)&nbsp;</td>
766 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
767 </tr>
768 </table>
769 </div>
770 <div class="memdoc">
771
772 <p>Move the cursor to the previous record. </p>
773 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and no record corresponds, false is returned instead of exception. </dd></dl>
774 <dl><dt><b>Exceptions:</b></dt><dd>
775 <table border="0" cellspacing="2" cellpadding="0">
776 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or there is no previous record. </td></tr>
777 </table>
778 </dd>
779 </dl>
780
781 </div>
782 </div>
783 <a class="anchor" id="a0cc98407cf9b1c2710e254cf02f57f6f"></a><!-- doxytag: member="qdbm::Villa::curput" ref="a0cc98407cf9b1c2710e254cf02f57f6f" args="(const char *vbuf, int vsiz, int cpmode=Villa::CPCURRENT)" -->
784 <div class="memitem">
785 <div class="memproto">
786 <table class="memname">
787 <tr>
788 <td class="memname">virtual bool qdbm::Villa::curput </td>
789 <td>(</td>
790 <td class="paramtype">const char *&nbsp;</td>
791 <td class="paramname"> <em>vbuf</em>, </td>
792 </tr>
793 <tr>
794 <td class="paramkey"></td>
795 <td></td>
796 <td class="paramtype">int&nbsp;</td>
797 <td class="paramname"> <em>vsiz</em>, </td>
798 </tr>
799 <tr>
800 <td class="paramkey"></td>
801 <td></td>
802 <td class="paramtype">int&nbsp;</td>
803 <td class="paramname"> <em>cpmode</em> = <code><a class="el" href="classqdbm_1_1Villa.html#a621759a7db91f6740bc97563c3877f48">Villa::CPCURRENT</a></code></td><td>&nbsp;</td>
804 </tr>
805 <tr>
806 <td></td>
807 <td>)</td>
808 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
809 </tr>
810 </table>
811 </div>
812 <div class="memdoc">
813
814 <p>Insert a record around the cursor. </p>
815 <dl><dt><b>Parameters:</b></dt><dd>
816 <table border="0" cellspacing="2" cellpadding="0">
817 <tr><td valign="top"></td><td valign="top"><em>vbuf</em>&nbsp;</td><td>the pointer to the region of a value. </td></tr>
818 <tr><td valign="top"></td><td valign="top"><em>vsiz</em>&nbsp;</td><td>the size of the region of the value. If it is negative, the size is assigned with `stdstrlen(vbuf)'. </td></tr>
819 <tr><td valign="top"></td><td valign="top"><em>cpmode</em>&nbsp;</td><td>detail adjustment: `VillaCPCURRENT', which means that the value of the current record is overwritten, `VillaCPBEFORE', which means that a new record is inserted before the current record, `VillaCPAFTER', which means that a new record is inserted after the current record. </td></tr>
820 </table>
821 </dd>
822 </dl>
823 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and no record corresponds to the cursor, false is returned instead of exception. </dd></dl>
824 <dl><dt><b>Exceptions:</b></dt><dd>
825 <table border="0" cellspacing="2" cellpadding="0">
826 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds to the cursor. </td></tr>
827 </table>
828 </dd>
829 </dl>
830 <dl class="note"><dt><b>Note:</b></dt><dd>After insertion, the cursor is moved to the inserted record. </dd></dl>
831
832 </div>
833 </div>
834 <a class="anchor" id="a7315b12c26280eb4f601b4179eb68f36"></a><!-- doxytag: member="qdbm::Villa::curval" ref="a7315b12c26280eb4f601b4179eb68f36" args="(int *sp=0)" -->
835 <div class="memitem">
836 <div class="memproto">
837 <table class="memname">
838 <tr>
839 <td class="memname">virtual char* qdbm::Villa::curval </td>
840 <td>(</td>
841 <td class="paramtype">int *&nbsp;</td>
842 <td class="paramname"> <em>sp</em> = <code>0</code></td>
843 <td>&nbsp;)&nbsp;</td>
844 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
845 </tr>
846 </table>
847 </div>
848 <div class="memdoc">
849
850 <p>Get the value of the record where the cursor is. </p>
851 <dl><dt><b>Parameters:</b></dt><dd>
852 <table border="0" cellspacing="2" cellpadding="0">
853 <tr><td valign="top"></td><td valign="top"><em>sp</em>&nbsp;</td><td>the pointer to a variable to which the size of the region of the return value is assigned. If it is 0, it is not used. </td></tr>
854 </table>
855 </dd>
856 </dl>
857 <dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the region of the value of the corresponding record. If the silent flag is true and no record corresponds, 0 is returned instead of exception. </dd></dl>
858 <dl><dt><b>Exceptions:</b></dt><dd>
859 <table border="0" cellspacing="2" cellpadding="0">
860 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds to the cursor. </td></tr>
861 </table>
862 </dd>
863 </dl>
864 <dl class="note"><dt><b>Note:</b></dt><dd>Because an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string. Because the region of the return value is allocated with the `stdmalloc' call, it should be released with the `stdfree' call if it is no longer in use. </dd></dl>
865
866 </div>
867 </div>
868 <a class="anchor" id="a882fa32b1717020f71887dc3755974f4"></a><!-- doxytag: member="qdbm::Villa::deleterec" ref="a882fa32b1717020f71887dc3755974f4" args="(const Datum &amp;key)" -->
869 <div class="memitem">
870 <div class="memproto">
871 <table class="memname">
872 <tr>
873 <td class="memname">virtual void qdbm::Villa::deleterec </td>
874 <td>(</td>
875 <td class="paramtype">const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &amp;&nbsp;</td>
876 <td class="paramname"> <em>key</em></td>
877 <td>&nbsp;)&nbsp;</td>
878 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
879 </tr>
880 </table>
881 </div>
882 <div class="memdoc">
883
884 <p>Delete a record. </p>
885 <dl><dt><b>Parameters:</b></dt><dd>
886 <table border="0" cellspacing="2" cellpadding="0">
887 <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>reference to a key object. </td></tr>
888 </table>
889 </dd>
890 </dl>
891 <dl><dt><b>Exceptions:</b></dt><dd>
892 <table border="0" cellspacing="2" cellpadding="0">
893 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds. </td></tr>
894 </table>
895 </dd>
896 </dl>
897
898 <p>Implements <a class="el" href="classqdbm_1_1ADBM.html#aacf9ce119ffd2f3da213cdffd2428ac6">qdbm::ADBM</a>.</p>
899
900 </div>
901 </div>
902 <a class="anchor" id="ad47f50bc42329b5eba5ecd48ff0b7466"></a><!-- doxytag: member="qdbm::Villa::error" ref="ad47f50bc42329b5eba5ecd48ff0b7466" args="()" -->
903 <div class="memitem">
904 <div class="memproto">
905 <table class="memname">
906 <tr>
907 <td class="memname">virtual bool qdbm::Villa::error </td>
908 <td>(</td>
909 <td class="paramname"></td>
910 <td>&nbsp;)&nbsp;</td>
911 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
912 </tr>
913 </table>
914 </div>
915 <div class="memdoc">
916
917 <p>Check whether a fatal error occured or not. </p>
918 <dl class="return"><dt><b>Returns:</b></dt><dd>true if the database has a fatal error, false if not. </dd></dl>
919 <dl><dt><b>Exceptions:</b></dt><dd>
920 <table border="0" cellspacing="2" cellpadding="0">
921 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
922 </table>
923 </dd>
924 </dl>
925
926 <p>Implements <a class="el" href="classqdbm_1_1ADBM.html#abbd9f01defd662ef69c706b6b5d7bb54">qdbm::ADBM</a>.</p>
927
928 </div>
929 </div>
930 <a class="anchor" id="a21670d562a7add1a851dea429c7f9cdb"></a><!-- doxytag: member="qdbm::Villa::fatalerror" ref="a21670d562a7add1a851dea429c7f9cdb" args="()" -->
931 <div class="memitem">
932 <div class="memproto">
933 <table class="memname">
934 <tr>
935 <td class="memname">virtual bool qdbm::Villa::fatalerror </td>
936 <td>(</td>
937 <td class="paramname"></td>
938 <td>&nbsp;)&nbsp;</td>
939 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
940 </tr>
941 </table>
942 </div>
943 <div class="memdoc">
944
945 <p>Check whether the database has a fatal error or not. </p>
946 <dl class="return"><dt><b>Returns:</b></dt><dd>true if the database has a fatal error, false if not. </dd></dl>
947 <dl><dt><b>Exceptions:</b></dt><dd>
948 <table border="0" cellspacing="2" cellpadding="0">
949 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
950 </table>
951 </dd>
952 </dl>
953
954 </div>
955 </div>
956 <a class="anchor" id="a802ec4bded4a2c7c82f92135dc06eaee"></a><!-- doxytag: member="qdbm::Villa::fetchrec" ref="a802ec4bded4a2c7c82f92135dc06eaee" args="(const Datum &amp;key)" -->
957 <div class="memitem">
958 <div class="memproto">
959 <table class="memname">
960 <tr>
961 <td class="memname">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> qdbm::Villa::fetchrec </td>
962 <td>(</td>
963 <td class="paramtype">const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &amp;&nbsp;</td>
964 <td class="paramname"> <em>key</em></td>
965 <td>&nbsp;)&nbsp;</td>
966 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
967 </tr>
968 </table>
969 </div>
970 <div class="memdoc">
971
972 <p>Fetch a record. </p>
973 <dl><dt><b>Parameters:</b></dt><dd>
974 <table border="0" cellspacing="2" cellpadding="0">
975 <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>reference to a key object. </td></tr>
976 </table>
977 </dd>
978 </dl>
979 <dl class="return"><dt><b>Returns:</b></dt><dd>a temporary instance of the value of the corresponding record. </dd></dl>
980 <dl><dt><b>Exceptions:</b></dt><dd>
981 <table border="0" cellspacing="2" cellpadding="0">
982 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds. </td></tr>
983 </table>
984 </dd>
985 </dl>
986
987 <p>Implements <a class="el" href="classqdbm_1_1ADBM.html#a2ed1c91281ac685374082639369dc7b1">qdbm::ADBM</a>.</p>
988
989 </div>
990 </div>
991 <a class="anchor" id="a0ae0c58823d32ce6b4d14b1ab13730dc"></a><!-- doxytag: member="qdbm::Villa::firstkey" ref="a0ae0c58823d32ce6b4d14b1ab13730dc" args="()" -->
992 <div class="memitem">
993 <div class="memproto">
994 <table class="memname">
995 <tr>
996 <td class="memname">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> qdbm::Villa::firstkey </td>
997 <td>(</td>
998 <td class="paramname"></td>
999 <td>&nbsp;)&nbsp;</td>
1000 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1001 </tr>
1002 </table>
1003 </div>
1004 <div class="memdoc">
1005
1006 <p>Get the first key. </p>
1007 <dl class="return"><dt><b>Returns:</b></dt><dd>a temporary instance of the key of the first record. </dd></dl>
1008 <dl><dt><b>Exceptions:</b></dt><dd>
1009 <table border="0" cellspacing="2" cellpadding="0">
1010 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds. </td></tr>
1011 </table>
1012 </dd>
1013 </dl>
1014
1015 <p>Implements <a class="el" href="classqdbm_1_1ADBM.html#a457f066a06a8e2c7bdcced9c3a83bc86">qdbm::ADBM</a>.</p>
1016
1017 </div>
1018 </div>
1019 <a class="anchor" id="af311742793824a0bb22f1299db54a563"></a><!-- doxytag: member="qdbm::Villa::fsiz" ref="af311742793824a0bb22f1299db54a563" args="()" -->
1020 <div class="memitem">
1021 <div class="memproto">
1022 <table class="memname">
1023 <tr>
1024 <td class="memname">virtual int qdbm::Villa::fsiz </td>
1025 <td>(</td>
1026 <td class="paramname"></td>
1027 <td>&nbsp;)&nbsp;</td>
1028 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1029 </tr>
1030 </table>
1031 </div>
1032 <div class="memdoc">
1033
1034 <p>Get the size of the database file. </p>
1035 <dl class="return"><dt><b>Returns:</b></dt><dd>the size of the database file. </dd></dl>
1036 <dl><dt><b>Exceptions:</b></dt><dd>
1037 <table border="0" cellspacing="2" cellpadding="0">
1038 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1039 </table>
1040 </dd>
1041 </dl>
1042 <dl class="note"><dt><b>Note:</b></dt><dd>Because of the I/O buffer, the return value may be less than the real size. </dd></dl>
1043
1044 </div>
1045 </div>
1046 <a class="anchor" id="a445a5ec9a639c75e304772399c7e3e28"></a><!-- doxytag: member="qdbm::Villa::get" ref="a445a5ec9a639c75e304772399c7e3e28" args="(const char *kbuf, int ksiz, int *sp=0)" -->
1047 <div class="memitem">
1048 <div class="memproto">
1049 <table class="memname">
1050 <tr>
1051 <td class="memname">virtual char* qdbm::Villa::get </td>
1052 <td>(</td>
1053 <td class="paramtype">const char *&nbsp;</td>
1054 <td class="paramname"> <em>kbuf</em>, </td>
1055 </tr>
1056 <tr>
1057 <td class="paramkey"></td>
1058 <td></td>
1059 <td class="paramtype">int&nbsp;</td>
1060 <td class="paramname"> <em>ksiz</em>, </td>
1061 </tr>
1062 <tr>
1063 <td class="paramkey"></td>
1064 <td></td>
1065 <td class="paramtype">int *&nbsp;</td>
1066 <td class="paramname"> <em>sp</em> = <code>0</code></td><td>&nbsp;</td>
1067 </tr>
1068 <tr>
1069 <td></td>
1070 <td>)</td>
1071 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1072 </tr>
1073 </table>
1074 </div>
1075 <div class="memdoc">
1076
1077 <p>Retrieve a record. </p>
1078 <dl><dt><b>Parameters:</b></dt><dd>
1079 <table border="0" cellspacing="2" cellpadding="0">
1080 <tr><td valign="top"></td><td valign="top"><em>kbuf</em>&nbsp;</td><td>the pointer to the region of a key. </td></tr>
1081 <tr><td valign="top"></td><td valign="top"><em>ksiz</em>&nbsp;</td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr>
1082 <tr><td valign="top"></td><td valign="top"><em>sp</em>&nbsp;</td><td>the pointer to a variable to which the size of the region of the return value is assigned. If it is 0, it is not used. </td></tr>
1083 </table>
1084 </dd>
1085 </dl>
1086 <dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the region of the value of the corresponding record. If the silent flag is true and no record corresponds, 0 is returned instead of exception. </dd></dl>
1087 <dl><dt><b>Exceptions:</b></dt><dd>
1088 <table border="0" cellspacing="2" cellpadding="0">
1089 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds. </td></tr>
1090 </table>
1091 </dd>
1092 </dl>
1093 <dl class="note"><dt><b>Note:</b></dt><dd>When the key of duplicated records is specified, the value of the first record of the same key is selected. Because an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string. Because the region of the return value is allocated with the `stdmalloc' call, it should be released with the `stdfree' call if it is no longer in use. </dd></dl>
1094
1095 </div>
1096 </div>
1097 <a class="anchor" id="a2f6e1cf8fad4a305d14ea33a6c9454db"></a><!-- doxytag: member="qdbm::Villa::inode" ref="a2f6e1cf8fad4a305d14ea33a6c9454db" args="()" -->
1098 <div class="memitem">
1099 <div class="memproto">
1100 <table class="memname">
1101 <tr>
1102 <td class="memname">virtual int qdbm::Villa::inode </td>
1103 <td>(</td>
1104 <td class="paramname"></td>
1105 <td>&nbsp;)&nbsp;</td>
1106 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1107 </tr>
1108 </table>
1109 </div>
1110 <div class="memdoc">
1111
1112 <p>Get the inode number of the database file. </p>
1113 <dl class="return"><dt><b>Returns:</b></dt><dd>the inode number of the database file. </dd></dl>
1114 <dl><dt><b>Exceptions:</b></dt><dd>
1115 <table border="0" cellspacing="2" cellpadding="0">
1116 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1117 </table>
1118 </dd>
1119 </dl>
1120
1121 </div>
1122 </div>
1123 <a class="anchor" id="a2206bdc2c9fed4083dcaac44045877db"></a><!-- doxytag: member="qdbm::Villa::lnum" ref="a2206bdc2c9fed4083dcaac44045877db" args="()" -->
1124 <div class="memitem">
1125 <div class="memproto">
1126 <table class="memname">
1127 <tr>
1128 <td class="memname">virtual int qdbm::Villa::lnum </td>
1129 <td>(</td>
1130 <td class="paramname"></td>
1131 <td>&nbsp;)&nbsp;</td>
1132 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1133 </tr>
1134 </table>
1135 </div>
1136 <div class="memdoc">
1137
1138 <p>Get the number of the leaf nodes of B+ tree. </p>
1139 <dl class="return"><dt><b>Returns:</b></dt><dd>the number of the leaf nodes. </dd></dl>
1140 <dl><dt><b>Exceptions:</b></dt><dd>
1141 <table border="0" cellspacing="2" cellpadding="0">
1142 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1143 </table>
1144 </dd>
1145 </dl>
1146
1147 </div>
1148 </div>
1149 <a class="anchor" id="acc20d567d72b4a2c0984e7f420a6312c"></a><!-- doxytag: member="qdbm::Villa::mtime" ref="acc20d567d72b4a2c0984e7f420a6312c" args="()" -->
1150 <div class="memitem">
1151 <div class="memproto">
1152 <table class="memname">
1153 <tr>
1154 <td class="memname">virtual time_t qdbm::Villa::mtime </td>
1155 <td>(</td>
1156 <td class="paramname"></td>
1157 <td>&nbsp;)&nbsp;</td>
1158 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1159 </tr>
1160 </table>
1161 </div>
1162 <div class="memdoc">
1163
1164 <p>Get the last modified time of the database. </p>
1165 <dl class="return"><dt><b>Returns:</b></dt><dd>the last modified time the database. </dd></dl>
1166 <dl><dt><b>Exceptions:</b></dt><dd>
1167 <table border="0" cellspacing="2" cellpadding="0">
1168 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1169 </table>
1170 </dd>
1171 </dl>
1172
1173 </div>
1174 </div>
1175 <a class="anchor" id="a8edea5deb079856384bf74902bc36509"></a><!-- doxytag: member="qdbm::Villa::name" ref="a8edea5deb079856384bf74902bc36509" args="()" -->
1176 <div class="memitem">
1177 <div class="memproto">
1178 <table class="memname">
1179 <tr>
1180 <td class="memname">virtual char* qdbm::Villa::name </td>
1181 <td>(</td>
1182 <td class="paramname"></td>
1183 <td>&nbsp;)&nbsp;</td>
1184 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1185 </tr>
1186 </table>
1187 </div>
1188 <div class="memdoc">
1189
1190 <p>Get the name of the database. </p>
1191 <dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the region of the name of the database. </dd></dl>
1192 <dl><dt><b>Exceptions:</b></dt><dd>
1193 <table border="0" cellspacing="2" cellpadding="0">
1194 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1195 </table>
1196 </dd>
1197 </dl>
1198 <dl class="note"><dt><b>Note:</b></dt><dd>Because the region of the return value is allocated with the `stdmalloc' call, it should be released with the `stdfree' call if it is no longer in use. </dd></dl>
1199
1200 </div>
1201 </div>
1202 <a class="anchor" id="a3af1120e3735b90c6d81954a8b96b42e"></a><!-- doxytag: member="qdbm::Villa::nextkey" ref="a3af1120e3735b90c6d81954a8b96b42e" args="()" -->
1203 <div class="memitem">
1204 <div class="memproto">
1205 <table class="memname">
1206 <tr>
1207 <td class="memname">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> qdbm::Villa::nextkey </td>
1208 <td>(</td>
1209 <td class="paramname"></td>
1210 <td>&nbsp;)&nbsp;</td>
1211 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1212 </tr>
1213 </table>
1214 </div>
1215 <div class="memdoc">
1216
1217 <p>Get the next key. </p>
1218 <dl class="return"><dt><b>Returns:</b></dt><dd>a temporary instance of the key of the next record. </dd></dl>
1219 <dl><dt><b>Exceptions:</b></dt><dd>
1220 <table border="0" cellspacing="2" cellpadding="0">
1221 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds. </td></tr>
1222 </table>
1223 </dd>
1224 </dl>
1225
1226 <p>Implements <a class="el" href="classqdbm_1_1ADBM.html#ae14701fd3087fe35f6c83802cc217bec">qdbm::ADBM</a>.</p>
1227
1228 </div>
1229 </div>
1230 <a class="anchor" id="a5f82fe416f3107dd6a80ccb26c87a7fd"></a><!-- doxytag: member="qdbm::Villa::nnum" ref="a5f82fe416f3107dd6a80ccb26c87a7fd" args="()" -->
1231 <div class="memitem">
1232 <div class="memproto">
1233 <table class="memname">
1234 <tr>
1235 <td class="memname">virtual int qdbm::Villa::nnum </td>
1236 <td>(</td>
1237 <td class="paramname"></td>
1238 <td>&nbsp;)&nbsp;</td>
1239 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1240 </tr>
1241 </table>
1242 </div>
1243 <div class="memdoc">
1244
1245 <p>Get the number of the non-leaf nodes of B+ tree. </p>
1246 <dl class="return"><dt><b>Returns:</b></dt><dd>the number of the non-leaf nodes. </dd></dl>
1247 <dl><dt><b>Exceptions:</b></dt><dd>
1248 <table border="0" cellspacing="2" cellpadding="0">
1249 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1250 </table>
1251 </dd>
1252 </dl>
1253
1254 </div>
1255 </div>
1256 <a class="anchor" id="a178364b4ab1e9c6a444c110995db5206"></a><!-- doxytag: member="qdbm::Villa::optimize" ref="a178364b4ab1e9c6a444c110995db5206" args="()" -->
1257 <div class="memitem">
1258 <div class="memproto">
1259 <table class="memname">
1260 <tr>
1261 <td class="memname">virtual void qdbm::Villa::optimize </td>
1262 <td>(</td>
1263 <td class="paramname"></td>
1264 <td>&nbsp;)&nbsp;</td>
1265 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1266 </tr>
1267 </table>
1268 </div>
1269 <div class="memdoc">
1270
1271 <p>Optimize a database. </p>
1272 <dl><dt><b>Exceptions:</b></dt><dd>
1273 <table border="0" cellspacing="2" cellpadding="0">
1274 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1275 </table>
1276 </dd>
1277 </dl>
1278 <dl class="note"><dt><b>Note:</b></dt><dd>In an alternating succession of deleting and storing with overwrite or concatenate, dispensable regions accumulate. This function is useful to do away with them. This function shuold not be used while the transaction is activated. </dd></dl>
1279
1280 </div>
1281 </div>
1282 <a class="anchor" id="af9404d9fe087e8c0b03b9310e03d5f2b"></a><!-- doxytag: member="qdbm::Villa::out" ref="af9404d9fe087e8c0b03b9310e03d5f2b" args="(const char *kbuf, int ksiz)" -->
1283 <div class="memitem">
1284 <div class="memproto">
1285 <table class="memname">
1286 <tr>
1287 <td class="memname">virtual bool qdbm::Villa::out </td>
1288 <td>(</td>
1289 <td class="paramtype">const char *&nbsp;</td>
1290 <td class="paramname"> <em>kbuf</em>, </td>
1291 </tr>
1292 <tr>
1293 <td class="paramkey"></td>
1294 <td></td>
1295 <td class="paramtype">int&nbsp;</td>
1296 <td class="paramname"> <em>ksiz</em></td><td>&nbsp;</td>
1297 </tr>
1298 <tr>
1299 <td></td>
1300 <td>)</td>
1301 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1302 </tr>
1303 </table>
1304 </div>
1305 <div class="memdoc">
1306
1307 <p>Delete a record. </p>
1308 <dl><dt><b>Parameters:</b></dt><dd>
1309 <table border="0" cellspacing="2" cellpadding="0">
1310 <tr><td valign="top"></td><td valign="top"><em>kbuf</em>&nbsp;</td><td>the pointer to the region of a key. </td></tr>
1311 <tr><td valign="top"></td><td valign="top"><em>ksiz</em>&nbsp;</td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr>
1312 </table>
1313 </dd>
1314 </dl>
1315 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and no record corresponds, false is returned instead of exception. </dd></dl>
1316 <dl><dt><b>Exceptions:</b></dt><dd>
1317 <table border="0" cellspacing="2" cellpadding="0">
1318 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds. </td></tr>
1319 </table>
1320 </dd>
1321 </dl>
1322 <dl class="note"><dt><b>Note:</b></dt><dd>When the key of duplicated records is specified, the first record of the same key is deleted. The cursor becomes unavailable due to updating database. </dd></dl>
1323
1324 </div>
1325 </div>
1326 <a class="anchor" id="a52f993a6a042bf8f11417a00b791144a"></a><!-- doxytag: member="qdbm::Villa::put" ref="a52f993a6a042bf8f11417a00b791144a" args="(const char *kbuf, int ksiz, const char *vbuf, int vsiz, int dmode=Villa::DOVER)" -->
1327 <div class="memitem">
1328 <div class="memproto">
1329 <table class="memname">
1330 <tr>
1331 <td class="memname">virtual bool qdbm::Villa::put </td>
1332 <td>(</td>
1333 <td class="paramtype">const char *&nbsp;</td>
1334 <td class="paramname"> <em>kbuf</em>, </td>
1335 </tr>
1336 <tr>
1337 <td class="paramkey"></td>
1338 <td></td>
1339 <td class="paramtype">int&nbsp;</td>
1340 <td class="paramname"> <em>ksiz</em>, </td>
1341 </tr>
1342 <tr>
1343 <td class="paramkey"></td>
1344 <td></td>
1345 <td class="paramtype">const char *&nbsp;</td>
1346 <td class="paramname"> <em>vbuf</em>, </td>
1347 </tr>
1348 <tr>
1349 <td class="paramkey"></td>
1350 <td></td>
1351 <td class="paramtype">int&nbsp;</td>
1352 <td class="paramname"> <em>vsiz</em>, </td>
1353 </tr>
1354 <tr>
1355 <td class="paramkey"></td>
1356 <td></td>
1357 <td class="paramtype">int&nbsp;</td>
1358 <td class="paramname"> <em>dmode</em> = <code><a class="el" href="classqdbm_1_1Villa.html#a3d2ebe4de4c5b61ccec9d2f7443a9422">Villa::DOVER</a></code></td><td>&nbsp;</td>
1359 </tr>
1360 <tr>
1361 <td></td>
1362 <td>)</td>
1363 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1364 </tr>
1365 </table>
1366 </div>
1367 <div class="memdoc">
1368
1369 <p>Store a record. </p>
1370 <dl><dt><b>Parameters:</b></dt><dd>
1371 <table border="0" cellspacing="2" cellpadding="0">
1372 <tr><td valign="top"></td><td valign="top"><em>kbuf</em>&nbsp;</td><td>the pointer to the region of a key. </td></tr>
1373 <tr><td valign="top"></td><td valign="top"><em>ksiz</em>&nbsp;</td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr>
1374 <tr><td valign="top"></td><td valign="top"><em>vbuf</em>&nbsp;</td><td>the pointer to the region of a value. </td></tr>
1375 <tr><td valign="top"></td><td valign="top"><em>vsiz</em>&nbsp;</td><td>the size of the region of the value. If it is negative, the size is assigned with `stdstrlen(vbuf)'. </td></tr>
1376 <tr><td valign="top"></td><td valign="top"><em>dmode</em>&nbsp;</td><td>behavior when the key overlaps, by the following values: `VillaDOVER', which means the specified value overwrites the existing one, `VillaDKEEP', which means the existing value is kept, `VillaDCAT', which means the specified value is concatenated at the end of the existing value, `VillaDDUP', which means duplication of keys is allowed and the specified value is added as the last one, `VillaDDUPR', which means duplication of keys is allowed and the specified value is added as the first one. </td></tr>
1377 </table>
1378 </dd>
1379 </dl>
1380 <dl class="return"><dt><b>Returns:</b></dt><dd>always true. However, if the silent flag is true and replace is cancelled, false is returned instead of exception. </dd></dl>
1381 <dl><dt><b>Exceptions:</b></dt><dd>
1382 <table border="0" cellspacing="2" cellpadding="0">
1383 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or replace is cancelled. </td></tr>
1384 </table>
1385 </dd>
1386 </dl>
1387 <dl class="note"><dt><b>Note:</b></dt><dd>The cursor becomes unavailable due to updating database. </dd></dl>
1388
1389 </div>
1390 </div>
1391 <a class="anchor" id="a120a58b55367be76ebe035389cade573"></a><!-- doxytag: member="qdbm::Villa::remove" ref="a120a58b55367be76ebe035389cade573" args="(const char *name)" -->
1392 <div class="memitem">
1393 <div class="memproto">
1394 <table class="memname">
1395 <tr>
1396 <td class="memname">static void qdbm::Villa::remove </td>
1397 <td>(</td>
1398 <td class="paramtype">const char *&nbsp;</td>
1399 <td class="paramname"> <em>name</em></td>
1400 <td>&nbsp;)&nbsp;</td>
1401 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [static]</code></td>
1402 </tr>
1403 </table>
1404 </div>
1405 <div class="memdoc">
1406
1407 <p>Remove a database directory. </p>
1408 <dl><dt><b>Parameters:</b></dt><dd>
1409 <table border="0" cellspacing="2" cellpadding="0">
1410 <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>the name of a database directory. </td></tr>
1411 </table>
1412 </dd>
1413 </dl>
1414 <dl><dt><b>Exceptions:</b></dt><dd>
1415 <table border="0" cellspacing="2" cellpadding="0">
1416 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1417 </table>
1418 </dd>
1419 </dl>
1420
1421 </div>
1422 </div>
1423 <a class="anchor" id="a4b5b5ce2cf4bb6eb4e175a4c9844e745"></a><!-- doxytag: member="qdbm::Villa::rnum" ref="a4b5b5ce2cf4bb6eb4e175a4c9844e745" args="()" -->
1424 <div class="memitem">
1425 <div class="memproto">
1426 <table class="memname">
1427 <tr>
1428 <td class="memname">virtual int qdbm::Villa::rnum </td>
1429 <td>(</td>
1430 <td class="paramname"></td>
1431 <td>&nbsp;)&nbsp;</td>
1432 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1433 </tr>
1434 </table>
1435 </div>
1436 <div class="memdoc">
1437
1438 <p>Get the number of the records stored in a database. </p>
1439 <dl class="return"><dt><b>Returns:</b></dt><dd>the number of the records stored in the database. </dd></dl>
1440 <dl><dt><b>Exceptions:</b></dt><dd>
1441 <table border="0" cellspacing="2" cellpadding="0">
1442 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1443 </table>
1444 </dd>
1445 </dl>
1446
1447 </div>
1448 </div>
1449 <a class="anchor" id="a0134319c8837b3975f669a1b205aa59c"></a><!-- doxytag: member="qdbm::Villa::settuning" ref="a0134319c8837b3975f669a1b205aa59c" args="(int lrecmax, int nidxmax, int lcnum, int ncnum)" -->
1450 <div class="memitem">
1451 <div class="memproto">
1452 <table class="memname">
1453 <tr>
1454 <td class="memname">virtual void qdbm::Villa::settuning </td>
1455 <td>(</td>
1456 <td class="paramtype">int&nbsp;</td>
1457 <td class="paramname"> <em>lrecmax</em>, </td>
1458 </tr>
1459 <tr>
1460 <td class="paramkey"></td>
1461 <td></td>
1462 <td class="paramtype">int&nbsp;</td>
1463 <td class="paramname"> <em>nidxmax</em>, </td>
1464 </tr>
1465 <tr>
1466 <td class="paramkey"></td>
1467 <td></td>
1468 <td class="paramtype">int&nbsp;</td>
1469 <td class="paramname"> <em>lcnum</em>, </td>
1470 </tr>
1471 <tr>
1472 <td class="paramkey"></td>
1473 <td></td>
1474 <td class="paramtype">int&nbsp;</td>
1475 <td class="paramname"> <em>ncnum</em></td><td>&nbsp;</td>
1476 </tr>
1477 <tr>
1478 <td></td>
1479 <td>)</td>
1480 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1481 </tr>
1482 </table>
1483 </div>
1484 <div class="memdoc">
1485
1486 <p>Set the tuning parameters for performance. </p>
1487 <dl><dt><b>Parameters:</b></dt><dd>
1488 <table border="0" cellspacing="2" cellpadding="0">
1489 <tr><td valign="top"></td><td valign="top"><em>lrecmax</em>&nbsp;</td><td>the max number of records in a leaf node of B+ tree. If it is not more than 0, the default value is specified. </td></tr>
1490 <tr><td valign="top"></td><td valign="top"><em>nidxmax</em>&nbsp;</td><td>the max number of indexes in a non-leaf node of B+ tree. If it is not more than 0, the default value is specified. </td></tr>
1491 <tr><td valign="top"></td><td valign="top"><em>lcnum</em>&nbsp;</td><td>the max number of caching leaf nodes. If it is not more than 0, the default value is specified. </td></tr>
1492 <tr><td valign="top"></td><td valign="top"><em>ncnum</em>&nbsp;</td><td>the max number of caching non-leaf nodes. If it is not more than 0, the default value is specified. </td></tr>
1493 </table>
1494 </dd>
1495 </dl>
1496 <dl><dt><b>Exceptions:</b></dt><dd>
1497 <table border="0" cellspacing="2" cellpadding="0">
1498 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1499 </table>
1500 </dd>
1501 </dl>
1502 <dl class="note"><dt><b>Note:</b></dt><dd>The default setting is equivalent to `settuning(49, 192, 1024, 512)'. Because tuning paremeters are not saved in a database, you should specify them every opening a database. </dd></dl>
1503
1504 </div>
1505 </div>
1506 <a class="anchor" id="a54ce0c14d1404f6e94eb1014eaa39983"></a><!-- doxytag: member="qdbm::Villa::storerec" ref="a54ce0c14d1404f6e94eb1014eaa39983" args="(const Datum &amp;key, const Datum &amp;val, bool replace=true)" -->
1507 <div class="memitem">
1508 <div class="memproto">
1509 <table class="memname">
1510 <tr>
1511 <td class="memname">virtual void qdbm::Villa::storerec </td>
1512 <td>(</td>
1513 <td class="paramtype">const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &amp;&nbsp;</td>
1514 <td class="paramname"> <em>key</em>, </td>
1515 </tr>
1516 <tr>
1517 <td class="paramkey"></td>
1518 <td></td>
1519 <td class="paramtype">const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &amp;&nbsp;</td>
1520 <td class="paramname"> <em>val</em>, </td>
1521 </tr>
1522 <tr>
1523 <td class="paramkey"></td>
1524 <td></td>
1525 <td class="paramtype">bool&nbsp;</td>
1526 <td class="paramname"> <em>replace</em> = <code>true</code></td><td>&nbsp;</td>
1527 </tr>
1528 <tr>
1529 <td></td>
1530 <td>)</td>
1531 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1532 </tr>
1533 </table>
1534 </div>
1535 <div class="memdoc">
1536
1537 <p>Store a record. </p>
1538 <dl><dt><b>Parameters:</b></dt><dd>
1539 <table border="0" cellspacing="2" cellpadding="0">
1540 <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>reference to a key object. </td></tr>
1541 <tr><td valign="top"></td><td valign="top"><em>val</em>&nbsp;</td><td>reference to a value object. </td></tr>
1542 <tr><td valign="top"></td><td valign="top"><em>replace</em>&nbsp;</td><td>whether the existing value is to be overwritten or not. </td></tr>
1543 </table>
1544 </dd>
1545 </dl>
1546 <dl><dt><b>Exceptions:</b></dt><dd>
1547 <table border="0" cellspacing="2" cellpadding="0">
1548 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or replace is cancelled. </td></tr>
1549 </table>
1550 </dd>
1551 </dl>
1552
1553 <p>Implements <a class="el" href="classqdbm_1_1ADBM.html#aeb819b3cf03cf0aa2924665c73b04481">qdbm::ADBM</a>.</p>
1554
1555 </div>
1556 </div>
1557 <a class="anchor" id="aadf475dedb9a114ef7471c1a8394c629"></a><!-- doxytag: member="qdbm::Villa::sync" ref="aadf475dedb9a114ef7471c1a8394c629" args="()" -->
1558 <div class="memitem">
1559 <div class="memproto">
1560 <table class="memname">
1561 <tr>
1562 <td class="memname">virtual void qdbm::Villa::sync </td>
1563 <td>(</td>
1564 <td class="paramname"></td>
1565 <td>&nbsp;)&nbsp;</td>
1566 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1567 </tr>
1568 </table>
1569 </div>
1570 <div class="memdoc">
1571
1572 <p>Synchronize updating contents with the file and the device. </p>
1573 <dl><dt><b>Exceptions:</b></dt><dd>
1574 <table border="0" cellspacing="2" cellpadding="0">
1575 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1576 </table>
1577 </dd>
1578 </dl>
1579 <dl class="note"><dt><b>Note:</b></dt><dd>This function is useful when another process uses the connected database file. This function shuold not be used while the transaction is activated. </dd></dl>
1580
1581 </div>
1582 </div>
1583 <a class="anchor" id="ad089cf6b1268b10a001872d464f87647"></a><!-- doxytag: member="qdbm::Villa::tranabort" ref="ad089cf6b1268b10a001872d464f87647" args="()" -->
1584 <div class="memitem">
1585 <div class="memproto">
1586 <table class="memname">
1587 <tr>
1588 <td class="memname">virtual void qdbm::Villa::tranabort </td>
1589 <td>(</td>
1590 <td class="paramname"></td>
1591 <td>&nbsp;)&nbsp;</td>
1592 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1593 </tr>
1594 </table>
1595 </div>
1596 <div class="memdoc">
1597
1598 <p>Abort the transaction. </p>
1599 <dl><dt><b>Exceptions:</b></dt><dd>
1600 <table border="0" cellspacing="2" cellpadding="0">
1601 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1602 </table>
1603 </dd>
1604 </dl>
1605 <dl class="note"><dt><b>Note:</b></dt><dd>Updating a database in the transaction is discarded when it is aborted. The state of the database is rollbacked to before transaction. Any other thread except for the one which began the transaction should not call this function. </dd></dl>
1606
1607 </div>
1608 </div>
1609 <a class="anchor" id="a559b21eea9caeceedd57cd822db9f409"></a><!-- doxytag: member="qdbm::Villa::tranbegin" ref="a559b21eea9caeceedd57cd822db9f409" args="()" -->
1610 <div class="memitem">
1611 <div class="memproto">
1612 <table class="memname">
1613 <tr>
1614 <td class="memname">virtual void qdbm::Villa::tranbegin </td>
1615 <td>(</td>
1616 <td class="paramname"></td>
1617 <td>&nbsp;)&nbsp;</td>
1618 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1619 </tr>
1620 </table>
1621 </div>
1622 <div class="memdoc">
1623
1624 <p>Begin the transaction. </p>
1625 <dl><dt><b>Exceptions:</b></dt><dd>
1626 <table border="0" cellspacing="2" cellpadding="0">
1627 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1628 </table>
1629 </dd>
1630 </dl>
1631 <dl class="note"><dt><b>Note:</b></dt><dd>If a thread is already in the transaction, the other threads block until the prius is out of the transaction. Only one transaction can be activated with a database handle at the same time. </dd></dl>
1632
1633 </div>
1634 </div>
1635 <a class="anchor" id="a6fb5f2a5eb77cdb317b8d416c833ba2c"></a><!-- doxytag: member="qdbm::Villa::trancommit" ref="a6fb5f2a5eb77cdb317b8d416c833ba2c" args="()" -->
1636 <div class="memitem">
1637 <div class="memproto">
1638 <table class="memname">
1639 <tr>
1640 <td class="memname">virtual void qdbm::Villa::trancommit </td>
1641 <td>(</td>
1642 <td class="paramname"></td>
1643 <td>&nbsp;)&nbsp;</td>
1644 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1645 </tr>
1646 </table>
1647 </div>
1648 <div class="memdoc">
1649
1650 <p>Commit the transaction. </p>
1651 <dl><dt><b>Exceptions:</b></dt><dd>
1652 <table border="0" cellspacing="2" cellpadding="0">
1653 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1654 </table>
1655 </dd>
1656 </dl>
1657 <dl class="note"><dt><b>Note:</b></dt><dd>Updating a database in the transaction is fixed when it is committed successfully. Any other thread except for the one which began the transaction should not call this function. </dd></dl>
1658
1659 </div>
1660 </div>
1661 <a class="anchor" id="a566d8f0cf8822abda23dc1cafacf5d47"></a><!-- doxytag: member="qdbm::Villa::version" ref="a566d8f0cf8822abda23dc1cafacf5d47" args="()" -->
1662 <div class="memitem">
1663 <div class="memproto">
1664 <table class="memname">
1665 <tr>
1666 <td class="memname">static const char* qdbm::Villa::version </td>
1667 <td>(</td>
1668 <td class="paramname"></td>
1669 <td>&nbsp;)&nbsp;</td>
1670 <td> throw ()<code> [static]</code></td>
1671 </tr>
1672 </table>
1673 </div>
1674 <div class="memdoc">
1675
1676 <p>Get the version information. </p>
1677 <dl class="return"><dt><b>Returns:</b></dt><dd>the string of the version information. </dd></dl>
1678
1679 </div>
1680 </div>
1681 <a class="anchor" id="af1869eec7f0855721b375ddb10689c49"></a><!-- doxytag: member="qdbm::Villa::vnum" ref="af1869eec7f0855721b375ddb10689c49" args="(const char *kbuf, int ksiz)" -->
1682 <div class="memitem">
1683 <div class="memproto">
1684 <table class="memname">
1685 <tr>
1686 <td class="memname">virtual int qdbm::Villa::vnum </td>
1687 <td>(</td>
1688 <td class="paramtype">const char *&nbsp;</td>
1689 <td class="paramname"> <em>kbuf</em>, </td>
1690 </tr>
1691 <tr>
1692 <td class="paramkey"></td>
1693 <td></td>
1694 <td class="paramtype">int&nbsp;</td>
1695 <td class="paramname"> <em>ksiz</em></td><td>&nbsp;</td>
1696 </tr>
1697 <tr>
1698 <td></td>
1699 <td>)</td>
1700 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1701 </tr>
1702 </table>
1703 </div>
1704 <div class="memdoc">
1705
1706 <p>Get the number of records corresponding a key. </p>
1707 <dl><dt><b>Parameters:</b></dt><dd>
1708 <table border="0" cellspacing="2" cellpadding="0">
1709 <tr><td valign="top"></td><td valign="top"><em>kbuf</em>&nbsp;</td><td>the pointer to the region of a key. </td></tr>
1710 <tr><td valign="top"></td><td valign="top"><em>ksiz</em>&nbsp;</td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr>
1711 </table>
1712 </dd>
1713 </dl>
1714 <dl class="return"><dt><b>Returns:</b></dt><dd>the number of corresponding records. If no record corresponds, 0 is returned. </dd></dl>
1715 <dl><dt><b>Exceptions:</b></dt><dd>
1716 <table border="0" cellspacing="2" cellpadding="0">
1717 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1718 </table>
1719 </dd>
1720 </dl>
1721
1722 </div>
1723 </div>
1724 <a class="anchor" id="abd5f53413efe1ae3f9ac13887eb1f27e"></a><!-- doxytag: member="qdbm::Villa::vsiz" ref="abd5f53413efe1ae3f9ac13887eb1f27e" args="(const char *kbuf, int ksiz)" -->
1725 <div class="memitem">
1726 <div class="memproto">
1727 <table class="memname">
1728 <tr>
1729 <td class="memname">virtual int qdbm::Villa::vsiz </td>
1730 <td>(</td>
1731 <td class="paramtype">const char *&nbsp;</td>
1732 <td class="paramname"> <em>kbuf</em>, </td>
1733 </tr>
1734 <tr>
1735 <td class="paramkey"></td>
1736 <td></td>
1737 <td class="paramtype">int&nbsp;</td>
1738 <td class="paramname"> <em>ksiz</em></td><td>&nbsp;</td>
1739 </tr>
1740 <tr>
1741 <td></td>
1742 <td>)</td>
1743 <td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1744 </tr>
1745 </table>
1746 </div>
1747 <div class="memdoc">
1748
1749 <p>Get the size of the value of a record. </p>
1750 <dl><dt><b>Parameters:</b></dt><dd>
1751 <table border="0" cellspacing="2" cellpadding="0">
1752 <tr><td valign="top"></td><td valign="top"><em>kbuf</em>&nbsp;</td><td>the pointer to the region of a key. </td></tr>
1753 <tr><td valign="top"></td><td valign="top"><em>ksiz</em>&nbsp;</td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr>
1754 </table>
1755 </dd>
1756 </dl>
1757 <dl class="return"><dt><b>Returns:</b></dt><dd>the size of the value of the corresponding record. If the silent flag is true and no record corresponds, -1 is returned instead of exception. If multiple records correspond, the size of the first is returned. </dd></dl>
1758 <dl><dt><b>Exceptions:</b></dt><dd>
1759 <table border="0" cellspacing="2" cellpadding="0">
1760 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs or no record corresponds. </td></tr>
1761 </table>
1762 </dd>
1763 </dl>
1764
1765 </div>
1766 </div>
1767 <a class="anchor" id="a9f1a2cf8d141a4a889a53b88de8f45a0"></a><!-- doxytag: member="qdbm::Villa::writable" ref="a9f1a2cf8d141a4a889a53b88de8f45a0" args="()" -->
1768 <div class="memitem">
1769 <div class="memproto">
1770 <table class="memname">
1771 <tr>
1772 <td class="memname">virtual bool qdbm::Villa::writable </td>
1773 <td>(</td>
1774 <td class="paramname"></td>
1775 <td>&nbsp;)&nbsp;</td>
1776 <td> throw (<a class="el" href="classqdbm_1_1Villa__error.html">Villa_error</a>)<code> [virtual]</code></td>
1777 </tr>
1778 </table>
1779 </div>
1780 <div class="memdoc">
1781
1782 <p>Check whether the database handle is a writer or not. </p>
1783 <dl class="return"><dt><b>Returns:</b></dt><dd>true if the handle is a writer, false if not. </dd></dl>
1784 <dl><dt><b>Exceptions:</b></dt><dd>
1785 <table border="0" cellspacing="2" cellpadding="0">
1786 <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Villa__error.html" title="Error container for Villa.">Villa_error</a></em>&nbsp;</td><td>if an error occurs. </td></tr>
1787 </table>
1788 </dd>
1789 </dl>
1790
1791 </div>
1792 </div>
1793 <hr/>The documentation for this class was generated from the following file:<ul>
1794 <li>xvilla.h</li>
1795 </ul>
1796 </div>
1797 <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Aug 5 02:15:30 2010 for QDBM for C++ by&nbsp;
1798 <a href="http://www.doxygen.org/index.html">
1799 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
1800 </body>
1801 </html>