IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2006, 1:49:11 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.39

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/pop.c

    r9054 r9107  
    559559        psDB            *dbh;
    560560        psS32           det_id;
    561         psS32           iteration;
    562         char            class_id[256];
    563         char            uri[256];
    564         char            recipe[256];
    565         psF64           bg;
    566         psF64           bg_stdev;
    567         psF64           bg_mean_stdev;
    568         bool            normalize;
    569 
    570         dbh = psDBInit("localhost", "test", NULL, "test");
    571         if (!dbh) {
    572             exit(EXIT_FAILURE);
    573         }
    574 
    575         if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, &normalize)) {
     561        char            exp_tag[256];
     562        char            recipe[256];
     563        psF64           bg;
     564        psF64           bg_stdev;
     565        psF64           bg_mean_stdev;
     566        char            b1_uri[256];
     567        char            b2_uri[256];
     568
     569        dbh = psDBInit("localhost", "test", NULL, "test");
     570        if (!dbh) {
     571            exit(EXIT_FAILURE);
     572        }
     573
     574        if (!detProcessedExpPop(dbh, &det_id, (char **)&exp_tag, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) {
     575            exit(EXIT_FAILURE);
     576        }
     577
     578        psDBCleanup(dbh);
     579    }
     580
     581    {
     582        psDB            *dbh;
     583        psS32           det_id;
     584        psS32           iteration;
     585        char            class_id[256];
     586        char            uri[256];
     587        char            recipe[256];
     588        psF64           bg;
     589        psF64           bg_stdev;
     590        psF64           bg_mean_stdev;
     591
     592        dbh = psDBInit("localhost", "test", NULL, "test");
     593        if (!dbh) {
     594            exit(EXIT_FAILURE);
     595        }
     596
     597        if (!detStackedImfilePop(dbh, &det_id, &iteration, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev)) {
    576598            exit(EXIT_FAILURE);
    577599        }
Note: See TracChangeset for help on using the changeset viewer.