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