Changeset 8528 for trunk/ippdb/tests/pop.c
- Timestamp:
- Aug 23, 2006, 1:55:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/pop.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/pop.c
r8380 r8528 512 512 char exp_id[256]; 513 513 bool include; 514 bool accept; 515 516 dbh = psDBInit("localhost", "test", NULL, "test"); 517 if (!dbh) { 518 exit(EXIT_FAILURE); 519 } 520 521 if (!detInputExpPop(dbh, &det_id, &iteration, (char **)&exp_id, &include, &accept)) { 514 515 dbh = psDBInit("localhost", "test", NULL, "test"); 516 if (!dbh) { 517 exit(EXIT_FAILURE); 518 } 519 520 if (!detInputExpPop(dbh, &det_id, &iteration, (char **)&exp_id, &include)) { 522 521 exit(EXIT_FAILURE); 523 522 } … … 556 555 char uri[256]; 557 556 char recipe[256]; 558 559 dbh = psDBInit("localhost", "test", NULL, "test"); 560 if (!dbh) { 561 exit(EXIT_FAILURE); 562 } 563 564 if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe)) { 557 psF64 bg; 558 psF64 bg_stdev; 559 psF64 bg_mean_stdev; 560 561 dbh = psDBInit("localhost", "test", NULL, "test"); 562 if (!dbh) { 563 exit(EXIT_FAILURE); 564 } 565 566 if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev)) { 565 567 exit(EXIT_FAILURE); 566 568 } … … 650 652 char exp_id[256]; 651 653 char class_id[256]; 652 char recipe[256]; 653 char uri[256]; 654 char uri[256]; 655 char recipe[256]; 656 psF64 bg; 657 psF64 bg_stdev; 658 psF64 bg_mean_stdev; 654 659 char b1_uri[256]; 655 660 char b2_uri[256]; … … 660 665 } 661 666 662 if (!detResidImfilePop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&class_id, (char **)&recipe, (char **)&uri, (char **)&b1_uri, (char **)&b2_uri)) { 663 exit(EXIT_FAILURE); 664 } 665 666 psDBCleanup(dbh); 667 } 668 669 { 670 psDB *dbh; 671 psS32 det_id; 672 psS32 iteration; 673 char exp_id[256]; 674 char recipe[256]; 675 bool keep; 667 if (!detResidImfilePop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) { 668 exit(EXIT_FAILURE); 669 } 670 671 psDBCleanup(dbh); 672 } 673 674 { 675 psDB *dbh; 676 psS32 det_id; 677 psS32 iteration; 678 char exp_id[256]; 679 char recipe[256]; 680 psF64 bg; 681 psF64 bg_stdev; 682 psF64 bg_mean_stdev; 683 char b1_uri[256]; 684 char b2_uri[256]; 676 685 bool accept; 677 686 … … 681 690 } 682 691 683 if (!detResidExpPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&recipe, &keep, &accept)) { 692 if (!detResidExpPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri, &accept)) { 693 exit(EXIT_FAILURE); 694 } 695 696 psDBCleanup(dbh); 697 } 698 699 { 700 psDB *dbh; 701 psS32 det_id; 702 psS32 iteration; 703 psF64 bg; 704 psF64 bg_stdev; 705 psF64 bg_mean_stdev; 706 bool accept; 707 708 dbh = psDBInit("localhost", "test", NULL, "test"); 709 if (!dbh) { 710 exit(EXIT_FAILURE); 711 } 712 713 if (!detRunSummaryPop(dbh, &det_id, &iteration, &bg, &bg_stdev, &bg_mean_stdev, &accept)) { 684 714 exit(EXIT_FAILURE); 685 715 }
Note:
See TracChangeset
for help on using the changeset viewer.
