IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 23, 2007, 3:41:56 PM (19 years ago)
Author:
jhoblitt
Message:

s/p0/reg/g
s/p1/guide/g
s/p2/chip/g
s/p6/stack/g
s/p5/diff/g
s/p4/warp/g
s/p3/cam/g

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/guidetool.c

    r11997 r12024  
    2929static bool pendingMode(pxConfig *config);
    3030static bool defineMode(pxConfig *config);
    31 static p1PendingExpRow *rawScienceTop1PendingExp(pxConfig *config, rawScienceExpRow *exp);
     31static guidePendingExpRow *rawScienceToguidePendingExp(pxConfig *config, rawScienceExpRow *exp);
    3232
    3333int main(int argc, char **argv)
     
    6161    PS_ASSERT_PTR_NON_NULL(config, false);
    6262
    63     // return all p1PendingExp rows unless there CLI search options
    64     psArray *p1PendingExp = p1PendingExpSelectRowObjects(
     63    // return all guidePendingExp rows unless there CLI search options
     64    psArray *guidePendingExp = guidePendingExpSelectRowObjects(
    6565        config->dbh,
    6666        config->where ? config->where : NULL,
    6767        0
    6868    );
    69     if (!p1PendingExp) {
    70         psError(PS_ERR_UNKNOWN, false, "no p1PendingExp found");
     69    if (!guidePendingExp) {
     70        psError(PS_ERR_UNKNOWN, false, "no guidePendingExp found");
    7171        return false;
    7272    }
     
    7474    psMetadata *output = psMetadataAlloc();
    7575
    76     for (long i = 0; i < psArrayLength(p1PendingExp); i++) {
    77         psMetadata *md = p1PendingExpMetadataFromObject(p1PendingExp->data[i]);
    78         psMetadataAddMetadata(output, PS_LIST_TAIL, "p1PendingExp",
     76    for (long i = 0; i < psArrayLength(guidePendingExp); i++) {
     77        psMetadata *md = guidePendingExpMetadataFromObject(guidePendingExp->data[i]);
     78        psMetadataAddMetadata(output, PS_LIST_TAIL, "guidePendingExp",
    7979            PS_META_DUPLICATE_OK, NULL, md);
    8080        psFree(md);
     
    106106    }
    107107
    108     // insert the rawScienceExps into p1PendingExp
     108    // insert the rawScienceExps into guidePendingExp
    109109    // XXX for the being we're going to skip checking for duplicate entries
    110110    // XXX this will have to implimented unless duplicate key insertion
    111111    // XXX support is implimented in psDB
    112112    for (long i = 0; i < psArrayLength(rawScienceExps); i++) {
    113         p1PendingExpRow * new = rawScienceTop1PendingExp(
     113        guidePendingExpRow * new = rawScienceToguidePendingExp(
    114114                                            config, rawScienceExps->data[i]);
    115         if (!p1PendingExpInsertObject(config->dbh, new)) {
     115        if (!guidePendingExpInsertObject(config->dbh, new)) {
    116116            psError(PS_ERR_UNKNOWN, false, "dbh access failed");
    117117            return false;
     
    123123}
    124124
    125 static p1PendingExpRow *rawScienceTop1PendingExp(pxConfig *config, rawScienceExpRow *exp)
     125static guidePendingExpRow *rawScienceToguidePendingExp(pxConfig *config, rawScienceExpRow *exp)
    126126{
    127127    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    184184    }
    185185
    186     return p1PendingExpRowAlloc(
     186    return guidePendingExpRowAlloc(
    187187        exp->exp_tag,
    188188        exp->camera,
Note: See TracChangeset for help on using the changeset viewer.