IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2006, 5:16:20 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.38

File:
1 edited

Legend:

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

    r9044 r9054  
    219219        psDB            *dbh;
    220220        char            exp_id[256];
     221        char            camera[256];
     222        char            telescope[256];
    221223        psS32           bytes;
    222224        char            md5sum[256];
     
    230232        }
    231233
    232         if (!pzPendingImfilePop(dbh, (char **)&exp_id, &bytes, (char **)&md5sum, (char **)&class, (char **)&class_id, (char **)&uri)) {
    233             exit(EXIT_FAILURE);
    234         }
    235 
    236         psDBCleanup(dbh);
    237     }
    238 
    239     {
    240         psDB            *dbh;
     234        if (!pzPendingImfilePop(dbh, (char **)&exp_id, (char **)&camera, (char **)&telescope, &bytes, (char **)&md5sum, (char **)&class, (char **)&class_id, (char **)&uri)) {
     235            exit(EXIT_FAILURE);
     236        }
     237
     238        psDBCleanup(dbh);
     239    }
     240
     241    {
     242        psDB            *dbh;
     243        char            exp_tag[256];
    241244        char            exp_id[256];
    242245        char            camera[256];
     
    250253        }
    251254
    252         if (!newExpPop(dbh, (char **)&exp_id, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles)) {
    253             exit(EXIT_FAILURE);
    254         }
    255 
    256         psDBCleanup(dbh);
    257     }
    258 
    259     {
    260         psDB            *dbh;
    261         char            exp_id[256];
     255        if (!newExpPop(dbh, (char **)&exp_tag, (char **)&exp_id, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles)) {
     256            exit(EXIT_FAILURE);
     257        }
     258
     259        psDBCleanup(dbh);
     260    }
     261
     262    {
     263        psDB            *dbh;
     264        char            exp_tag[256];
    262265        char            class[256];
    263266        char            class_id[256];
     
    269272        }
    270273
    271         if (!newImfilePop(dbh, (char **)&exp_id, (char **)&class, (char **)&class_id, (char **)&uri)) {
    272             exit(EXIT_FAILURE);
    273         }
    274 
    275         psDBCleanup(dbh);
    276     }
    277 
    278     {
    279         psDB            *dbh;
    280         char            exp_id[256];
     274        if (!newImfilePop(dbh, (char **)&exp_tag, (char **)&class, (char **)&class_id, (char **)&uri)) {
     275            exit(EXIT_FAILURE);
     276        }
     277
     278        psDBCleanup(dbh);
     279    }
     280
     281    {
     282        psDB            *dbh;
     283        char            exp_tag[256];
    281284        char            camera[256];
    282285        char            telescope[256];
     
    301304        }
    302305
    303         if (!rawDetrendExpPop(dbh, (char **)&exp_id, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
    304             exit(EXIT_FAILURE);
    305         }
    306 
    307         psDBCleanup(dbh);
    308     }
    309 
    310     {
    311         psDB            *dbh;
    312         char            exp_id[256];
     306        if (!rawDetrendExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
     307            exit(EXIT_FAILURE);
     308        }
     309
     310        psDBCleanup(dbh);
     311    }
     312
     313    {
     314        psDB            *dbh;
     315        char            exp_tag[256];
    313316        char            camera[256];
    314317        char            telescope[256];
     
    333336        }
    334337
    335         if (!rawScienceExpPop(dbh, (char **)&exp_id, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
    336             exit(EXIT_FAILURE);
    337         }
    338 
    339         psDBCleanup(dbh);
    340     }
    341 
    342     {
    343         psDB            *dbh;
    344         char            exp_id[256];
     338        if (!rawScienceExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
     339            exit(EXIT_FAILURE);
     340        }
     341
     342        psDBCleanup(dbh);
     343    }
     344
     345    {
     346        psDB            *dbh;
     347        char            exp_tag[256];
    345348        char            class[256];
    346349        char            class_id[256];
     
    365368        }
    366369
    367         if (!rawImfilePop(dbh, (char **)&exp_id, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&exp_type, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
    368             exit(EXIT_FAILURE);
    369         }
    370 
    371         psDBCleanup(dbh);
    372     }
    373 
    374     {
    375         psDB            *dbh;
    376         char            exp_id[256];
     370        if (!rawImfilePop(dbh, (char **)&exp_tag, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&exp_type, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
     371            exit(EXIT_FAILURE);
     372        }
     373
     374        psDBCleanup(dbh);
     375    }
     376
     377    {
     378        psDB            *dbh;
     379        char            exp_tag[256];
    377380        char            recipe[256];
    378381        psS32           p1_version;
     
    383386        }
    384387
    385         if (!p1PendingExpPop(dbh, (char **)&exp_id, (char **)&recipe, &p1_version)) {
    386             exit(EXIT_FAILURE);
    387         }
    388 
    389         psDBCleanup(dbh);
    390     }
    391 
    392     {
    393         psDB            *dbh;
    394         char            exp_id[256];
     388        if (!p1PendingExpPop(dbh, (char **)&exp_tag, (char **)&recipe, &p1_version)) {
     389            exit(EXIT_FAILURE);
     390        }
     391
     392        psDBCleanup(dbh);
     393    }
     394
     395    {
     396        psDB            *dbh;
     397        char            exp_tag[256];
    395398        char            recipe[256];
    396399        psS32           p1_version;
     
    402405        }
    403406
    404         if (!p2PendingExpPop(dbh, (char **)&exp_id, (char **)&recipe, &p1_version, &p2_version)) {
    405             exit(EXIT_FAILURE);
    406         }
    407 
    408         psDBCleanup(dbh);
    409     }
    410 
    411     {
    412         psDB            *dbh;
    413         char            exp_id[256];
     407        if (!p2PendingExpPop(dbh, (char **)&exp_tag, (char **)&recipe, &p1_version, &p2_version)) {
     408            exit(EXIT_FAILURE);
     409        }
     410
     411        psDBCleanup(dbh);
     412    }
     413
     414    {
     415        psDB            *dbh;
     416        char            exp_tag[256];
    414417        char            class_id[256];
    415418        char            uri[256];
     
    423426        }
    424427
    425         if (!p2PendingImfilePop(dbh, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &p1_version, &p2_version)) {
    426             exit(EXIT_FAILURE);
    427         }
    428 
    429         psDBCleanup(dbh);
    430     }
    431 
    432     {
    433         psDB            *dbh;
    434         char            exp_id[256];
     428        if (!p2PendingImfilePop(dbh, (char **)&exp_tag, (char **)&class_id, (char **)&uri, (char **)&recipe, &p1_version, &p2_version)) {
     429            exit(EXIT_FAILURE);
     430        }
     431
     432        psDBCleanup(dbh);
     433    }
     434
     435    {
     436        psDB            *dbh;
     437        char            exp_tag[256];
    435438        psS32           p1_version;
    436439        psS32           p2_version;
     
    441444        }
    442445
    443         if (!p2ProcessedExpPop(dbh, (char **)&exp_id, &p1_version, &p2_version)) {
    444             exit(EXIT_FAILURE);
    445         }
    446 
    447         psDBCleanup(dbh);
    448     }
    449 
    450     {
    451         psDB            *dbh;
    452         char            exp_id[256];
     446        if (!p2ProcessedExpPop(dbh, (char **)&exp_tag, &p1_version, &p2_version)) {
     447            exit(EXIT_FAILURE);
     448        }
     449
     450        psDBCleanup(dbh);
     451    }
     452
     453    {
     454        psDB            *dbh;
     455        char            exp_tag[256];
    453456        char            class_id[256];
    454457        char            uri[256];
     
    467470        }
    468471
    469         if (!p2ProcessedImfilePop(dbh, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri, &p1_version, &p2_version)) {
    470             exit(EXIT_FAILURE);
    471         }
    472 
    473         psDBCleanup(dbh);
    474     }
    475 
    476     {
    477         psDB            *dbh;
    478         char            exp_id[256];
     472        if (!p2ProcessedImfilePop(dbh, (char **)&exp_tag, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri, &p1_version, &p2_version)) {
     473            exit(EXIT_FAILURE);
     474        }
     475
     476        psDBCleanup(dbh);
     477    }
     478
     479    {
     480        psDB            *dbh;
     481        char            exp_tag[256];
    479482        psS32           p2_version;
    480483        psS32           p3_version;
     
    485488        }
    486489
    487         if (!p3PendingExpPop(dbh, (char **)&exp_id, &p2_version, &p3_version)) {
     490        if (!p3PendingExpPop(dbh, (char **)&exp_tag, &p2_version, &p3_version)) {
    488491            exit(EXIT_FAILURE);
    489492        }
     
    513516        psS32           det_id;
    514517        psS32           iteration;
    515         char            exp_id[256];
     518        char            exp_tag[256];
    516519        bool            include;
    517520
     
    521524        }
    522525
    523         if (!detInputExpPop(dbh, &det_id, &iteration, (char **)&exp_id, &include)) {
    524             exit(EXIT_FAILURE);
    525         }
    526 
    527         psDBCleanup(dbh);
    528     }
    529 
    530     {
    531         psDB            *dbh;
    532         psS32           det_id;
    533         char            exp_id[256];
     526        if (!detInputExpPop(dbh, &det_id, &iteration, (char **)&exp_tag, &include)) {
     527            exit(EXIT_FAILURE);
     528        }
     529
     530        psDBCleanup(dbh);
     531    }
     532
     533    {
     534        psDB            *dbh;
     535        psS32           det_id;
     536        char            exp_tag[256];
    534537        char            class_id[256];
    535538        char            uri[256];
     
    546549        }
    547550
    548         if (!detProcessedImfilePop(dbh, &det_id, (char **)&exp_id, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) {
     551        if (!detProcessedImfilePop(dbh, &det_id, (char **)&exp_tag, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) {
    549552            exit(EXIT_FAILURE);
    550553        }
     
    656659        psS32           det_id;
    657660        psS32           iteration;
    658         char            exp_id[256];
     661        char            exp_tag[256];
    659662        char            class_id[256];
    660663        char            uri[256];
     
    671674        }
    672675
    673         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)) {
    674             exit(EXIT_FAILURE);
    675         }
    676 
    677         psDBCleanup(dbh);
    678     }
    679 
    680     {
    681         psDB            *dbh;
    682         psS32           det_id;
    683         psS32           iteration;
    684         char            exp_id[256];
     676        if (!detResidImfilePop(dbh, &det_id, &iteration, (char **)&exp_tag, (char **)&class_id, (char **)&uri, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri)) {
     677            exit(EXIT_FAILURE);
     678        }
     679
     680        psDBCleanup(dbh);
     681    }
     682
     683    {
     684        psDB            *dbh;
     685        psS32           det_id;
     686        psS32           iteration;
     687        char            exp_tag[256];
    685688        char            recipe[256];
    686689        psF64           bg;
     
    696699        }
    697700
    698         if (!detResidExpPop(dbh, &det_id, &iteration, (char **)&exp_id, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri, &accept)) {
     701        if (!detResidExpPop(dbh, &det_id, &iteration, (char **)&exp_tag, (char **)&recipe, &bg, &bg_stdev, &bg_mean_stdev, (char **)&b1_uri, (char **)&b2_uri, &accept)) {
    699702            exit(EXIT_FAILURE);
    700703        }
Note: See TracChangeset for help on using the changeset viewer.