| 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::Curia 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 |
|
| 11 |
<div class="navigation" id="top"> |
| 12 |
<div class="tabs"> |
| 13 |
<ul> |
| 14 |
<li><a href="main.html"><span>Main 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 List</span></a></li> |
| 22 |
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> |
| 23 |
<li><a href="functions.html"><span>Class 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_1Curia.html">Curia</a> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
<div class="contents"> |
| 30 |
<h1>qdbm::Curia Class Reference</h1> |
| 31 |
<p>C++ API of <a class="el" href="classqdbm_1_1Curia.html" title="C++ API of Curia, the extended API of QDBM.">Curia</a>, the extended API of QDBM. |
| 32 |
<a href="#_details">More...</a></p> |
| 33 |
<div class="dynheader"> |
| 34 |
Inheritance diagram for qdbm::Curia:</div> |
| 35 |
<div class="dynsection"> |
| 36 |
<div class="center"> |
| 37 |
<img src="classqdbm_1_1Curia.png" usemap="#qdbm::Curia_map" alt=""/> |
| 38 |
<map id="qdbm::Curia_map" name="qdbm::Curia_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_1Curia-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ac13b68c8973b964891460689bd83d85a">Curia</a> (const char *name, int omode=<a class="el" href="classqdbm_1_1Curia.html#aa65dc78a717d2e4589ff02d83cdc31d4">Curia::OREADER</a>, int bnum=-1, int dnum=-1) throw (Curia_error)</td></tr> |
| 48 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the database handle. <a href="#ac13b68c8973b964891460689bd83d85a"></a><br/></td></tr> |
| 49 |
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a5933079aa458904e52bcccae98b24522">~Curia</a> () throw ()</td></tr> |
| 50 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Release the resources. <a href="#a5933079aa458904e52bcccae98b24522"></a><br/></td></tr> |
| 51 |
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a4832ef51c2b16dde2d0c588c698ecb82">close</a> () throw (Curia_error)</td></tr> |
| 52 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Close the database handle. <a href="#a4832ef51c2b16dde2d0c588c698ecb82"></a><br/></td></tr> |
| 53 |
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a98fdbf3a1f990a2f660d59ea31b1c7c0">put</a> (const char *kbuf, int ksiz, const char *vbuf, int vsiz, int dmode=<a class="el" href="classqdbm_1_1Curia.html#ae1ca3d89aa8768d6947a095366704dd2">Curia::DOVER</a>) throw (Curia_error)</td></tr> |
| 54 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Store a record. <a href="#a98fdbf3a1f990a2f660d59ea31b1c7c0"></a><br/></td></tr> |
| 55 |
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#aa7815b472ec5f55e1cb384c9f6fa6e90">out</a> (const char *kbuf, int ksiz) throw (Curia_error)</td></tr> |
| 56 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a record. <a href="#aa7815b472ec5f55e1cb384c9f6fa6e90"></a><br/></td></tr> |
| 57 |
<tr><td class="memItemLeft" align="right" valign="top">virtual char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a08e9398278d6b1f9160ff0e55d197cb1">get</a> (const char *kbuf, int ksiz, int start=0, int max=-1, int *sp=0) throw (Curia_error)</td></tr> |
| 58 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a record. <a href="#a08e9398278d6b1f9160ff0e55d197cb1"></a><br/></td></tr> |
| 59 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a7ea118d43fb5a6d33b558d4f5ebb41f3">getwb</a> (const char *kbuf, int ksiz, int start, int max, char *vbuf) throw (Curia_error)</td></tr> |
| 60 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a record and write the value into a buffer. <a href="#a7ea118d43fb5a6d33b558d4f5ebb41f3"></a><br/></td></tr> |
| 61 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a29ec7ec4059ef48bd031ce54d692302c">vsiz</a> (const char *kbuf, int ksiz) throw (Curia_error)</td></tr> |
| 62 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the size of the value of a record. <a href="#a29ec7ec4059ef48bd031ce54d692302c"></a><br/></td></tr> |
| 63 |
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#af6598728bdb7b354907ef91f975839cb">iterinit</a> () throw (Curia_error)</td></tr> |
| 64 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the iterator of the database handle. <a href="#af6598728bdb7b354907ef91f975839cb"></a><br/></td></tr> |
| 65 |
<tr><td class="memItemLeft" align="right" valign="top">virtual char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ab039fb42cd21fdf87dfab0848cbdb0d7">iternext</a> (int *sp=0) throw (Curia_error)</td></tr> |
| 66 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the next key of the iterator. <a href="#ab039fb42cd21fdf87dfab0848cbdb0d7"></a><br/></td></tr> |
| 67 |
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a3e55b8de711cf5fbe171d208fe4edb7b">setalign</a> (int align) throw (Curia_error)</td></tr> |
| 68 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set alignment of the database handle. <a href="#a3e55b8de711cf5fbe171d208fe4edb7b"></a><br/></td></tr> |
| 69 |
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a657313435c709e395aa7b49427de1589">setfbpsiz</a> (int size) throw (Curia_error)</td></tr> |
| 70 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the size of the free block pool. <a href="#a657313435c709e395aa7b49427de1589"></a><br/></td></tr> |
| 71 |
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a89d65566935a6d3937625bce57765212">sync</a> () throw (Curia_error)</td></tr> |
| 72 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Synchronize updating contents with the files and the devices. <a href="#a89d65566935a6d3937625bce57765212"></a><br/></td></tr> |
| 73 |
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ad9bfd6bc069be2132f96dbecf137da52">optimize</a> (int bnum=-1) throw (Curia_error)</td></tr> |
| 74 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Optimize the database. <a href="#ad9bfd6bc069be2132f96dbecf137da52"></a><br/></td></tr> |
| 75 |
<tr><td class="memItemLeft" align="right" valign="top">virtual char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a04404eb8b3530566c77577bd82e8c502">name</a> () throw (Curia_error)</td></tr> |
| 76 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the name of the database. <a href="#a04404eb8b3530566c77577bd82e8c502"></a><br/></td></tr> |
| 77 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a31eecf7dcd8e68143f04a4c4095a7621">fsiz</a> () throw (Curia_error)</td></tr> |
| 78 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the total size of database files. <a href="#a31eecf7dcd8e68143f04a4c4095a7621"></a><br/></td></tr> |
| 79 |
<tr><td class="memItemLeft" align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ac799686ef5fa4c1ef05a5a326455f482">fsizd</a> () throw (Curia_error)</td></tr> |
| 80 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the total size of database files as double-precision floating-point number. <a href="#ac799686ef5fa4c1ef05a5a326455f482"></a><br/></td></tr> |
| 81 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a18d43a2b38634ca02c5d3e0883076232">bnum</a> () throw (Curia_error)</td></tr> |
| 82 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the total number of the elements of each bucket array. <a href="#a18d43a2b38634ca02c5d3e0883076232"></a><br/></td></tr> |
| 83 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a209ab5deee68108daf6948fb08396efb">busenum</a> () throw (Curia_error)</td></tr> |
| 84 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the total number of the used elements of each bucket array. <a href="#a209ab5deee68108daf6948fb08396efb"></a><br/></td></tr> |
| 85 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#adbf190677f6c59577dddbdaaf7b574e3">rnum</a> () throw (Curia_error)</td></tr> |
| 86 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of the records stored in the database. <a href="#adbf190677f6c59577dddbdaaf7b574e3"></a><br/></td></tr> |
| 87 |
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ae91dc7efcc8a4e0134d91c03e29dc333">writable</a> () throw (Curia_error)</td></tr> |
| 88 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether the database handle is a writer or not. <a href="#ae91dc7efcc8a4e0134d91c03e29dc333"></a><br/></td></tr> |
| 89 |
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ace220852fa6c27c60ca161b5f1995d77">fatalerror</a> () throw (Curia_error)</td></tr> |
| 90 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether the database has a fatal error or not. <a href="#ace220852fa6c27c60ca161b5f1995d77"></a><br/></td></tr> |
| 91 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ae174c73186d0f239b08a23da219cde09">inode</a> () throw (Curia_error)</td></tr> |
| 92 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the inode number of the database directory. <a href="#ae174c73186d0f239b08a23da219cde09"></a><br/></td></tr> |
| 93 |
<tr><td class="memItemLeft" align="right" valign="top">virtual time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a2d0cd37166d30685c804b4f662e76ea7">mtime</a> () throw (Curia_error)</td></tr> |
| 94 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last modified time of the database. <a href="#a2d0cd37166d30685c804b4f662e76ea7"></a><br/></td></tr> |
| 95 |
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a19ef712d439f3e9886caa1f3b154fb22">putlob</a> (const char *kbuf, int ksiz, const char *vbuf, int vsiz, int dmode=<a class="el" href="classqdbm_1_1Curia.html#ae1ca3d89aa8768d6947a095366704dd2">Curia::DOVER</a>) throw (Curia_error)</td></tr> |
| 96 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Store a large object. <a href="#a19ef712d439f3e9886caa1f3b154fb22"></a><br/></td></tr> |
| 97 |
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ab8ddddda084d0fecd7c672a1b000eb01">outlob</a> (const char *kbuf, int ksiz) throw (Curia_error)</td></tr> |
| 98 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a large object. <a href="#ab8ddddda084d0fecd7c672a1b000eb01"></a><br/></td></tr> |
| 99 |
<tr><td class="memItemLeft" align="right" valign="top">virtual char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a9a4487218c08d07e0ef30d15c7a89675">getlob</a> (const char *kbuf, int ksiz, int start=0, int max=-1, int *sp=0) throw (Curia_error)</td></tr> |
| 100 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a large object. <a href="#a9a4487218c08d07e0ef30d15c7a89675"></a><br/></td></tr> |
| 101 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a0d5cb7f939032251b31bdf1b4a47f080">getlobfd</a> (const char *kbuf, int ksiz)</td></tr> |
| 102 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the file descriptor of a large object. <a href="#a0d5cb7f939032251b31bdf1b4a47f080"></a><br/></td></tr> |
| 103 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a25e4dafae1de815d5d26d6141ff4f0fe">vsizlob</a> (const char *kbuf, int ksiz) throw (Curia_error)</td></tr> |
| 104 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the size of the value of a large object. <a href="#a25e4dafae1de815d5d26d6141ff4f0fe"></a><br/></td></tr> |
| 105 |
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a54bca8cbf08adf4db8a714ae7c8e77e8">rnumlob</a> () throw (Curia_error)</td></tr> |
| 106 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of the large objects stored in the database. <a href="#a54bca8cbf08adf4db8a714ae7c8e77e8"></a><br/></td></tr> |
| 107 |
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ac185f3f75e90a889a2e6b6756f73c620">storerec</a> (const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &key, const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &val, bool replace=true) throw (Curia_error)</td></tr> |
| 108 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Store a record. <a href="#ac185f3f75e90a889a2e6b6756f73c620"></a><br/></td></tr> |
| 109 |
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a76f84ca2271fda527946881a19f80374">deleterec</a> (const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &key) throw (Curia_error)</td></tr> |
| 110 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a record. <a href="#a76f84ca2271fda527946881a19f80374"></a><br/></td></tr> |
| 111 |
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a207e94c4a4f011c642ed61977526ece5">fetchrec</a> (const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &key) throw (Curia_error)</td></tr> |
| 112 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch a record. <a href="#a207e94c4a4f011c642ed61977526ece5"></a><br/></td></tr> |
| 113 |
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a7f7d67383bde2c7d41d33972ad11528a">firstkey</a> () throw (Curia_error)</td></tr> |
| 114 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first key. <a href="#a7f7d67383bde2c7d41d33972ad11528a"></a><br/></td></tr> |
| 115 |
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a7b42b5340f1d3306e5a6ba5a21c9abe9">nextkey</a> () throw (Curia_error)</td></tr> |
| 116 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the next key. <a href="#a7b42b5340f1d3306e5a6ba5a21c9abe9"></a><br/></td></tr> |
| 117 |
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#af7df4381a4eaefbf39ab7889eb2d49fb">error</a> () throw (Curia_error)</td></tr> |
| 118 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether a fatal error occured or not. <a href="#af7df4381a4eaefbf39ab7889eb2d49fb"></a><br/></td></tr> |
| 119 |
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> |
| 120 |
<tr><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a1035460a92ded6621bbf5fead9378057">version</a> () throw ()</td></tr> |
| 121 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the version information. <a href="#a1035460a92ded6621bbf5fead9378057"></a><br/></td></tr> |
| 122 |
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a4b4c161fa8bad4f3e1ce8e8912794604">remove</a> (const char *name) throw (Curia_error)</td></tr> |
| 123 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove a database directory. <a href="#a4b4c161fa8bad4f3e1ce8e8912794604"></a><br/></td></tr> |
| 124 |
<tr><td class="memItemLeft" align="right" valign="top">static char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a43db34bbb26b1961abd5abb865c151f7">snaffle</a> (const char *name, const char *kbuf, int ksiz, int *sp) throw (Curia_error)</td></tr> |
| 125 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a record directly from a database directory. <a href="#a43db34bbb26b1961abd5abb865c151f7"></a><br/></td></tr> |
| 126 |
<tr><td colspan="2"><h2>Public Attributes</h2></td></tr> |
| 127 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af357f56a110cde0d7b4d81fba7381120"></a> |
| 128 |
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#af357f56a110cde0d7b4d81fba7381120">silent</a></td></tr> |
| 129 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">whether to repress frequent exceptions <br/></td></tr> |
| 130 |
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr> |
| 131 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af3bea4ef0467f82336dc3afa74049b36"></a> |
| 132 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#af3bea4ef0467f82336dc3afa74049b36">ENOERR</a></td></tr> |
| 133 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: no error <br/></td></tr> |
| 134 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7954f22ea0ed5e1f05e9de3434ab8152"></a> |
| 135 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a7954f22ea0ed5e1f05e9de3434ab8152">EFATAL</a></td></tr> |
| 136 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: with fatal error <br/></td></tr> |
| 137 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95a6cecb09a6e9f095aee2c18a685f87"></a> |
| 138 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a95a6cecb09a6e9f095aee2c18a685f87">EMODE</a></td></tr> |
| 139 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: invalid mode <br/></td></tr> |
| 140 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc27d5b97a1f4b1749d2df25ad0ee450"></a> |
| 141 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#abc27d5b97a1f4b1749d2df25ad0ee450">EBROKEN</a></td></tr> |
| 142 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: broken database file <br/></td></tr> |
| 143 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8264e6a4b043e2cdd419597e2e09556f"></a> |
| 144 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a8264e6a4b043e2cdd419597e2e09556f">EKEEP</a></td></tr> |
| 145 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: existing record <br/></td></tr> |
| 146 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="addc3a529bba6b62b613e724345dc9d11"></a> |
| 147 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#addc3a529bba6b62b613e724345dc9d11">ENOITEM</a></td></tr> |
| 148 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: no item found <br/></td></tr> |
| 149 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="addcf28e777629cd1129a5930992672d4"></a> |
| 150 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#addcf28e777629cd1129a5930992672d4">EALLOC</a></td></tr> |
| 151 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: memory allocation error <br/></td></tr> |
| 152 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3db9bbab081270725d0c24903277e7a4"></a> |
| 153 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a3db9bbab081270725d0c24903277e7a4">EMAP</a></td></tr> |
| 154 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: memory mapping error <br/></td></tr> |
| 155 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98b9407ec8121c0c2473919aa73f09d3"></a> |
| 156 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a98b9407ec8121c0c2473919aa73f09d3">EOPEN</a></td></tr> |
| 157 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: open error <br/></td></tr> |
| 158 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24a7e7c7f339115c37a4196c1a799daa"></a> |
| 159 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a24a7e7c7f339115c37a4196c1a799daa">ECLOSE</a></td></tr> |
| 160 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: close error <br/></td></tr> |
| 161 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74ea58c9797000355f5075e055aafdb2"></a> |
| 162 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a74ea58c9797000355f5075e055aafdb2">ETRUNC</a></td></tr> |
| 163 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: trunc error <br/></td></tr> |
| 164 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97f9d7e39e73ef74c4e1aa4e08aabd27"></a> |
| 165 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a97f9d7e39e73ef74c4e1aa4e08aabd27">ESYNC</a></td></tr> |
| 166 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: sync error <br/></td></tr> |
| 167 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ad1932e098992fcd44f4480ade9311b"></a> |
| 168 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a9ad1932e098992fcd44f4480ade9311b">ESTAT</a></td></tr> |
| 169 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: stat error <br/></td></tr> |
| 170 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adb6e29f5f9bc9644d527e3dd97a4ec9b"></a> |
| 171 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#adb6e29f5f9bc9644d527e3dd97a4ec9b">ESEEK</a></td></tr> |
| 172 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: seek error <br/></td></tr> |
| 173 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbe6fd6b61d3b5c340cb279e055be223"></a> |
| 174 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#acbe6fd6b61d3b5c340cb279e055be223">EREAD</a></td></tr> |
| 175 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: read error <br/></td></tr> |
| 176 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac1040826f2fa2db491ac5e57864ea964"></a> |
| 177 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ac1040826f2fa2db491ac5e57864ea964">EWRITE</a></td></tr> |
| 178 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: write error <br/></td></tr> |
| 179 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af3f3535052c679b1c96025ae50eec50b"></a> |
| 180 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#af3f3535052c679b1c96025ae50eec50b">ELOCK</a></td></tr> |
| 181 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: lock error <br/></td></tr> |
| 182 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3bf56f125ce2601d79cc647f1f98b9e"></a> |
| 183 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#aa3bf56f125ce2601d79cc647f1f98b9e">EUNLINK</a></td></tr> |
| 184 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: unlink error <br/></td></tr> |
| 185 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46a5a60bcd4d9a1807000bfb5fcbe484"></a> |
| 186 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a46a5a60bcd4d9a1807000bfb5fcbe484">EMKDIR</a></td></tr> |
| 187 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: mkdir error <br/></td></tr> |
| 188 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9c3a7bf7d2e80b044ea4caafc9f40907"></a> |
| 189 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a9c3a7bf7d2e80b044ea4caafc9f40907">ERMDIR</a></td></tr> |
| 190 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: rmdir error <br/></td></tr> |
| 191 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a456bb347a6a8aaef8bbc6bc27f65e994"></a> |
| 192 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a456bb347a6a8aaef8bbc6bc27f65e994">EMISC</a></td></tr> |
| 193 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">error code: miscellaneous error <br/></td></tr> |
| 194 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa65dc78a717d2e4589ff02d83cdc31d4"></a> |
| 195 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#aa65dc78a717d2e4589ff02d83cdc31d4">OREADER</a></td></tr> |
| 196 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">open mode: open as a reader <br/></td></tr> |
| 197 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc8ed442f849d51e3e5613ad30c9b502"></a> |
| 198 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#acc8ed442f849d51e3e5613ad30c9b502">OWRITER</a></td></tr> |
| 199 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">open mode: open as a writer <br/></td></tr> |
| 200 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8c320aaa573431822398ba6f014b59c7"></a> |
| 201 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a8c320aaa573431822398ba6f014b59c7">OCREAT</a></td></tr> |
| 202 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">open mode: writer creating <br/></td></tr> |
| 203 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d0388132de30fe696d1ffad8d8a6c7e"></a> |
| 204 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a4d0388132de30fe696d1ffad8d8a6c7e">OTRUNC</a></td></tr> |
| 205 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">open mode: writer truncating <br/></td></tr> |
| 206 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b8570c926b8c8e1e012ed2378e91f26"></a> |
| 207 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a8b8570c926b8c8e1e012ed2378e91f26">ONOLCK</a></td></tr> |
| 208 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">open mode: open without locking <br/></td></tr> |
| 209 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aefa89b1b195083c8f43ad5b9614f28dc"></a> |
| 210 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#aefa89b1b195083c8f43ad5b9614f28dc">OLCKNB</a></td></tr> |
| 211 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">open mode: lock without blocking <br/></td></tr> |
| 212 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67f7f1da753adf05e13a04f841a8161d"></a> |
| 213 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a67f7f1da753adf05e13a04f841a8161d">OSPARSE</a></td></tr> |
| 214 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">open mode: create as sparse files <br/></td></tr> |
| 215 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1ca3d89aa8768d6947a095366704dd2"></a> |
| 216 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#ae1ca3d89aa8768d6947a095366704dd2">DOVER</a></td></tr> |
| 217 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">write mode: overwrite the existing value <br/></td></tr> |
| 218 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a072a44581f913b4c16d30047a43b5173"></a> |
| 219 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a072a44581f913b4c16d30047a43b5173">DKEEP</a></td></tr> |
| 220 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">write mode: keep the existing value <br/></td></tr> |
| 221 |
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a721740e466971e4c9825a407cd8df013"></a> |
| 222 |
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Curia.html#a721740e466971e4c9825a407cd8df013">DCAT</a></td></tr> |
| 223 |
<tr><td class="mdescLeft"> </td><td class="mdescRight">write mode: concatenate values <br/></td></tr> |
| 224 |
</table> |
| 225 |
<hr/><a name="_details"></a><h2>Detailed Description</h2> |
| 226 |
<p>C++ API of <a class="el" href="classqdbm_1_1Curia.html" title="C++ API of Curia, the extended API of QDBM.">Curia</a>, the extended API of QDBM. </p> |
| 227 |
<hr/><h2>Constructor & Destructor Documentation</h2> |
| 228 |
<a class="anchor" id="ac13b68c8973b964891460689bd83d85a"></a> |
| 229 |
<div class="memitem"> |
| 230 |
<div class="memproto"> |
| 231 |
<table class="memname"> |
| 232 |
<tr> |
| 233 |
<td class="memname">qdbm::Curia::Curia </td> |
| 234 |
<td>(</td> |
| 235 |
<td class="paramtype">const char * </td> |
| 236 |
<td class="paramname"> <em>name</em>, </td> |
| 237 |
</tr> |
| 238 |
<tr> |
| 239 |
<td class="paramkey"></td> |
| 240 |
<td></td> |
| 241 |
<td class="paramtype">int </td> |
| 242 |
<td class="paramname"> <em>omode</em> = <code><a class="el" href="classqdbm_1_1Curia.html#aa65dc78a717d2e4589ff02d83cdc31d4">Curia::OREADER</a></code>, </td> |
| 243 |
</tr> |
| 244 |
<tr> |
| 245 |
<td class="paramkey"></td> |
| 246 |
<td></td> |
| 247 |
<td class="paramtype">int </td> |
| 248 |
<td class="paramname"> <em>bnum</em> = <code>-1</code>, </td> |
| 249 |
</tr> |
| 250 |
<tr> |
| 251 |
<td class="paramkey"></td> |
| 252 |
<td></td> |
| 253 |
<td class="paramtype">int </td> |
| 254 |
<td class="paramname"> <em>dnum</em> = <code>-1</code></td><td> </td> |
| 255 |
</tr> |
| 256 |
<tr> |
| 257 |
<td></td> |
| 258 |
<td>)</td> |
| 259 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)</td> |
| 260 |
</tr> |
| 261 |
</table> |
| 262 |
</div> |
| 263 |
<div class="memdoc"> |
| 264 |
|
| 265 |
<p>Get the database handle. </p> |
| 266 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 267 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 268 |
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>the name of a database directory. </td></tr> |
| 269 |
<tr><td valign="top"></td><td valign="top"><em>omode</em> </td><td>the connection mode: `CuriaOWRITER' as a writer, `CuriaOREADER' as a reader. If the mode is `CuriaOWRITER', the following may be added by bitwise or: `CuriaOCREAT', which means it creates a new database if not exist, `CuriaOTRUNC', which means it creates a new database regardless if one exists. Both of `CuriaOREADER' and `CuriaOWRITER' can be added to by bitwise or: `CuriaONOLCK', which means it opens a database directory without file locking, or `CuriaOLCKNB', which means locking is performed without blocking. `CuriaOCREAT' can be added to by bitwise or: `CuriaOSPARSE', which means it creates database files as sparse files. </td></tr> |
| 270 |
<tr><td valign="top"></td><td valign="top"><em>bnum</em> </td><td>the number of elements of each bucket array. If it is not more than 0, the default value is specified. The size of each bucket array is determined on creating, and can not be changed except for by optimization of the database. Suggested size of each bucket array is about from 0.5 to 4 times of the number of all records to store. </td></tr> |
| 271 |
<tr><td valign="top"></td><td valign="top"><em>dnum</em> </td><td>the number of division of the database. If it is not more than 0, the default value is specified. The number of division can not be changed from the initial value. The max number of division is 512. </td></tr> |
| 272 |
</table> |
| 273 |
</dd> |
| 274 |
</dl> |
| 275 |
<dl class="note"><dt><b>Note:</b></dt><dd>While connecting as a writer, an exclusive lock is invoked to the database directory. While connecting as a reader, a shared lock is invoked to the database directory. The thread blocks until the lock is achieved. If `CuriaONOLCK' is used, the application is responsible for exclusion control. </dd></dl> |
| 276 |
|
| 277 |
</div> |
| 278 |
</div> |
| 279 |
<a class="anchor" id="a5933079aa458904e52bcccae98b24522"></a> |
| 280 |
<div class="memitem"> |
| 281 |
<div class="memproto"> |
| 282 |
<table class="memname"> |
| 283 |
<tr> |
| 284 |
<td class="memname">virtual qdbm::Curia::~Curia </td> |
| 285 |
<td>(</td> |
| 286 |
<td class="paramname"></td> |
| 287 |
<td> ) </td> |
| 288 |
<td> throw ()<code> [virtual]</code></td> |
| 289 |
</tr> |
| 290 |
</table> |
| 291 |
</div> |
| 292 |
<div class="memdoc"> |
| 293 |
|
| 294 |
<p>Release the resources. </p> |
| 295 |
<dl class="note"><dt><b>Note:</b></dt><dd>If the database handle is not closed yet, it is closed. </dd></dl> |
| 296 |
|
| 297 |
</div> |
| 298 |
</div> |
| 299 |
<hr/><h2>Member Function Documentation</h2> |
| 300 |
<a class="anchor" id="a18d43a2b38634ca02c5d3e0883076232"></a> |
| 301 |
<div class="memitem"> |
| 302 |
<div class="memproto"> |
| 303 |
<table class="memname"> |
| 304 |
<tr> |
| 305 |
<td class="memname">virtual int qdbm::Curia::bnum </td> |
| 306 |
<td>(</td> |
| 307 |
<td class="paramname"></td> |
| 308 |
<td> ) </td> |
| 309 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 310 |
</tr> |
| 311 |
</table> |
| 312 |
</div> |
| 313 |
<div class="memdoc"> |
| 314 |
|
| 315 |
<p>Get the total number of the elements of each bucket array. </p> |
| 316 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the total number of the elements of each bucket array. </dd></dl> |
| 317 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 318 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 319 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 320 |
</table> |
| 321 |
</dd> |
| 322 |
</dl> |
| 323 |
|
| 324 |
</div> |
| 325 |
</div> |
| 326 |
<a class="anchor" id="a209ab5deee68108daf6948fb08396efb"></a> |
| 327 |
<div class="memitem"> |
| 328 |
<div class="memproto"> |
| 329 |
<table class="memname"> |
| 330 |
<tr> |
| 331 |
<td class="memname">virtual int qdbm::Curia::busenum </td> |
| 332 |
<td>(</td> |
| 333 |
<td class="paramname"></td> |
| 334 |
<td> ) </td> |
| 335 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 336 |
</tr> |
| 337 |
</table> |
| 338 |
</div> |
| 339 |
<div class="memdoc"> |
| 340 |
|
| 341 |
<p>Get the total number of the used elements of each bucket array. </p> |
| 342 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the total number of the used elements of each bucket array. </dd></dl> |
| 343 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 344 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 345 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 346 |
</table> |
| 347 |
</dd> |
| 348 |
</dl> |
| 349 |
<dl class="note"><dt><b>Note:</b></dt><dd>This function is inefficient because it accesses all elements of each bucket array. </dd></dl> |
| 350 |
|
| 351 |
</div> |
| 352 |
</div> |
| 353 |
<a class="anchor" id="a4832ef51c2b16dde2d0c588c698ecb82"></a> |
| 354 |
<div class="memitem"> |
| 355 |
<div class="memproto"> |
| 356 |
<table class="memname"> |
| 357 |
<tr> |
| 358 |
<td class="memname">virtual void qdbm::Curia::close </td> |
| 359 |
<td>(</td> |
| 360 |
<td class="paramname"></td> |
| 361 |
<td> ) </td> |
| 362 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 363 |
</tr> |
| 364 |
</table> |
| 365 |
</div> |
| 366 |
<div class="memdoc"> |
| 367 |
|
| 368 |
<p>Close the database handle. </p> |
| 369 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 370 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 371 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 372 |
</table> |
| 373 |
</dd> |
| 374 |
</dl> |
| 375 |
<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. </dd></dl> |
| 376 |
|
| 377 |
<p>Implements <a class="el" href="classqdbm_1_1ADBM.html#afe282ce1168c9a437b74e6f90e21db3d">qdbm::ADBM</a>.</p> |
| 378 |
|
| 379 |
</div> |
| 380 |
</div> |
| 381 |
<a class="anchor" id="a76f84ca2271fda527946881a19f80374"></a> |
| 382 |
<div class="memitem"> |
| 383 |
<div class="memproto"> |
| 384 |
<table class="memname"> |
| 385 |
<tr> |
| 386 |
<td class="memname">virtual void qdbm::Curia::deleterec </td> |
| 387 |
<td>(</td> |
| 388 |
<td class="paramtype">const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> & </td> |
| 389 |
<td class="paramname"> <em>key</em></td> |
| 390 |
<td> ) </td> |
| 391 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 392 |
</tr> |
| 393 |
</table> |
| 394 |
</div> |
| 395 |
<div class="memdoc"> |
| 396 |
|
| 397 |
<p>Delete a record. </p> |
| 398 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 399 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 400 |
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>reference to a key object. </td></tr> |
| 401 |
</table> |
| 402 |
</dd> |
| 403 |
</dl> |
| 404 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 405 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 406 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no record corresponds. </td></tr> |
| 407 |
</table> |
| 408 |
</dd> |
| 409 |
</dl> |
| 410 |
|
| 411 |
<p>Implements <a class="el" href="classqdbm_1_1ADBM.html#aacf9ce119ffd2f3da213cdffd2428ac6">qdbm::ADBM</a>.</p> |
| 412 |
|
| 413 |
</div> |
| 414 |
</div> |
| 415 |
<a class="anchor" id="af7df4381a4eaefbf39ab7889eb2d49fb"></a> |
| 416 |
<div class="memitem"> |
| 417 |
<div class="memproto"> |
| 418 |
<table class="memname"> |
| 419 |
<tr> |
| 420 |
<td class="memname">virtual bool qdbm::Curia::error </td> |
| 421 |
<td>(</td> |
| 422 |
<td class="paramname"></td> |
| 423 |
<td> ) </td> |
| 424 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 425 |
</tr> |
| 426 |
</table> |
| 427 |
</div> |
| 428 |
<div class="memdoc"> |
| 429 |
|
| 430 |
<p>Check whether a fatal error occured or not. </p> |
| 431 |
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the database has a fatal error, false if not. </dd></dl> |
| 432 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 433 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 434 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 435 |
</table> |
| 436 |
</dd> |
| 437 |
</dl> |
| 438 |
|
| 439 |
<p>Implements <a class="el" href="classqdbm_1_1ADBM.html#abbd9f01defd662ef69c706b6b5d7bb54">qdbm::ADBM</a>.</p> |
| 440 |
|
| 441 |
</div> |
| 442 |
</div> |
| 443 |
<a class="anchor" id="ace220852fa6c27c60ca161b5f1995d77"></a> |
| 444 |
<div class="memitem"> |
| 445 |
<div class="memproto"> |
| 446 |
<table class="memname"> |
| 447 |
<tr> |
| 448 |
<td class="memname">virtual bool qdbm::Curia::fatalerror </td> |
| 449 |
<td>(</td> |
| 450 |
<td class="paramname"></td> |
| 451 |
<td> ) </td> |
| 452 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 453 |
</tr> |
| 454 |
</table> |
| 455 |
</div> |
| 456 |
<div class="memdoc"> |
| 457 |
|
| 458 |
<p>Check whether the database has a fatal error or not. </p> |
| 459 |
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the database has a fatal error, false if not. </dd></dl> |
| 460 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 461 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 462 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 463 |
</table> |
| 464 |
</dd> |
| 465 |
</dl> |
| 466 |
|
| 467 |
</div> |
| 468 |
</div> |
| 469 |
<a class="anchor" id="a207e94c4a4f011c642ed61977526ece5"></a> |
| 470 |
<div class="memitem"> |
| 471 |
<div class="memproto"> |
| 472 |
<table class="memname"> |
| 473 |
<tr> |
| 474 |
<td class="memname">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> qdbm::Curia::fetchrec </td> |
| 475 |
<td>(</td> |
| 476 |
<td class="paramtype">const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> & </td> |
| 477 |
<td class="paramname"> <em>key</em></td> |
| 478 |
<td> ) </td> |
| 479 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 480 |
</tr> |
| 481 |
</table> |
| 482 |
</div> |
| 483 |
<div class="memdoc"> |
| 484 |
|
| 485 |
<p>Fetch a record. </p> |
| 486 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 487 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 488 |
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>reference to a key object. </td></tr> |
| 489 |
</table> |
| 490 |
</dd> |
| 491 |
</dl> |
| 492 |
<dl class="return"><dt><b>Returns:</b></dt><dd>a temporary instance of the value of the corresponding record. </dd></dl> |
| 493 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 494 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 495 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no record corresponds. </td></tr> |
| 496 |
</table> |
| 497 |
</dd> |
| 498 |
</dl> |
| 499 |
|
| 500 |
<p>Implements <a class="el" href="classqdbm_1_1ADBM.html#a2ed1c91281ac685374082639369dc7b1">qdbm::ADBM</a>.</p> |
| 501 |
|
| 502 |
</div> |
| 503 |
</div> |
| 504 |
<a class="anchor" id="a7f7d67383bde2c7d41d33972ad11528a"></a> |
| 505 |
<div class="memitem"> |
| 506 |
<div class="memproto"> |
| 507 |
<table class="memname"> |
| 508 |
<tr> |
| 509 |
<td class="memname">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> qdbm::Curia::firstkey </td> |
| 510 |
<td>(</td> |
| 511 |
<td class="paramname"></td> |
| 512 |
<td> ) </td> |
| 513 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 514 |
</tr> |
| 515 |
</table> |
| 516 |
</div> |
| 517 |
<div class="memdoc"> |
| 518 |
|
| 519 |
<p>Get the first key. </p> |
| 520 |
<dl class="return"><dt><b>Returns:</b></dt><dd>a temporary instance of the key of the first record. </dd></dl> |
| 521 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 522 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 523 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no record corresponds. </td></tr> |
| 524 |
</table> |
| 525 |
</dd> |
| 526 |
</dl> |
| 527 |
|
| 528 |
<p>Implements <a class="el" href="classqdbm_1_1ADBM.html#a457f066a06a8e2c7bdcced9c3a83bc86">qdbm::ADBM</a>.</p> |
| 529 |
|
| 530 |
</div> |
| 531 |
</div> |
| 532 |
<a class="anchor" id="a31eecf7dcd8e68143f04a4c4095a7621"></a> |
| 533 |
<div class="memitem"> |
| 534 |
<div class="memproto"> |
| 535 |
<table class="memname"> |
| 536 |
<tr> |
| 537 |
<td class="memname">virtual int qdbm::Curia::fsiz </td> |
| 538 |
<td>(</td> |
| 539 |
<td class="paramname"></td> |
| 540 |
<td> ) </td> |
| 541 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 542 |
</tr> |
| 543 |
</table> |
| 544 |
</div> |
| 545 |
<div class="memdoc"> |
| 546 |
|
| 547 |
<p>Get the total size of database files. </p> |
| 548 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the total size of the database files. </dd></dl> |
| 549 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 550 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 551 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 552 |
</table> |
| 553 |
</dd> |
| 554 |
</dl> |
| 555 |
<dl class="note"><dt><b>Note:</b></dt><dd>If the total size is more than 2GB, the return value overflows. </dd></dl> |
| 556 |
|
| 557 |
</div> |
| 558 |
</div> |
| 559 |
<a class="anchor" id="ac799686ef5fa4c1ef05a5a326455f482"></a> |
| 560 |
<div class="memitem"> |
| 561 |
<div class="memproto"> |
| 562 |
<table class="memname"> |
| 563 |
<tr> |
| 564 |
<td class="memname">virtual double qdbm::Curia::fsizd </td> |
| 565 |
<td>(</td> |
| 566 |
<td class="paramname"></td> |
| 567 |
<td> ) </td> |
| 568 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 569 |
</tr> |
| 570 |
</table> |
| 571 |
</div> |
| 572 |
<div class="memdoc"> |
| 573 |
|
| 574 |
<p>Get the total size of database files as double-precision floating-point number. </p> |
| 575 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the total size of the database files. </dd></dl> |
| 576 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 577 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 578 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 579 |
</table> |
| 580 |
</dd> |
| 581 |
</dl> |
| 582 |
|
| 583 |
</div> |
| 584 |
</div> |
| 585 |
<a class="anchor" id="a08e9398278d6b1f9160ff0e55d197cb1"></a> |
| 586 |
<div class="memitem"> |
| 587 |
<div class="memproto"> |
| 588 |
<table class="memname"> |
| 589 |
<tr> |
| 590 |
<td class="memname">virtual char* qdbm::Curia::get </td> |
| 591 |
<td>(</td> |
| 592 |
<td class="paramtype">const char * </td> |
| 593 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 594 |
</tr> |
| 595 |
<tr> |
| 596 |
<td class="paramkey"></td> |
| 597 |
<td></td> |
| 598 |
<td class="paramtype">int </td> |
| 599 |
<td class="paramname"> <em>ksiz</em>, </td> |
| 600 |
</tr> |
| 601 |
<tr> |
| 602 |
<td class="paramkey"></td> |
| 603 |
<td></td> |
| 604 |
<td class="paramtype">int </td> |
| 605 |
<td class="paramname"> <em>start</em> = <code>0</code>, </td> |
| 606 |
</tr> |
| 607 |
<tr> |
| 608 |
<td class="paramkey"></td> |
| 609 |
<td></td> |
| 610 |
<td class="paramtype">int </td> |
| 611 |
<td class="paramname"> <em>max</em> = <code>-1</code>, </td> |
| 612 |
</tr> |
| 613 |
<tr> |
| 614 |
<td class="paramkey"></td> |
| 615 |
<td></td> |
| 616 |
<td class="paramtype">int * </td> |
| 617 |
<td class="paramname"> <em>sp</em> = <code>0</code></td><td> </td> |
| 618 |
</tr> |
| 619 |
<tr> |
| 620 |
<td></td> |
| 621 |
<td>)</td> |
| 622 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 623 |
</tr> |
| 624 |
</table> |
| 625 |
</div> |
| 626 |
<div class="memdoc"> |
| 627 |
|
| 628 |
<p>Retrieve a record. </p> |
| 629 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 630 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 631 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 632 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 633 |
<tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>the offset address of the beginning of the region of the value to be read. </td></tr> |
| 634 |
<tr><td valign="top"></td><td valign="top"><em>max</em> </td><td>the max size to read with. If it is negative, the size is unlimited. </td></tr> |
| 635 |
<tr><td valign="top"></td><td valign="top"><em>sp</em> </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> |
| 636 |
</table> |
| 637 |
</dd> |
| 638 |
</dl> |
| 639 |
<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> |
| 640 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 641 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 642 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs, no record corresponds, or the size of the value of the corresponding record is less than `start'. </td></tr> |
| 643 |
</table> |
| 644 |
</dd> |
| 645 |
</dl> |
| 646 |
<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> |
| 647 |
|
| 648 |
</div> |
| 649 |
</div> |
| 650 |
<a class="anchor" id="a9a4487218c08d07e0ef30d15c7a89675"></a> |
| 651 |
<div class="memitem"> |
| 652 |
<div class="memproto"> |
| 653 |
<table class="memname"> |
| 654 |
<tr> |
| 655 |
<td class="memname">virtual char* qdbm::Curia::getlob </td> |
| 656 |
<td>(</td> |
| 657 |
<td class="paramtype">const char * </td> |
| 658 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 659 |
</tr> |
| 660 |
<tr> |
| 661 |
<td class="paramkey"></td> |
| 662 |
<td></td> |
| 663 |
<td class="paramtype">int </td> |
| 664 |
<td class="paramname"> <em>ksiz</em>, </td> |
| 665 |
</tr> |
| 666 |
<tr> |
| 667 |
<td class="paramkey"></td> |
| 668 |
<td></td> |
| 669 |
<td class="paramtype">int </td> |
| 670 |
<td class="paramname"> <em>start</em> = <code>0</code>, </td> |
| 671 |
</tr> |
| 672 |
<tr> |
| 673 |
<td class="paramkey"></td> |
| 674 |
<td></td> |
| 675 |
<td class="paramtype">int </td> |
| 676 |
<td class="paramname"> <em>max</em> = <code>-1</code>, </td> |
| 677 |
</tr> |
| 678 |
<tr> |
| 679 |
<td class="paramkey"></td> |
| 680 |
<td></td> |
| 681 |
<td class="paramtype">int * </td> |
| 682 |
<td class="paramname"> <em>sp</em> = <code>0</code></td><td> </td> |
| 683 |
</tr> |
| 684 |
<tr> |
| 685 |
<td></td> |
| 686 |
<td>)</td> |
| 687 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 688 |
</tr> |
| 689 |
</table> |
| 690 |
</div> |
| 691 |
<div class="memdoc"> |
| 692 |
|
| 693 |
<p>Retrieve a large object. </p> |
| 694 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 695 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 696 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 697 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 698 |
<tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>the offset address of the beginning of the region of the value to be read. </td></tr> |
| 699 |
<tr><td valign="top"></td><td valign="top"><em>max</em> </td><td>the max size to be read. If it is negative, the size to read is unlimited. </td></tr> |
| 700 |
<tr><td valign="top"></td><td valign="top"><em>sp</em> </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> |
| 701 |
</table> |
| 702 |
</dd> |
| 703 |
</dl> |
| 704 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the region of the value of the corresponding large object. If the silent flag is true and no record corresponds, 0 is returned instead of exception. </dd></dl> |
| 705 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 706 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 707 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs, no record corresponds, or the size of the value of the corresponding record is less than `start'. </td></tr> |
| 708 |
</table> |
| 709 |
</dd> |
| 710 |
</dl> |
| 711 |
<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> |
| 712 |
|
| 713 |
</div> |
| 714 |
</div> |
| 715 |
<a class="anchor" id="a0d5cb7f939032251b31bdf1b4a47f080"></a> |
| 716 |
<div class="memitem"> |
| 717 |
<div class="memproto"> |
| 718 |
<table class="memname"> |
| 719 |
<tr> |
| 720 |
<td class="memname">virtual int qdbm::Curia::getlobfd </td> |
| 721 |
<td>(</td> |
| 722 |
<td class="paramtype">const char * </td> |
| 723 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 724 |
</tr> |
| 725 |
<tr> |
| 726 |
<td class="paramkey"></td> |
| 727 |
<td></td> |
| 728 |
<td class="paramtype">int </td> |
| 729 |
<td class="paramname"> <em>ksiz</em></td><td> </td> |
| 730 |
</tr> |
| 731 |
<tr> |
| 732 |
<td></td> |
| 733 |
<td>)</td> |
| 734 |
<td></td><td></td><td><code> [virtual]</code></td> |
| 735 |
</tr> |
| 736 |
</table> |
| 737 |
</div> |
| 738 |
<div class="memdoc"> |
| 739 |
|
| 740 |
<p>Get the file descriptor of a large object. </p> |
| 741 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 742 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 743 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 744 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 745 |
</table> |
| 746 |
</dd> |
| 747 |
</dl> |
| 748 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the file descriptor of the corresponding large object. If the silent flag is true and no record corresponds, -1 is returned instead of exception. </dd></dl> |
| 749 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 750 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 751 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no record corresponds. </td></tr> |
| 752 |
</table> |
| 753 |
</dd> |
| 754 |
</dl> |
| 755 |
<dl class="note"><dt><b>Note:</b></dt><dd>The returned file descriptor is opened with the `open' call. If the database handle was opened as a writer, the descriptor is writable (O_RDWR), else, it is not writable (O_RDONLY). The descriptor should be closed with the `close' call if it is no longer in use. </dd></dl> |
| 756 |
|
| 757 |
</div> |
| 758 |
</div> |
| 759 |
<a class="anchor" id="a7ea118d43fb5a6d33b558d4f5ebb41f3"></a> |
| 760 |
<div class="memitem"> |
| 761 |
<div class="memproto"> |
| 762 |
<table class="memname"> |
| 763 |
<tr> |
| 764 |
<td class="memname">virtual int qdbm::Curia::getwb </td> |
| 765 |
<td>(</td> |
| 766 |
<td class="paramtype">const char * </td> |
| 767 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 768 |
</tr> |
| 769 |
<tr> |
| 770 |
<td class="paramkey"></td> |
| 771 |
<td></td> |
| 772 |
<td class="paramtype">int </td> |
| 773 |
<td class="paramname"> <em>ksiz</em>, </td> |
| 774 |
</tr> |
| 775 |
<tr> |
| 776 |
<td class="paramkey"></td> |
| 777 |
<td></td> |
| 778 |
<td class="paramtype">int </td> |
| 779 |
<td class="paramname"> <em>start</em>, </td> |
| 780 |
</tr> |
| 781 |
<tr> |
| 782 |
<td class="paramkey"></td> |
| 783 |
<td></td> |
| 784 |
<td class="paramtype">int </td> |
| 785 |
<td class="paramname"> <em>max</em>, </td> |
| 786 |
</tr> |
| 787 |
<tr> |
| 788 |
<td class="paramkey"></td> |
| 789 |
<td></td> |
| 790 |
<td class="paramtype">char * </td> |
| 791 |
<td class="paramname"> <em>vbuf</em></td><td> </td> |
| 792 |
</tr> |
| 793 |
<tr> |
| 794 |
<td></td> |
| 795 |
<td>)</td> |
| 796 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 797 |
</tr> |
| 798 |
</table> |
| 799 |
</div> |
| 800 |
<div class="memdoc"> |
| 801 |
|
| 802 |
<p>Retrieve a record and write the value into a buffer. </p> |
| 803 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 804 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 805 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 806 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 807 |
<tr><td valign="top"></td><td valign="top"><em>start</em> </td><td>the offset address of the beginning of the region of the value to be read. </td></tr> |
| 808 |
<tr><td valign="top"></td><td valign="top"><em>max</em> </td><td>the max size to be read. It shuld be equal to or less than the size of the writing buffer. </td></tr> |
| 809 |
<tr><td valign="top"></td><td valign="top"><em>vbuf</em> </td><td>the pointer to a buffer into which the value of the corresponding record is written. </td></tr> |
| 810 |
</table> |
| 811 |
</dd> |
| 812 |
</dl> |
| 813 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the return value is the size of the written data. If the silent flag is true and no record corresponds, -1 is returned instead of exception. </dd></dl> |
| 814 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 815 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 816 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs, no record corresponds, or the size of the value of the corresponding record is less than `start'. </td></tr> |
| 817 |
</table> |
| 818 |
</dd> |
| 819 |
</dl> |
| 820 |
<dl class="note"><dt><b>Note:</b></dt><dd>No additional zero code is appended at the end of the region of the writing buffer. </dd></dl> |
| 821 |
|
| 822 |
</div> |
| 823 |
</div> |
| 824 |
<a class="anchor" id="ae174c73186d0f239b08a23da219cde09"></a> |
| 825 |
<div class="memitem"> |
| 826 |
<div class="memproto"> |
| 827 |
<table class="memname"> |
| 828 |
<tr> |
| 829 |
<td class="memname">virtual int qdbm::Curia::inode </td> |
| 830 |
<td>(</td> |
| 831 |
<td class="paramname"></td> |
| 832 |
<td> ) </td> |
| 833 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 834 |
</tr> |
| 835 |
</table> |
| 836 |
</div> |
| 837 |
<div class="memdoc"> |
| 838 |
|
| 839 |
<p>Get the inode number of the database directory. </p> |
| 840 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the inode number of the database directory. </dd></dl> |
| 841 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 842 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 843 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 844 |
</table> |
| 845 |
</dd> |
| 846 |
</dl> |
| 847 |
|
| 848 |
</div> |
| 849 |
</div> |
| 850 |
<a class="anchor" id="af6598728bdb7b354907ef91f975839cb"></a> |
| 851 |
<div class="memitem"> |
| 852 |
<div class="memproto"> |
| 853 |
<table class="memname"> |
| 854 |
<tr> |
| 855 |
<td class="memname">virtual void qdbm::Curia::iterinit </td> |
| 856 |
<td>(</td> |
| 857 |
<td class="paramname"></td> |
| 858 |
<td> ) </td> |
| 859 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 860 |
</tr> |
| 861 |
</table> |
| 862 |
</div> |
| 863 |
<div class="memdoc"> |
| 864 |
|
| 865 |
<p>Initialize the iterator of the database handle. </p> |
| 866 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 867 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 868 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 869 |
</table> |
| 870 |
</dd> |
| 871 |
</dl> |
| 872 |
<dl class="note"><dt><b>Note:</b></dt><dd>The iterator is used in order to access the key of every record stored in a database. </dd></dl> |
| 873 |
|
| 874 |
</div> |
| 875 |
</div> |
| 876 |
<a class="anchor" id="ab039fb42cd21fdf87dfab0848cbdb0d7"></a> |
| 877 |
<div class="memitem"> |
| 878 |
<div class="memproto"> |
| 879 |
<table class="memname"> |
| 880 |
<tr> |
| 881 |
<td class="memname">virtual char* qdbm::Curia::iternext </td> |
| 882 |
<td>(</td> |
| 883 |
<td class="paramtype">int * </td> |
| 884 |
<td class="paramname"> <em>sp</em> = <code>0</code></td> |
| 885 |
<td> ) </td> |
| 886 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 887 |
</tr> |
| 888 |
</table> |
| 889 |
</div> |
| 890 |
<div class="memdoc"> |
| 891 |
|
| 892 |
<p>Get the next key of the iterator. </p> |
| 893 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 894 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 895 |
<tr><td valign="top"></td><td valign="top"><em>sp</em> </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> |
| 896 |
</table> |
| 897 |
</dd> |
| 898 |
</dl> |
| 899 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the region of the next key. If the silent flag is true and no record corresponds, 0 is returned instead of exception. </dd></dl> |
| 900 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 901 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 902 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no record is to be get out of the iterator. </td></tr> |
| 903 |
</table> |
| 904 |
</dd> |
| 905 |
</dl> |
| 906 |
<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. It is possible to access every record by iteration of calling this function. However, it is not assured if updating the database is occurred while the iteration. Besides, the order of this traversal access method is arbitrary, so it is not assured that the order of storing matches the one of the traversal access. </dd></dl> |
| 907 |
|
| 908 |
</div> |
| 909 |
</div> |
| 910 |
<a class="anchor" id="a2d0cd37166d30685c804b4f662e76ea7"></a> |
| 911 |
<div class="memitem"> |
| 912 |
<div class="memproto"> |
| 913 |
<table class="memname"> |
| 914 |
<tr> |
| 915 |
<td class="memname">virtual time_t qdbm::Curia::mtime </td> |
| 916 |
<td>(</td> |
| 917 |
<td class="paramname"></td> |
| 918 |
<td> ) </td> |
| 919 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 920 |
</tr> |
| 921 |
</table> |
| 922 |
</div> |
| 923 |
<div class="memdoc"> |
| 924 |
|
| 925 |
<p>Get the last modified time of the database. </p> |
| 926 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the last modified time the database. </dd></dl> |
| 927 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 928 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 929 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 930 |
</table> |
| 931 |
</dd> |
| 932 |
</dl> |
| 933 |
|
| 934 |
</div> |
| 935 |
</div> |
| 936 |
<a class="anchor" id="a04404eb8b3530566c77577bd82e8c502"></a> |
| 937 |
<div class="memitem"> |
| 938 |
<div class="memproto"> |
| 939 |
<table class="memname"> |
| 940 |
<tr> |
| 941 |
<td class="memname">virtual char* qdbm::Curia::name </td> |
| 942 |
<td>(</td> |
| 943 |
<td class="paramname"></td> |
| 944 |
<td> ) </td> |
| 945 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 946 |
</tr> |
| 947 |
</table> |
| 948 |
</div> |
| 949 |
<div class="memdoc"> |
| 950 |
|
| 951 |
<p>Get the name of the database. </p> |
| 952 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the region of the name of the database. </dd></dl> |
| 953 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 954 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 955 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 956 |
</table> |
| 957 |
</dd> |
| 958 |
</dl> |
| 959 |
<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> |
| 960 |
|
| 961 |
</div> |
| 962 |
</div> |
| 963 |
<a class="anchor" id="a7b42b5340f1d3306e5a6ba5a21c9abe9"></a> |
| 964 |
<div class="memitem"> |
| 965 |
<div class="memproto"> |
| 966 |
<table class="memname"> |
| 967 |
<tr> |
| 968 |
<td class="memname">virtual <a class="el" href="classqdbm_1_1Datum.html">Datum</a> qdbm::Curia::nextkey </td> |
| 969 |
<td>(</td> |
| 970 |
<td class="paramname"></td> |
| 971 |
<td> ) </td> |
| 972 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 973 |
</tr> |
| 974 |
</table> |
| 975 |
</div> |
| 976 |
<div class="memdoc"> |
| 977 |
|
| 978 |
<p>Get the next key. </p> |
| 979 |
<dl class="return"><dt><b>Returns:</b></dt><dd>a temporary instance of the key of the next 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_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </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#ae14701fd3087fe35f6c83802cc217bec">qdbm::ADBM</a>.</p> |
| 988 |
|
| 989 |
</div> |
| 990 |
</div> |
| 991 |
<a class="anchor" id="ad9bfd6bc069be2132f96dbecf137da52"></a> |
| 992 |
<div class="memitem"> |
| 993 |
<div class="memproto"> |
| 994 |
<table class="memname"> |
| 995 |
<tr> |
| 996 |
<td class="memname">virtual void qdbm::Curia::optimize </td> |
| 997 |
<td>(</td> |
| 998 |
<td class="paramtype">int </td> |
| 999 |
<td class="paramname"> <em>bnum</em> = <code>-1</code></td> |
| 1000 |
<td> ) </td> |
| 1001 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1002 |
</tr> |
| 1003 |
</table> |
| 1004 |
</div> |
| 1005 |
<div class="memdoc"> |
| 1006 |
|
| 1007 |
<p>Optimize the database. </p> |
| 1008 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1009 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1010 |
<tr><td valign="top"></td><td valign="top"><em>bnum</em> </td><td>the number of the elements of each bucket array. If it is not more than 0, the default value is specified. </td></tr> |
| 1011 |
</table> |
| 1012 |
</dd> |
| 1013 |
</dl> |
| 1014 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1015 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1016 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 1017 |
</table> |
| 1018 |
</dd> |
| 1019 |
</dl> |
| 1020 |
<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. </dd></dl> |
| 1021 |
|
| 1022 |
</div> |
| 1023 |
</div> |
| 1024 |
<a class="anchor" id="aa7815b472ec5f55e1cb384c9f6fa6e90"></a> |
| 1025 |
<div class="memitem"> |
| 1026 |
<div class="memproto"> |
| 1027 |
<table class="memname"> |
| 1028 |
<tr> |
| 1029 |
<td class="memname">virtual bool qdbm::Curia::out </td> |
| 1030 |
<td>(</td> |
| 1031 |
<td class="paramtype">const char * </td> |
| 1032 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 1033 |
</tr> |
| 1034 |
<tr> |
| 1035 |
<td class="paramkey"></td> |
| 1036 |
<td></td> |
| 1037 |
<td class="paramtype">int </td> |
| 1038 |
<td class="paramname"> <em>ksiz</em></td><td> </td> |
| 1039 |
</tr> |
| 1040 |
<tr> |
| 1041 |
<td></td> |
| 1042 |
<td>)</td> |
| 1043 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1044 |
</tr> |
| 1045 |
</table> |
| 1046 |
</div> |
| 1047 |
<div class="memdoc"> |
| 1048 |
|
| 1049 |
<p>Delete a record. </p> |
| 1050 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1051 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1052 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 1053 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 1054 |
</table> |
| 1055 |
</dd> |
| 1056 |
</dl> |
| 1057 |
<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> |
| 1058 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1059 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1060 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no record corresponds. </td></tr> |
| 1061 |
</table> |
| 1062 |
</dd> |
| 1063 |
</dl> |
| 1064 |
|
| 1065 |
</div> |
| 1066 |
</div> |
| 1067 |
<a class="anchor" id="ab8ddddda084d0fecd7c672a1b000eb01"></a> |
| 1068 |
<div class="memitem"> |
| 1069 |
<div class="memproto"> |
| 1070 |
<table class="memname"> |
| 1071 |
<tr> |
| 1072 |
<td class="memname">virtual bool qdbm::Curia::outlob </td> |
| 1073 |
<td>(</td> |
| 1074 |
<td class="paramtype">const char * </td> |
| 1075 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 1076 |
</tr> |
| 1077 |
<tr> |
| 1078 |
<td class="paramkey"></td> |
| 1079 |
<td></td> |
| 1080 |
<td class="paramtype">int </td> |
| 1081 |
<td class="paramname"> <em>ksiz</em></td><td> </td> |
| 1082 |
</tr> |
| 1083 |
<tr> |
| 1084 |
<td></td> |
| 1085 |
<td>)</td> |
| 1086 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1087 |
</tr> |
| 1088 |
</table> |
| 1089 |
</div> |
| 1090 |
<div class="memdoc"> |
| 1091 |
|
| 1092 |
<p>Delete a large object. </p> |
| 1093 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1094 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1095 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 1096 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 1097 |
</table> |
| 1098 |
</dd> |
| 1099 |
</dl> |
| 1100 |
<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> |
| 1101 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1102 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1103 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no large object corresponds. </td></tr> |
| 1104 |
</table> |
| 1105 |
</dd> |
| 1106 |
</dl> |
| 1107 |
|
| 1108 |
</div> |
| 1109 |
</div> |
| 1110 |
<a class="anchor" id="a98fdbf3a1f990a2f660d59ea31b1c7c0"></a> |
| 1111 |
<div class="memitem"> |
| 1112 |
<div class="memproto"> |
| 1113 |
<table class="memname"> |
| 1114 |
<tr> |
| 1115 |
<td class="memname">virtual bool qdbm::Curia::put </td> |
| 1116 |
<td>(</td> |
| 1117 |
<td class="paramtype">const char * </td> |
| 1118 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 1119 |
</tr> |
| 1120 |
<tr> |
| 1121 |
<td class="paramkey"></td> |
| 1122 |
<td></td> |
| 1123 |
<td class="paramtype">int </td> |
| 1124 |
<td class="paramname"> <em>ksiz</em>, </td> |
| 1125 |
</tr> |
| 1126 |
<tr> |
| 1127 |
<td class="paramkey"></td> |
| 1128 |
<td></td> |
| 1129 |
<td class="paramtype">const char * </td> |
| 1130 |
<td class="paramname"> <em>vbuf</em>, </td> |
| 1131 |
</tr> |
| 1132 |
<tr> |
| 1133 |
<td class="paramkey"></td> |
| 1134 |
<td></td> |
| 1135 |
<td class="paramtype">int </td> |
| 1136 |
<td class="paramname"> <em>vsiz</em>, </td> |
| 1137 |
</tr> |
| 1138 |
<tr> |
| 1139 |
<td class="paramkey"></td> |
| 1140 |
<td></td> |
| 1141 |
<td class="paramtype">int </td> |
| 1142 |
<td class="paramname"> <em>dmode</em> = <code><a class="el" href="classqdbm_1_1Curia.html#ae1ca3d89aa8768d6947a095366704dd2">Curia::DOVER</a></code></td><td> </td> |
| 1143 |
</tr> |
| 1144 |
<tr> |
| 1145 |
<td></td> |
| 1146 |
<td>)</td> |
| 1147 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1148 |
</tr> |
| 1149 |
</table> |
| 1150 |
</div> |
| 1151 |
<div class="memdoc"> |
| 1152 |
|
| 1153 |
<p>Store a record. </p> |
| 1154 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1155 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1156 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 1157 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 1158 |
<tr><td valign="top"></td><td valign="top"><em>vbuf</em> </td><td>the pointer to the region of a value. </td></tr> |
| 1159 |
<tr><td valign="top"></td><td valign="top"><em>vsiz</em> </td><td>the size of the region of the value. If it is negative, the size is assigned with `stdstrlen(vbuf)'. </td></tr> |
| 1160 |
<tr><td valign="top"></td><td valign="top"><em>dmode</em> </td><td>behavior when the key overlaps, by the following values: `CuriaDOVER', which means the specified value overwrites the existing one, `CuriaDKEEP', which means the existing value is kept, `CuriaDCAT', which means the specified value is concatenated at the end of the existing value. </td></tr> |
| 1161 |
</table> |
| 1162 |
</dd> |
| 1163 |
</dl> |
| 1164 |
<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> |
| 1165 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1166 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1167 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or replace is cancelled. </td></tr> |
| 1168 |
</table> |
| 1169 |
</dd> |
| 1170 |
</dl> |
| 1171 |
|
| 1172 |
</div> |
| 1173 |
</div> |
| 1174 |
<a class="anchor" id="a19ef712d439f3e9886caa1f3b154fb22"></a> |
| 1175 |
<div class="memitem"> |
| 1176 |
<div class="memproto"> |
| 1177 |
<table class="memname"> |
| 1178 |
<tr> |
| 1179 |
<td class="memname">virtual bool qdbm::Curia::putlob </td> |
| 1180 |
<td>(</td> |
| 1181 |
<td class="paramtype">const char * </td> |
| 1182 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 1183 |
</tr> |
| 1184 |
<tr> |
| 1185 |
<td class="paramkey"></td> |
| 1186 |
<td></td> |
| 1187 |
<td class="paramtype">int </td> |
| 1188 |
<td class="paramname"> <em>ksiz</em>, </td> |
| 1189 |
</tr> |
| 1190 |
<tr> |
| 1191 |
<td class="paramkey"></td> |
| 1192 |
<td></td> |
| 1193 |
<td class="paramtype">const char * </td> |
| 1194 |
<td class="paramname"> <em>vbuf</em>, </td> |
| 1195 |
</tr> |
| 1196 |
<tr> |
| 1197 |
<td class="paramkey"></td> |
| 1198 |
<td></td> |
| 1199 |
<td class="paramtype">int </td> |
| 1200 |
<td class="paramname"> <em>vsiz</em>, </td> |
| 1201 |
</tr> |
| 1202 |
<tr> |
| 1203 |
<td class="paramkey"></td> |
| 1204 |
<td></td> |
| 1205 |
<td class="paramtype">int </td> |
| 1206 |
<td class="paramname"> <em>dmode</em> = <code><a class="el" href="classqdbm_1_1Curia.html#ae1ca3d89aa8768d6947a095366704dd2">Curia::DOVER</a></code></td><td> </td> |
| 1207 |
</tr> |
| 1208 |
<tr> |
| 1209 |
<td></td> |
| 1210 |
<td>)</td> |
| 1211 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1212 |
</tr> |
| 1213 |
</table> |
| 1214 |
</div> |
| 1215 |
<div class="memdoc"> |
| 1216 |
|
| 1217 |
<p>Store a large object. </p> |
| 1218 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1219 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1220 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 1221 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 1222 |
<tr><td valign="top"></td><td valign="top"><em>vbuf</em> </td><td>the pointer to the region of a value. </td></tr> |
| 1223 |
<tr><td valign="top"></td><td valign="top"><em>vsiz</em> </td><td>the size of the region of the value. If it is negative, the size is assigned with `stdstrlen(vbuf)'. </td></tr> |
| 1224 |
<tr><td valign="top"></td><td valign="top"><em>dmode</em> </td><td>behavior when the key overlaps, by the following values: `CuriaDOVER', which means the specified value overwrites the existing one, `CuriaDKEEP', which means the existing value is kept, `CuriaDCAT', which means the specified value is concatenated at the end of the existing value. </td></tr> |
| 1225 |
</table> |
| 1226 |
</dd> |
| 1227 |
</dl> |
| 1228 |
<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> |
| 1229 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1230 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1231 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or replace is cancelled. </td></tr> |
| 1232 |
</table> |
| 1233 |
</dd> |
| 1234 |
</dl> |
| 1235 |
|
| 1236 |
</div> |
| 1237 |
</div> |
| 1238 |
<a class="anchor" id="a4b4c161fa8bad4f3e1ce8e8912794604"></a> |
| 1239 |
<div class="memitem"> |
| 1240 |
<div class="memproto"> |
| 1241 |
<table class="memname"> |
| 1242 |
<tr> |
| 1243 |
<td class="memname">static void qdbm::Curia::remove </td> |
| 1244 |
<td>(</td> |
| 1245 |
<td class="paramtype">const char * </td> |
| 1246 |
<td class="paramname"> <em>name</em></td> |
| 1247 |
<td> ) </td> |
| 1248 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [static]</code></td> |
| 1249 |
</tr> |
| 1250 |
</table> |
| 1251 |
</div> |
| 1252 |
<div class="memdoc"> |
| 1253 |
|
| 1254 |
<p>Remove a database directory. </p> |
| 1255 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1256 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1257 |
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>the name of a database directory. </td></tr> |
| 1258 |
</table> |
| 1259 |
</dd> |
| 1260 |
</dl> |
| 1261 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1262 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1263 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 1264 |
</table> |
| 1265 |
</dd> |
| 1266 |
</dl> |
| 1267 |
|
| 1268 |
</div> |
| 1269 |
</div> |
| 1270 |
<a class="anchor" id="adbf190677f6c59577dddbdaaf7b574e3"></a> |
| 1271 |
<div class="memitem"> |
| 1272 |
<div class="memproto"> |
| 1273 |
<table class="memname"> |
| 1274 |
<tr> |
| 1275 |
<td class="memname">virtual int qdbm::Curia::rnum </td> |
| 1276 |
<td>(</td> |
| 1277 |
<td class="paramname"></td> |
| 1278 |
<td> ) </td> |
| 1279 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1280 |
</tr> |
| 1281 |
</table> |
| 1282 |
</div> |
| 1283 |
<div class="memdoc"> |
| 1284 |
|
| 1285 |
<p>Get the number of the records stored in the database. </p> |
| 1286 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of the records stored in the database. </dd></dl> |
| 1287 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1288 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1289 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 1290 |
</table> |
| 1291 |
</dd> |
| 1292 |
</dl> |
| 1293 |
|
| 1294 |
</div> |
| 1295 |
</div> |
| 1296 |
<a class="anchor" id="a54bca8cbf08adf4db8a714ae7c8e77e8"></a> |
| 1297 |
<div class="memitem"> |
| 1298 |
<div class="memproto"> |
| 1299 |
<table class="memname"> |
| 1300 |
<tr> |
| 1301 |
<td class="memname">virtual int qdbm::Curia::rnumlob </td> |
| 1302 |
<td>(</td> |
| 1303 |
<td class="paramname"></td> |
| 1304 |
<td> ) </td> |
| 1305 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1306 |
</tr> |
| 1307 |
</table> |
| 1308 |
</div> |
| 1309 |
<div class="memdoc"> |
| 1310 |
|
| 1311 |
<p>Get the number of the large objects stored in the database. </p> |
| 1312 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of the large objects stored in the database. </dd></dl> |
| 1313 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1314 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1315 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 1316 |
</table> |
| 1317 |
</dd> |
| 1318 |
</dl> |
| 1319 |
|
| 1320 |
</div> |
| 1321 |
</div> |
| 1322 |
<a class="anchor" id="a3e55b8de711cf5fbe171d208fe4edb7b"></a> |
| 1323 |
<div class="memitem"> |
| 1324 |
<div class="memproto"> |
| 1325 |
<table class="memname"> |
| 1326 |
<tr> |
| 1327 |
<td class="memname">virtual void qdbm::Curia::setalign </td> |
| 1328 |
<td>(</td> |
| 1329 |
<td class="paramtype">int </td> |
| 1330 |
<td class="paramname"> <em>align</em></td> |
| 1331 |
<td> ) </td> |
| 1332 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1333 |
</tr> |
| 1334 |
</table> |
| 1335 |
</div> |
| 1336 |
<div class="memdoc"> |
| 1337 |
|
| 1338 |
<p>Set alignment of the database handle. </p> |
| 1339 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1340 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1341 |
<tr><td valign="top"></td><td valign="top"><em>align</em> </td><td>the basic size of alignment. </td></tr> |
| 1342 |
</table> |
| 1343 |
</dd> |
| 1344 |
</dl> |
| 1345 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1346 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1347 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 1348 |
</table> |
| 1349 |
</dd> |
| 1350 |
</dl> |
| 1351 |
<dl class="note"><dt><b>Note:</b></dt><dd>If alignment is set to a database, the efficiency of overwriting values is improved. The size of alignment is suggested to be average size of the values of the records to be stored. If alignment is positive, padding whose size is multiple number of the alignment is placed. If alignment is negative, as `vsiz' is the size of a value, the size of padding is calculated with `(vsiz / pow(2, abs(align) - 1))'. Because alignment setting is not saved in a database, you should specify alignment every opening a database. </dd></dl> |
| 1352 |
|
| 1353 |
</div> |
| 1354 |
</div> |
| 1355 |
<a class="anchor" id="a657313435c709e395aa7b49427de1589"></a> |
| 1356 |
<div class="memitem"> |
| 1357 |
<div class="memproto"> |
| 1358 |
<table class="memname"> |
| 1359 |
<tr> |
| 1360 |
<td class="memname">virtual void qdbm::Curia::setfbpsiz </td> |
| 1361 |
<td>(</td> |
| 1362 |
<td class="paramtype">int </td> |
| 1363 |
<td class="paramname"> <em>size</em></td> |
| 1364 |
<td> ) </td> |
| 1365 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1366 |
</tr> |
| 1367 |
</table> |
| 1368 |
</div> |
| 1369 |
<div class="memdoc"> |
| 1370 |
|
| 1371 |
<p>Set the size of the free block pool. </p> |
| 1372 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1373 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1374 |
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>the size of the free block pool of a database. </td></tr> |
| 1375 |
</table> |
| 1376 |
</dd> |
| 1377 |
</dl> |
| 1378 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1379 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1380 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 1381 |
</table> |
| 1382 |
</dd> |
| 1383 |
</dl> |
| 1384 |
<dl class="note"><dt><b>Note:</b></dt><dd>The default size of the free block pool is 16. If the size is greater, the space efficiency of overwriting values is improved with the time efficiency sacrificed. </dd></dl> |
| 1385 |
|
| 1386 |
</div> |
| 1387 |
</div> |
| 1388 |
<a class="anchor" id="a43db34bbb26b1961abd5abb865c151f7"></a> |
| 1389 |
<div class="memitem"> |
| 1390 |
<div class="memproto"> |
| 1391 |
<table class="memname"> |
| 1392 |
<tr> |
| 1393 |
<td class="memname">static char* qdbm::Curia::snaffle </td> |
| 1394 |
<td>(</td> |
| 1395 |
<td class="paramtype">const char * </td> |
| 1396 |
<td class="paramname"> <em>name</em>, </td> |
| 1397 |
</tr> |
| 1398 |
<tr> |
| 1399 |
<td class="paramkey"></td> |
| 1400 |
<td></td> |
| 1401 |
<td class="paramtype">const char * </td> |
| 1402 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 1403 |
</tr> |
| 1404 |
<tr> |
| 1405 |
<td class="paramkey"></td> |
| 1406 |
<td></td> |
| 1407 |
<td class="paramtype">int </td> |
| 1408 |
<td class="paramname"> <em>ksiz</em>, </td> |
| 1409 |
</tr> |
| 1410 |
<tr> |
| 1411 |
<td class="paramkey"></td> |
| 1412 |
<td></td> |
| 1413 |
<td class="paramtype">int * </td> |
| 1414 |
<td class="paramname"> <em>sp</em></td><td> </td> |
| 1415 |
</tr> |
| 1416 |
<tr> |
| 1417 |
<td></td> |
| 1418 |
<td>)</td> |
| 1419 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [static]</code></td> |
| 1420 |
</tr> |
| 1421 |
</table> |
| 1422 |
</div> |
| 1423 |
<div class="memdoc"> |
| 1424 |
|
| 1425 |
<p>Retrieve a record directly from a database directory. </p> |
| 1426 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1427 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1428 |
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>the name of a database directory. </td></tr> |
| 1429 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 1430 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 1431 |
<tr><td valign="top"></td><td valign="top"><em>sp</em> </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> |
| 1432 |
</table> |
| 1433 |
</dd> |
| 1434 |
</dl> |
| 1435 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the pointer to the region of the value of the corresponding record. </dd></dl> |
| 1436 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1437 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1438 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no record corresponds. </td></tr> |
| 1439 |
</table> |
| 1440 |
</dd> |
| 1441 |
</dl> |
| 1442 |
<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. Although this method can be used even while the database directory is locked by another process, it is not assured that recent updated is reflected. </dd></dl> |
| 1443 |
|
| 1444 |
</div> |
| 1445 |
</div> |
| 1446 |
<a class="anchor" id="ac185f3f75e90a889a2e6b6756f73c620"></a> |
| 1447 |
<div class="memitem"> |
| 1448 |
<div class="memproto"> |
| 1449 |
<table class="memname"> |
| 1450 |
<tr> |
| 1451 |
<td class="memname">virtual void qdbm::Curia::storerec </td> |
| 1452 |
<td>(</td> |
| 1453 |
<td class="paramtype">const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> & </td> |
| 1454 |
<td class="paramname"> <em>key</em>, </td> |
| 1455 |
</tr> |
| 1456 |
<tr> |
| 1457 |
<td class="paramkey"></td> |
| 1458 |
<td></td> |
| 1459 |
<td class="paramtype">const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> & </td> |
| 1460 |
<td class="paramname"> <em>val</em>, </td> |
| 1461 |
</tr> |
| 1462 |
<tr> |
| 1463 |
<td class="paramkey"></td> |
| 1464 |
<td></td> |
| 1465 |
<td class="paramtype">bool </td> |
| 1466 |
<td class="paramname"> <em>replace</em> = <code>true</code></td><td> </td> |
| 1467 |
</tr> |
| 1468 |
<tr> |
| 1469 |
<td></td> |
| 1470 |
<td>)</td> |
| 1471 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1472 |
</tr> |
| 1473 |
</table> |
| 1474 |
</div> |
| 1475 |
<div class="memdoc"> |
| 1476 |
|
| 1477 |
<p>Store a record. </p> |
| 1478 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1479 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1480 |
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>reference to a key object. </td></tr> |
| 1481 |
<tr><td valign="top"></td><td valign="top"><em>val</em> </td><td>reference to a value object. </td></tr> |
| 1482 |
<tr><td valign="top"></td><td valign="top"><em>replace</em> </td><td>whether the existing value is to be overwritten or not. </td></tr> |
| 1483 |
</table> |
| 1484 |
</dd> |
| 1485 |
</dl> |
| 1486 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1487 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1488 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or replace is cancelled. </td></tr> |
| 1489 |
</table> |
| 1490 |
</dd> |
| 1491 |
</dl> |
| 1492 |
|
| 1493 |
<p>Implements <a class="el" href="classqdbm_1_1ADBM.html#aeb819b3cf03cf0aa2924665c73b04481">qdbm::ADBM</a>.</p> |
| 1494 |
|
| 1495 |
</div> |
| 1496 |
</div> |
| 1497 |
<a class="anchor" id="a89d65566935a6d3937625bce57765212"></a> |
| 1498 |
<div class="memitem"> |
| 1499 |
<div class="memproto"> |
| 1500 |
<table class="memname"> |
| 1501 |
<tr> |
| 1502 |
<td class="memname">virtual void qdbm::Curia::sync </td> |
| 1503 |
<td>(</td> |
| 1504 |
<td class="paramname"></td> |
| 1505 |
<td> ) </td> |
| 1506 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1507 |
</tr> |
| 1508 |
</table> |
| 1509 |
</div> |
| 1510 |
<div class="memdoc"> |
| 1511 |
|
| 1512 |
<p>Synchronize updating contents with the files and the devices. </p> |
| 1513 |
<dl class="note"><dt><b>Note:</b></dt><dd><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a> if an error occurs. This function is useful when another process uses the connected database directory. </dd></dl> |
| 1514 |
|
| 1515 |
</div> |
| 1516 |
</div> |
| 1517 |
<a class="anchor" id="a1035460a92ded6621bbf5fead9378057"></a> |
| 1518 |
<div class="memitem"> |
| 1519 |
<div class="memproto"> |
| 1520 |
<table class="memname"> |
| 1521 |
<tr> |
| 1522 |
<td class="memname">static const char* qdbm::Curia::version </td> |
| 1523 |
<td>(</td> |
| 1524 |
<td class="paramname"></td> |
| 1525 |
<td> ) </td> |
| 1526 |
<td> throw ()<code> [static]</code></td> |
| 1527 |
</tr> |
| 1528 |
</table> |
| 1529 |
</div> |
| 1530 |
<div class="memdoc"> |
| 1531 |
|
| 1532 |
<p>Get the version information. </p> |
| 1533 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the string of the version information. </dd></dl> |
| 1534 |
|
| 1535 |
</div> |
| 1536 |
</div> |
| 1537 |
<a class="anchor" id="a29ec7ec4059ef48bd031ce54d692302c"></a> |
| 1538 |
<div class="memitem"> |
| 1539 |
<div class="memproto"> |
| 1540 |
<table class="memname"> |
| 1541 |
<tr> |
| 1542 |
<td class="memname">virtual int qdbm::Curia::vsiz </td> |
| 1543 |
<td>(</td> |
| 1544 |
<td class="paramtype">const char * </td> |
| 1545 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 1546 |
</tr> |
| 1547 |
<tr> |
| 1548 |
<td class="paramkey"></td> |
| 1549 |
<td></td> |
| 1550 |
<td class="paramtype">int </td> |
| 1551 |
<td class="paramname"> <em>ksiz</em></td><td> </td> |
| 1552 |
</tr> |
| 1553 |
<tr> |
| 1554 |
<td></td> |
| 1555 |
<td>)</td> |
| 1556 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1557 |
</tr> |
| 1558 |
</table> |
| 1559 |
</div> |
| 1560 |
<div class="memdoc"> |
| 1561 |
|
| 1562 |
<p>Get the size of the value of a record. </p> |
| 1563 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1564 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1565 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 1566 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 1567 |
</table> |
| 1568 |
</dd> |
| 1569 |
</dl> |
| 1570 |
<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. </dd></dl> |
| 1571 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1572 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1573 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no record corresponds. </td></tr> |
| 1574 |
</table> |
| 1575 |
</dd> |
| 1576 |
</dl> |
| 1577 |
<dl class="note"><dt><b>Note:</b></dt><dd>Because this function does not read the entity of a record, it is faster than `get'. </dd></dl> |
| 1578 |
|
| 1579 |
</div> |
| 1580 |
</div> |
| 1581 |
<a class="anchor" id="a25e4dafae1de815d5d26d6141ff4f0fe"></a> |
| 1582 |
<div class="memitem"> |
| 1583 |
<div class="memproto"> |
| 1584 |
<table class="memname"> |
| 1585 |
<tr> |
| 1586 |
<td class="memname">virtual int qdbm::Curia::vsizlob </td> |
| 1587 |
<td>(</td> |
| 1588 |
<td class="paramtype">const char * </td> |
| 1589 |
<td class="paramname"> <em>kbuf</em>, </td> |
| 1590 |
</tr> |
| 1591 |
<tr> |
| 1592 |
<td class="paramkey"></td> |
| 1593 |
<td></td> |
| 1594 |
<td class="paramtype">int </td> |
| 1595 |
<td class="paramname"> <em>ksiz</em></td><td> </td> |
| 1596 |
</tr> |
| 1597 |
<tr> |
| 1598 |
<td></td> |
| 1599 |
<td>)</td> |
| 1600 |
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1601 |
</tr> |
| 1602 |
</table> |
| 1603 |
</div> |
| 1604 |
<div class="memdoc"> |
| 1605 |
|
| 1606 |
<p>Get the size of the value of a large object. </p> |
| 1607 |
<dl><dt><b>Parameters:</b></dt><dd> |
| 1608 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1609 |
<tr><td valign="top"></td><td valign="top"><em>kbuf</em> </td><td>the pointer to the region of a key. </td></tr> |
| 1610 |
<tr><td valign="top"></td><td valign="top"><em>ksiz</em> </td><td>the size of the region of the key. If it is negative, the size is assigned with `stdstrlen(kbuf)'. </td></tr> |
| 1611 |
</table> |
| 1612 |
</dd> |
| 1613 |
</dl> |
| 1614 |
<dl class="return"><dt><b>Returns:</b></dt><dd>the size of the value of the corresponding large object. If the silent flag is true and no record corresponds, -1 is returned instead of exception. </dd></dl> |
| 1615 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1616 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1617 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs or no large object corresponds. </td></tr> |
| 1618 |
</table> |
| 1619 |
</dd> |
| 1620 |
</dl> |
| 1621 |
<dl class="note"><dt><b>Note:</b></dt><dd>Because this function does not read the entity of a large object, it is faster than `getlob'. </dd></dl> |
| 1622 |
|
| 1623 |
</div> |
| 1624 |
</div> |
| 1625 |
<a class="anchor" id="ae91dc7efcc8a4e0134d91c03e29dc333"></a> |
| 1626 |
<div class="memitem"> |
| 1627 |
<div class="memproto"> |
| 1628 |
<table class="memname"> |
| 1629 |
<tr> |
| 1630 |
<td class="memname">virtual bool qdbm::Curia::writable </td> |
| 1631 |
<td>(</td> |
| 1632 |
<td class="paramname"></td> |
| 1633 |
<td> ) </td> |
| 1634 |
<td> throw (<a class="el" href="classqdbm_1_1Curia__error.html">Curia_error</a>)<code> [virtual]</code></td> |
| 1635 |
</tr> |
| 1636 |
</table> |
| 1637 |
</div> |
| 1638 |
<div class="memdoc"> |
| 1639 |
|
| 1640 |
<p>Check whether the database handle is a writer or not. </p> |
| 1641 |
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the handle is a writer, false if not. </dd></dl> |
| 1642 |
<dl><dt><b>Exceptions:</b></dt><dd> |
| 1643 |
<table border="0" cellspacing="2" cellpadding="0"> |
| 1644 |
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="classqdbm_1_1Curia__error.html" title="Error container for Curia.">Curia_error</a></em> </td><td>if an error occurs. </td></tr> |
| 1645 |
</table> |
| 1646 |
</dd> |
| 1647 |
</dl> |
| 1648 |
|
| 1649 |
</div> |
| 1650 |
</div> |
| 1651 |
<hr/>The documentation for this class was generated from the following file:<ul> |
| 1652 |
<li>xcuria.h</li> |
| 1653 |
</ul> |
| 1654 |
</div> |
| 1655 |
<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Aug 5 02:15:30 2010 for QDBM for C++ by |
| 1656 |
<a href="http://www.doxygen.org/index.html"> |
| 1657 |
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> |
| 1658 |
</body> |
| 1659 |
</html> |