IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 12, 2007, 5:21:18 PM (19 years ago)
Author:
jhoblitt
Message:

stub out the new & improved p4tool with functionality broken out into p4/p5/p6

File:
1 edited

Legend:

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

    r11736 r11763  
    3434static bool updaterunMode(pxConfig *config);
    3535static bool addinputexpMode(pxConfig *config);
    36 static bool toscfileMode(pxConfig *config);
    37 static bool addscfileMode(pxConfig *config);
    38 static bool scfileMode(pxConfig *config);
     36static bool expMode(pxConfig *config);
     37static bool imfileMode(pxConfig *config);
     38static bool tooverlapMode(pxConfig *config);
     39static bool addoverlapMode(pxConfig *config);
     40static bool scmapMode(pxConfig *config);
     41static bool towarpedMode(pxConfig *config);
     42static bool addwarpedMode(pxConfig *config);
     43static bool warpedMode(pxConfig *config);
     44
     45#if 0
    3946static bool tostackedimfileMode(pxConfig *config);
    4047//static bool addstackedimfileMode(pxConfig *config);
     
    4350//static bool adddiffimfileMode(pxConfig *config);
    4451static bool diffimfileMode(pxConfig *config);
     52#endif
    4553
    4654static bool setp4RunState(pxConfig *config, const char *p4_id, const char *state);
     
    6472        MODECASE(P4TOOL_MODE_UPDATERUN,         updaterunMode);
    6573        MODECASE(P4TOOL_MODE_ADDINPUTEXP,       addinputexpMode);
    66         MODECASE(P4TOOL_MODE_TOSCFILE,          toscfileMode);
     74        MODECASE(P4TOOL_MODE_EXP,               expMode);
     75        MODECASE(P4TOOL_MODE_IMFILE,            imfileMode);
     76        MODECASE(P4TOOL_MODE_TOOVERLAP,         tooverlapMode);
     77        MODECASE(P4TOOL_MODE_ADDOVERLAP,        addoverlapMode);
     78        MODECASE(P4TOOL_MODE_SCMAP,             scmapMode);
     79        MODECASE(P4TOOL_MODE_TOWARPED,          towarpedMode);
     80        MODECASE(P4TOOL_MODE_ADDWARPED,         addwarpedMode);
     81        MODECASE(P4TOOL_MODE_WARPED,            warpedMode);
     82
     83#if 0
    6784        MODECASE(P4TOOL_MODE_ADDSCFILE,         addscfileMode);
    6885        MODECASE(P4TOOL_MODE_SCFILE,            scfileMode);
     
    7390//        MODECASE(P4TOOL_MODE_ADDDIFFIMFILE,     adddiffimfileMode);
    7491        MODECASE(P4TOOL_MODE_DIFFIMFILE,        diffimfileMode);
     92#endif
    7593        default:
    7694            psAbort("invalid option (this should not happen)");
     
    255273
    256274    // XXX need to validate the p4_id here
     275    // XXX instead of validiting it here we should just use forgein key
     276    // constrants
    257277    if (!p4InputExpInsert(config->dbh,
    258278            (psS32)atoi(p4_id),
     
    268288}
    269289
    270 static bool toscfileMode(pxConfig *config)
     290
     291static bool expMode(pxConfig *config)
     292{
     293    PS_ASSERT_PTR_NON_NULL(config, NULL);
     294    return true;
     295}
     296
     297
     298static bool imfileMode(pxConfig *config)
     299{
     300    PS_ASSERT_PTR_NON_NULL(config, NULL);
     301    return true;
     302}
     303
     304
     305static bool tooverlapMode(pxConfig *config)
    271306{
    272307    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    274309    psString query = psStringCopy(
    275310        " SELECT DISTINCT"
    276         "   p4InputImfile.p4_id,"
     311        "   p4InputExp.p4_id,"
    277312        "   p2ProcessedImfile.*,"
    278313        "   p4Run.workdir"
    279314        " FROM p4Run"
    280         " JOIN p4InputImfile"
     315        " JOIN p4InputExp"
    281316        "   USING(p4_id)"
    282         " LEFT JOIN p4WarpedImfile"
    283         "   USING(p4_id, exp_tag, p3_version, class_id)"
     317        " LEFT JOIN p4Scfile"
     318        "   ON p4Run.p4_id = p4Scfile.p4_id"
     319        "   AND exp_tag, p3_version, class_id)"
    284320        " JOIN p3ProcessedExp"
    285321        "   ON p4InputImfile.exp_tag = p3ProcessedExp.exp_tag"
     
    343379}
    344380
    345 static bool addscfileMode(pxConfig *config)
     381
     382static bool addoverlapMode(pxConfig *config)
     383{
     384    PS_ASSERT_PTR_NON_NULL(config, NULL);
     385    return true;
     386}
     387
     388
     389static bool scmapMode(pxConfig *config)
     390{
     391    PS_ASSERT_PTR_NON_NULL(config, NULL);
     392    return true;
     393}
     394
     395
     396static bool towarpedMode(pxConfig *config)
     397{
     398    PS_ASSERT_PTR_NON_NULL(config, NULL);
     399    return true;
     400}
     401
     402
     403static bool addwarpedMode(pxConfig *config)
    346404{
    347405    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    437495}
    438496
    439 static bool scfileMode(pxConfig *config)
     497static bool warpedMode(pxConfig *config)
    440498{
    441499    PS_ASSERT_PTR_NON_NULL(config, NULL);
     
    497555}
    498556
     557#if 0
    499558static bool tostackedimfileMode(pxConfig *config)
    500559{
     
    562621}
    563622
    564 #if 0
    565623static bool addstackedimfileMode(pxConfig *config)
    566624{
     
    625683    return true;
    626684}
    627 #endif
    628685
    629686static bool stackedimfileMode(pxConfig *config)
     
    760817}
    761818
    762 #if 0
    763819static bool adddiffimfileMode(pxConfig *config)
    764820{
     
    842898    return true;
    843899}
    844 #endif
    845900
    846901static bool diffimfileMode(pxConfig *config)
     
    903958    return true;
    904959}
     960#endif
    905961
    906962static bool setp4RunState(pxConfig *config, const char *p4_id, const char *state)
Note: See TracChangeset for help on using the changeset viewer.