/usr/share/qdbm/plus/xapidoc/classqdbm_1_1Depot.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 | <!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::Depot 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_1Depot.html">Depot</a>
</div>
</div>
<div class="contents">
<h1>qdbm::Depot Class Reference</h1><!-- doxytag: class="qdbm::Depot" --><!-- doxytag: inherits="qdbm::ADBM" -->
<p>C++ API of <a class="el" href="classqdbm_1_1Depot.html" title="C++ API of Depot, the basic API of QDBM.">Depot</a>, the basic API of QDBM.
<a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for qdbm::Depot:</div>
<div class="dynsection">
<div class="center">
<img src="classqdbm_1_1Depot.png" usemap="#qdbm::Depot_map" alt=""/>
<map id="qdbm::Depot_map" name="qdbm::Depot_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_1Depot-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_1Depot.html#a92d196f071bf46486efc222fd46c948b">Depot</a> (const char *name, int omode=<a class="el" href="classqdbm_1_1Depot.html#a8c9a55743c11c4ae9e9d262915e663cb">Depot::OREADER</a>, int bnum=-1) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the database handle. <a href="#a92d196f071bf46486efc222fd46c948b"></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_1Depot.html#ae08c97510aaf3410795f65426a24c62f">~Depot</a> () throw ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Release the resources. <a href="#ae08c97510aaf3410795f65426a24c62f"></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_1Depot.html#a4a236445aff6ecbff75e17c2810647d3">close</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Close the database handle. <a href="#a4a236445aff6ecbff75e17c2810647d3"></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_1Depot.html#af26f269651b643b104a29592cbff1516">put</a> (const char *kbuf, int ksiz, const char *vbuf, int vsiz, int dmode=<a class="el" href="classqdbm_1_1Depot.html#a9a3b1e2559593f76c7841efec6d0ea1c">Depot::DOVER</a>) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Store a record. <a href="#af26f269651b643b104a29592cbff1516"></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_1Depot.html#a92de22f3a8994da5c70f43184aacaad2">out</a> (const char *kbuf, int ksiz) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a record. <a href="#a92de22f3a8994da5c70f43184aacaad2"></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_1Depot.html#ae6ff2245bb0bf93af8c79e6c3f0258cb">get</a> (const char *kbuf, int ksiz, int start=0, int max=-1, int *sp=0) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a record. <a href="#ae6ff2245bb0bf93af8c79e6c3f0258cb"></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_1Depot.html#a06ba5f1cb23d20ed7435b4bdd6a492cc">getwb</a> (const char *kbuf, int ksiz, int start, int max, char *vbuf) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a record and write the value into a buffer. <a href="#a06ba5f1cb23d20ed7435b4bdd6a492cc"></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_1Depot.html#a1371e7ec30bbe565e6ec64f340785228">vsiz</a> (const char *kbuf, int ksiz) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the size of the value of a record. <a href="#a1371e7ec30bbe565e6ec64f340785228"></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_1Depot.html#aefa6da271461b147fa2d2065b776c9ce">iterinit</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the iterator of the database handle. <a href="#aefa6da271461b147fa2d2065b776c9ce"></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_1Depot.html#a100a816512fba6480c73071e96b3c882">iternext</a> (int *sp=0) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the next key of the iterator. <a href="#a100a816512fba6480c73071e96b3c882"></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_1Depot.html#a17708cb3a339d17ac4c6921672ea3e2f">setalign</a> (int align) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set alignment of the database handle. <a href="#a17708cb3a339d17ac4c6921672ea3e2f"></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_1Depot.html#aa230701175adec7ff32148d2059d61fe">setfbpsiz</a> (int size) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the size of the free block pool. <a href="#aa230701175adec7ff32148d2059d61fe"></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_1Depot.html#a89ab9e21f1cfe557c2be9cc08f687501">sync</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Synchronize updating contents with the file and the device. <a href="#a89ab9e21f1cfe557c2be9cc08f687501"></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_1Depot.html#ad27aff090ee8bc3fe1474f680cb31cbe">optimize</a> (int bnum=-1) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Optimize the database. <a href="#ad27aff090ee8bc3fe1474f680cb31cbe"></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_1Depot.html#a79778919b8e295bfa545fc7fa69ca01a">name</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the name of the database. <a href="#a79778919b8e295bfa545fc7fa69ca01a"></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_1Depot.html#ac388448cfbeaf4b6329d112bdfa545a0">fsiz</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the size of the database file. <a href="#ac388448cfbeaf4b6329d112bdfa545a0"></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_1Depot.html#a3b50683f37cbd944f6f76c6be648a49f">bnum</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of the elements of the bucket array. <a href="#a3b50683f37cbd944f6f76c6be648a49f"></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_1Depot.html#a414665bff14bb7f3431634de633861f7">busenum</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of the used elements of the bucket array. <a href="#a414665bff14bb7f3431634de633861f7"></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_1Depot.html#a752acfeb96535df0076b15ab7844d4e6">rnum</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of the records stored in the database. <a href="#a752acfeb96535df0076b15ab7844d4e6"></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_1Depot.html#a21308a7de25b2a4d1b367fdfa12896c1">writable</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether the database handle is a writer or not. <a href="#a21308a7de25b2a4d1b367fdfa12896c1"></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_1Depot.html#ae0d5debd4eaeda68d63281e32589e8c2">fatalerror</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether the database has a fatal error or not. <a href="#ae0d5debd4eaeda68d63281e32589e8c2"></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_1Depot.html#af4415be311b7edea43205a3cd0214f09">inode</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the inode number of the database file. <a href="#af4415be311b7edea43205a3cd0214f09"></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_1Depot.html#ab468d0ea29fa0c00adce15f346633b01">mtime</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the last modified time of the database. <a href="#ab468d0ea29fa0c00adce15f346633b01"></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_1Depot.html#aaef898237f88d19c77986216c2fbe13a">fdesc</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the file descriptor of the database file. <a href="#aaef898237f88d19c77986216c2fbe13a"></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_1Depot.html#ad1c017447ccb152ca6aa3d525eb877e6">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 (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Store a record. <a href="#ad1c017447ccb152ca6aa3d525eb877e6"></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_1Depot.html#a6f1a874cfc409cb2ac60449eb8d75183">deleterec</a> (const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &key) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a record. <a href="#a6f1a874cfc409cb2ac60449eb8d75183"></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_1Depot.html#a00c7cf35fd226cb6184ccaa59c4626e7">fetchrec</a> (const <a class="el" href="classqdbm_1_1Datum.html">Datum</a> &key) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch a record. <a href="#a00c7cf35fd226cb6184ccaa59c4626e7"></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_1Depot.html#acbf7fbc4afa0e971a92a503549a01ef1">firstkey</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the first key. <a href="#acbf7fbc4afa0e971a92a503549a01ef1"></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_1Depot.html#a1c953f0c612ea7665e5634c8b230cc62">nextkey</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the next key. <a href="#a1c953f0c612ea7665e5634c8b230cc62"></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_1Depot.html#a376c2d8ca7c30715b07b1110b4128055">error</a> () throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check whether a fatal error occured or not. <a href="#a376c2d8ca7c30715b07b1110b4128055"></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_1Depot.html#a2add0b20314e0a1b365d4b637d450ffa">version</a> () throw ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the version information. <a href="#a2add0b20314e0a1b365d4b637d450ffa"></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_1Depot.html#af48f660cf8bf90035f71782113b86a23">remove</a> (const char *name) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove a database file. <a href="#af48f660cf8bf90035f71782113b86a23"></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_1Depot.html#a0d4a00a98dc6665a657bc1e6be34a38b">snaffle</a> (const char *name, const char *kbuf, int ksiz, int *sp) throw (Depot_error)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a record directly from a database file. <a href="#a0d4a00a98dc6665a657bc1e6be34a38b"></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="a9e4ad08af22cf5c797c67a91e1003a94"></a><!-- doxytag: member="qdbm::Depot::silent" ref="a9e4ad08af22cf5c797c67a91e1003a94" args="" -->
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a9e4ad08af22cf5c797c67a91e1003a94">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="a5c69ffd0a34a555d0c25a268e3130a7c"></a><!-- doxytag: member="qdbm::Depot::ENOERR" ref="a5c69ffd0a34a555d0c25a268e3130a7c" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a5c69ffd0a34a555d0c25a268e3130a7c">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="ae986f17a24203c184030d29d63524197"></a><!-- doxytag: member="qdbm::Depot::EFATAL" ref="ae986f17a24203c184030d29d63524197" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#ae986f17a24203c184030d29d63524197">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="a8f5b3ad001250e14f150d37f9aa17c3f"></a><!-- doxytag: member="qdbm::Depot::EMODE" ref="a8f5b3ad001250e14f150d37f9aa17c3f" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a8f5b3ad001250e14f150d37f9aa17c3f">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="a927897e0f1f6bfdd0c6e4aa949d99427"></a><!-- doxytag: member="qdbm::Depot::EBROKEN" ref="a927897e0f1f6bfdd0c6e4aa949d99427" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a927897e0f1f6bfdd0c6e4aa949d99427">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="a7301e26fcc34b377d01332a1b31a7b6e"></a><!-- doxytag: member="qdbm::Depot::EKEEP" ref="a7301e26fcc34b377d01332a1b31a7b6e" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a7301e26fcc34b377d01332a1b31a7b6e">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="a78b1fc10e76ed61d2dc184cbdb453d4c"></a><!-- doxytag: member="qdbm::Depot::ENOITEM" ref="a78b1fc10e76ed61d2dc184cbdb453d4c" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a78b1fc10e76ed61d2dc184cbdb453d4c">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="ae9d2c1e4b89c037e24ee0a2f59dbfb0e"></a><!-- doxytag: member="qdbm::Depot::EALLOC" ref="ae9d2c1e4b89c037e24ee0a2f59dbfb0e" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#ae9d2c1e4b89c037e24ee0a2f59dbfb0e">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="affeaa0cc2b079c07414771406c2fa453"></a><!-- doxytag: member="qdbm::Depot::EMAP" ref="affeaa0cc2b079c07414771406c2fa453" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#affeaa0cc2b079c07414771406c2fa453">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="aa488875506e57fec5a87edf23e2aad0a"></a><!-- doxytag: member="qdbm::Depot::EOPEN" ref="aa488875506e57fec5a87edf23e2aad0a" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#aa488875506e57fec5a87edf23e2aad0a">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="a9c5167979a62bd997513da1620f799ee"></a><!-- doxytag: member="qdbm::Depot::ECLOSE" ref="a9c5167979a62bd997513da1620f799ee" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a9c5167979a62bd997513da1620f799ee">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="ac20f08e7ca6ee209f5d3751b743765c1"></a><!-- doxytag: member="qdbm::Depot::ETRUNC" ref="ac20f08e7ca6ee209f5d3751b743765c1" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#ac20f08e7ca6ee209f5d3751b743765c1">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="a468b75c382b210ada3a9ae95f8232a4b"></a><!-- doxytag: member="qdbm::Depot::ESYNC" ref="a468b75c382b210ada3a9ae95f8232a4b" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a468b75c382b210ada3a9ae95f8232a4b">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="a08fc3d6814800e9488542facfb13e5ad"></a><!-- doxytag: member="qdbm::Depot::ESTAT" ref="a08fc3d6814800e9488542facfb13e5ad" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a08fc3d6814800e9488542facfb13e5ad">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="a439dda720938f5db2c280f862afc5522"></a><!-- doxytag: member="qdbm::Depot::ESEEK" ref="a439dda720938f5db2c280f862afc5522" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a439dda720938f5db2c280f862afc5522">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="a6281514c4362f7f303b3c7f7e513e5b9"></a><!-- doxytag: member="qdbm::Depot::EREAD" ref="a6281514c4362f7f303b3c7f7e513e5b9" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a6281514c4362f7f303b3c7f7e513e5b9">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="a0e64482ac2b9e1eb267d5b9cdf52beb4"></a><!-- doxytag: member="qdbm::Depot::EWRITE" ref="a0e64482ac2b9e1eb267d5b9cdf52beb4" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a0e64482ac2b9e1eb267d5b9cdf52beb4">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="a144546bed513b311484ed9286f660e83"></a><!-- doxytag: member="qdbm::Depot::ELOCK" ref="a144546bed513b311484ed9286f660e83" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a144546bed513b311484ed9286f660e83">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="a4a81a1acbdaff7edb100d9b3ff8c3763"></a><!-- doxytag: member="qdbm::Depot::EUNLINK" ref="a4a81a1acbdaff7edb100d9b3ff8c3763" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a4a81a1acbdaff7edb100d9b3ff8c3763">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="ab3829c3797441ae8a658bfdd89763f26"></a><!-- doxytag: member="qdbm::Depot::EMKDIR" ref="ab3829c3797441ae8a658bfdd89763f26" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#ab3829c3797441ae8a658bfdd89763f26">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="a1c819520c25b1b21d0c0653aa521c7a7"></a><!-- doxytag: member="qdbm::Depot::ERMDIR" ref="a1c819520c25b1b21d0c0653aa521c7a7" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a1c819520c25b1b21d0c0653aa521c7a7">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="a30eeef4aef5f308ad9e65f47b9e947ad"></a><!-- doxytag: member="qdbm::Depot::EMISC" ref="a30eeef4aef5f308ad9e65f47b9e947ad" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a30eeef4aef5f308ad9e65f47b9e947ad">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="a8c9a55743c11c4ae9e9d262915e663cb"></a><!-- doxytag: member="qdbm::Depot::OREADER" ref="a8c9a55743c11c4ae9e9d262915e663cb" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a8c9a55743c11c4ae9e9d262915e663cb">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="abc4286c1b3c60d8cb982c31e4f7c06f0"></a><!-- doxytag: member="qdbm::Depot::OWRITER" ref="abc4286c1b3c60d8cb982c31e4f7c06f0" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#abc4286c1b3c60d8cb982c31e4f7c06f0">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="a04378bdf81d384917adc5c310986f8d2"></a><!-- doxytag: member="qdbm::Depot::OCREAT" ref="a04378bdf81d384917adc5c310986f8d2" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a04378bdf81d384917adc5c310986f8d2">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="a52bd2f6f9b5809407c510bb753a0d4cb"></a><!-- doxytag: member="qdbm::Depot::OTRUNC" ref="a52bd2f6f9b5809407c510bb753a0d4cb" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a52bd2f6f9b5809407c510bb753a0d4cb">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="ad2f0b31fd01c0652c3af7ec1c9d29b21"></a><!-- doxytag: member="qdbm::Depot::ONOLCK" ref="ad2f0b31fd01c0652c3af7ec1c9d29b21" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#ad2f0b31fd01c0652c3af7ec1c9d29b21">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="a7035592f8c428476a8fc87f37d2e6188"></a><!-- doxytag: member="qdbm::Depot::OLCKNB" ref="a7035592f8c428476a8fc87f37d2e6188" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a7035592f8c428476a8fc87f37d2e6188">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="adb06f7ae2438a4484e1a35b18213ca15"></a><!-- doxytag: member="qdbm::Depot::OSPARSE" ref="adb06f7ae2438a4484e1a35b18213ca15" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#adb06f7ae2438a4484e1a35b18213ca15">OSPARSE</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">open mode: create as a sparse file <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a3b1e2559593f76c7841efec6d0ea1c"></a><!-- doxytag: member="qdbm::Depot::DOVER" ref="a9a3b1e2559593f76c7841efec6d0ea1c" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a9a3b1e2559593f76c7841efec6d0ea1c">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="a76010f57e06ce1104a7094a9ccf4092e"></a><!-- doxytag: member="qdbm::Depot::DKEEP" ref="a76010f57e06ce1104a7094a9ccf4092e" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a76010f57e06ce1104a7094a9ccf4092e">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="a9577cb9d2c4d7fdc4218d2e03a405a0d"></a><!-- doxytag: member="qdbm::Depot::DCAT" ref="a9577cb9d2c4d7fdc4218d2e03a405a0d" args="" -->
static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqdbm_1_1Depot.html#a9577cb9d2c4d7fdc4218d2e03a405a0d">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_1Depot.html" title="C++ API of Depot, the basic API of QDBM.">Depot</a>, the basic API of QDBM. </p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a92d196f071bf46486efc222fd46c948b"></a><!-- doxytag: member="qdbm::Depot::Depot" ref="a92d196f071bf46486efc222fd46c948b" args="(const char *name, int omode=Depot::OREADER, int bnum=-1)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">qdbm::Depot::Depot </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_1Depot.html#a8c9a55743c11c4ae9e9d262915e663cb">Depot::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><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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 file. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>omode</em> </td><td>the connection mode: `DepotOWRITER' as a writer, `DepotOREADER' as a reader. If the mode is `DepotOWRITER', the following may be added by bitwise or: `DepotOCREAT', which means it creates a new database if not exist, `DepotOTRUNC', which means it creates a new database regardless if one exists. Both of `DepotOREADER' and `DepotOWRITER' can be added to by bitwise or: `DepotONOLCK', which means it opens a database file without file locking, or `DepotOLCKNB', which means locking is performed without blocking. `DepotOCREAT' can be added to by bitwise or: `DepotOSPARSE', which means it creates a database file as a sparse file. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>bnum</em> </td><td>the number of elements of the bucket array. If it is not more than 0, the default value is specified. The size of a bucket array is determined on creating, and can not be changed except for by optimization of the database. Suggested size of a bucket array is about from 0.5 to 4 times of the number of all records to store. </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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </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 file. While connecting as a reader, a shared lock is invoked to the database file. The thread blocks until the lock is achieved. If `DepotONOLCK' is used, the application is responsible for exclusion control. </dd></dl>
</div>
</div>
<a class="anchor" id="ae08c97510aaf3410795f65426a24c62f"></a><!-- doxytag: member="qdbm::Depot::~Depot" ref="ae08c97510aaf3410795f65426a24c62f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual qdbm::Depot::~Depot </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="a3b50683f37cbd944f6f76c6be648a49f"></a><!-- doxytag: member="qdbm::Depot::bnum" ref="a3b50683f37cbd944f6f76c6be648a49f" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int qdbm::Depot::bnum </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_error</a>)<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the number of the elements of the bucket array. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of the elements of the 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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a414665bff14bb7f3431634de633861f7"></a><!-- doxytag: member="qdbm::Depot::busenum" ref="a414665bff14bb7f3431634de633861f7" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int qdbm::Depot::busenum </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_error</a>)<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the number of the used elements of the bucket array. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of the used elements of the 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_1Depot__error.html" title="Error container for Depot.">Depot_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 the bucket array. </dd></dl>
</div>
</div>
<a class="anchor" id="a4a236445aff6ecbff75e17c2810647d3"></a><!-- doxytag: member="qdbm::Depot::close" ref="a4a236445aff6ecbff75e17c2810647d3" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void qdbm::Depot::close </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="a6f1a874cfc409cb2ac60449eb8d75183"></a><!-- doxytag: member="qdbm::Depot::deleterec" ref="a6f1a874cfc409cb2ac60449eb8d75183" args="(const Datum &key)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void qdbm::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="a376c2d8ca7c30715b07b1110b4128055"></a><!-- doxytag: member="qdbm::Depot::error" ref="a376c2d8ca7c30715b07b1110b4128055" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool qdbm::Depot::error </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="ae0d5debd4eaeda68d63281e32589e8c2"></a><!-- doxytag: member="qdbm::Depot::fatalerror" ref="ae0d5debd4eaeda68d63281e32589e8c2" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool qdbm::Depot::fatalerror </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aaef898237f88d19c77986216c2fbe13a"></a><!-- doxytag: member="qdbm::Depot::fdesc" ref="aaef898237f88d19c77986216c2fbe13a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int qdbm::Depot::fdesc </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_error</a>)<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the file descriptor of the database file. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the file descriptor of the database file. </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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </td></tr>
</table>
</dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>Handling the file descriptor of a database file directly is not suggested. </dd></dl>
</div>
</div>
<a class="anchor" id="a00c7cf35fd226cb6184ccaa59c4626e7"></a><!-- doxytag: member="qdbm::Depot::fetchrec" ref="a00c7cf35fd226cb6184ccaa59c4626e7" 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::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="acbf7fbc4afa0e971a92a503549a01ef1"></a><!-- doxytag: member="qdbm::Depot::firstkey" ref="acbf7fbc4afa0e971a92a503549a01ef1" 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::Depot::firstkey </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="ac388448cfbeaf4b6329d112bdfa545a0"></a><!-- doxytag: member="qdbm::Depot::fsiz" ref="ac388448cfbeaf4b6329d112bdfa545a0" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int qdbm::Depot::fsiz </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_error</a>)<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the size of the database file. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the size of the database file. </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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae6ff2245bb0bf93af8c79e6c3f0258cb"></a><!-- doxytag: member="qdbm::Depot::get" ref="ae6ff2245bb0bf93af8c79e6c3f0258cb" 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::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="a06ba5f1cb23d20ed7435b4bdd6a492cc"></a><!-- doxytag: member="qdbm::Depot::getwb" ref="a06ba5f1cb23d20ed7435b4bdd6a492cc" 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::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="af4415be311b7edea43205a3cd0214f09"></a><!-- doxytag: member="qdbm::Depot::inode" ref="af4415be311b7edea43205a3cd0214f09" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int qdbm::Depot::inode </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_error</a>)<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the inode number of the database file. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the inode number of the database file. </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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aefa6da271461b147fa2d2065b776c9ce"></a><!-- doxytag: member="qdbm::Depot::iterinit" ref="aefa6da271461b147fa2d2065b776c9ce" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void qdbm::Depot::iterinit </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="a100a816512fba6480c73071e96b3c882"></a><!-- doxytag: member="qdbm::Depot::iternext" ref="a100a816512fba6480c73071e96b3c882" args="(int *sp=0)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual char* qdbm::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="ab468d0ea29fa0c00adce15f346633b01"></a><!-- doxytag: member="qdbm::Depot::mtime" ref="ab468d0ea29fa0c00adce15f346633b01" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual time_t qdbm::Depot::mtime </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a79778919b8e295bfa545fc7fa69ca01a"></a><!-- doxytag: member="qdbm::Depot::name" ref="a79778919b8e295bfa545fc7fa69ca01a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual char* qdbm::Depot::name </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="a1c953f0c612ea7665e5634c8b230cc62"></a><!-- doxytag: member="qdbm::Depot::nextkey" ref="a1c953f0c612ea7665e5634c8b230cc62" 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::Depot::nextkey </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="ad27aff090ee8bc3fe1474f680cb31cbe"></a><!-- doxytag: member="qdbm::Depot::optimize" ref="ad27aff090ee8bc3fe1474f680cb31cbe" args="(int bnum=-1)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void qdbm::Depot::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_1Depot__error.html">Depot_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 the 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_1Depot__error.html" title="Error container for Depot.">Depot_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="a92de22f3a8994da5c70f43184aacaad2"></a><!-- doxytag: member="qdbm::Depot::out" ref="a92de22f3a8994da5c70f43184aacaad2" args="(const char *kbuf, int ksiz)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool qdbm::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs or no record corresponds. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af26f269651b643b104a29592cbff1516"></a><!-- doxytag: member="qdbm::Depot::put" ref="af26f269651b643b104a29592cbff1516" args="(const char *kbuf, int ksiz, const char *vbuf, int vsiz, int dmode=Depot::DOVER)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool qdbm::Depot::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_1Depot.html#a9a3b1e2559593f76c7841efec6d0ea1c">Depot::DOVER</a></code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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: `DepotDOVER', which means the specified value overwrites the existing one, `DepotDKEEP', which means the existing value is kept, `DepotDCAT', 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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs or replace is cancelled. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="af48f660cf8bf90035f71782113b86a23"></a><!-- doxytag: member="qdbm::Depot::remove" ref="af48f660cf8bf90035f71782113b86a23" args="(const char *name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void qdbm::Depot::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_1Depot__error.html">Depot_error</a>)<code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Remove a database file. </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 file. </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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a752acfeb96535df0076b15ab7844d4e6"></a><!-- doxytag: member="qdbm::Depot::rnum" ref="a752acfeb96535df0076b15ab7844d4e6" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int qdbm::Depot::rnum </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_error</a></em> </td><td>if an error occurs. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a17708cb3a339d17ac4c6921672ea3e2f"></a><!-- doxytag: member="qdbm::Depot::setalign" ref="a17708cb3a339d17ac4c6921672ea3e2f" args="(int align)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void qdbm::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="aa230701175adec7ff32148d2059d61fe"></a><!-- doxytag: member="qdbm::Depot::setfbpsiz" ref="aa230701175adec7ff32148d2059d61fe" args="(int size)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void qdbm::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="a0d4a00a98dc6665a657bc1e6be34a38b"></a><!-- doxytag: member="qdbm::Depot::snaffle" ref="a0d4a00a98dc6665a657bc1e6be34a38b" 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::Depot::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_1Depot__error.html">Depot_error</a>)<code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Retrieve a record directly from a database file. </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 file. </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_1Depot__error.html" title="Error container for Depot.">Depot_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 file is locked by another process, it is not assured that recent updated is reflected. </dd></dl>
</div>
</div>
<a class="anchor" id="ad1c017447ccb152ca6aa3d525eb877e6"></a><!-- doxytag: member="qdbm::Depot::storerec" ref="ad1c017447ccb152ca6aa3d525eb877e6" 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::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="a89ab9e21f1cfe557c2be9cc08f687501"></a><!-- doxytag: member="qdbm::Depot::sync" ref="a89ab9e21f1cfe557c2be9cc08f687501" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void qdbm::Depot::sync </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_error</a>)<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Synchronize updating contents with the file and the device. </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_1Depot__error.html" title="Error container for Depot.">Depot_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 useful when another process uses the connected database file. </dd></dl>
</div>
</div>
<a class="anchor" id="a2add0b20314e0a1b365d4b637d450ffa"></a><!-- doxytag: member="qdbm::Depot::version" ref="a2add0b20314e0a1b365d4b637d450ffa" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static const char* qdbm::Depot::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="a1371e7ec30bbe565e6ec64f340785228"></a><!-- doxytag: member="qdbm::Depot::vsiz" ref="a1371e7ec30bbe565e6ec64f340785228" args="(const char *kbuf, int ksiz)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual int qdbm::Depot::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_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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="a21308a7de25b2a4d1b367fdfa12896c1"></a><!-- doxytag: member="qdbm::Depot::writable" ref="a21308a7de25b2a4d1b367fdfa12896c1" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool qdbm::Depot::writable </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> throw (<a class="el" href="classqdbm_1_1Depot__error.html">Depot_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_1Depot__error.html" title="Error container for Depot.">Depot_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>xdepot.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>
|