Changeset 11763 for trunk/ippTools/src/warptool.c
- Timestamp:
- Feb 12, 2007, 5:21:18 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/warptool.c (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/warptool.c
r11736 r11763 34 34 static bool updaterunMode(pxConfig *config); 35 35 static bool addinputexpMode(pxConfig *config); 36 static bool toscfileMode(pxConfig *config); 37 static bool addscfileMode(pxConfig *config); 38 static bool scfileMode(pxConfig *config); 36 static bool expMode(pxConfig *config); 37 static bool imfileMode(pxConfig *config); 38 static bool tooverlapMode(pxConfig *config); 39 static bool addoverlapMode(pxConfig *config); 40 static bool scmapMode(pxConfig *config); 41 static bool towarpedMode(pxConfig *config); 42 static bool addwarpedMode(pxConfig *config); 43 static bool warpedMode(pxConfig *config); 44 45 #if 0 39 46 static bool tostackedimfileMode(pxConfig *config); 40 47 //static bool addstackedimfileMode(pxConfig *config); … … 43 50 //static bool adddiffimfileMode(pxConfig *config); 44 51 static bool diffimfileMode(pxConfig *config); 52 #endif 45 53 46 54 static bool setp4RunState(pxConfig *config, const char *p4_id, const char *state); … … 64 72 MODECASE(P4TOOL_MODE_UPDATERUN, updaterunMode); 65 73 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 67 84 MODECASE(P4TOOL_MODE_ADDSCFILE, addscfileMode); 68 85 MODECASE(P4TOOL_MODE_SCFILE, scfileMode); … … 73 90 // MODECASE(P4TOOL_MODE_ADDDIFFIMFILE, adddiffimfileMode); 74 91 MODECASE(P4TOOL_MODE_DIFFIMFILE, diffimfileMode); 92 #endif 75 93 default: 76 94 psAbort("invalid option (this should not happen)"); … … 255 273 256 274 // XXX need to validate the p4_id here 275 // XXX instead of validiting it here we should just use forgein key 276 // constrants 257 277 if (!p4InputExpInsert(config->dbh, 258 278 (psS32)atoi(p4_id), … … 268 288 } 269 289 270 static bool toscfileMode(pxConfig *config) 290 291 static bool expMode(pxConfig *config) 292 { 293 PS_ASSERT_PTR_NON_NULL(config, NULL); 294 return true; 295 } 296 297 298 static bool imfileMode(pxConfig *config) 299 { 300 PS_ASSERT_PTR_NON_NULL(config, NULL); 301 return true; 302 } 303 304 305 static bool tooverlapMode(pxConfig *config) 271 306 { 272 307 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 274 309 psString query = psStringCopy( 275 310 " SELECT DISTINCT" 276 " p4Input Imfile.p4_id,"311 " p4InputExp.p4_id," 277 312 " p2ProcessedImfile.*," 278 313 " p4Run.workdir" 279 314 " FROM p4Run" 280 " JOIN p4Input Imfile"315 " JOIN p4InputExp" 281 316 " 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)" 284 320 " JOIN p3ProcessedExp" 285 321 " ON p4InputImfile.exp_tag = p3ProcessedExp.exp_tag" … … 343 379 } 344 380 345 static bool addscfileMode(pxConfig *config) 381 382 static bool addoverlapMode(pxConfig *config) 383 { 384 PS_ASSERT_PTR_NON_NULL(config, NULL); 385 return true; 386 } 387 388 389 static bool scmapMode(pxConfig *config) 390 { 391 PS_ASSERT_PTR_NON_NULL(config, NULL); 392 return true; 393 } 394 395 396 static bool towarpedMode(pxConfig *config) 397 { 398 PS_ASSERT_PTR_NON_NULL(config, NULL); 399 return true; 400 } 401 402 403 static bool addwarpedMode(pxConfig *config) 346 404 { 347 405 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 437 495 } 438 496 439 static bool scfileMode(pxConfig *config)497 static bool warpedMode(pxConfig *config) 440 498 { 441 499 PS_ASSERT_PTR_NON_NULL(config, NULL); … … 497 555 } 498 556 557 #if 0 499 558 static bool tostackedimfileMode(pxConfig *config) 500 559 { … … 562 621 } 563 622 564 #if 0565 623 static bool addstackedimfileMode(pxConfig *config) 566 624 { … … 625 683 return true; 626 684 } 627 #endif628 685 629 686 static bool stackedimfileMode(pxConfig *config) … … 760 817 } 761 818 762 #if 0763 819 static bool adddiffimfileMode(pxConfig *config) 764 820 { … … 842 898 return true; 843 899 } 844 #endif845 900 846 901 static bool diffimfileMode(pxConfig *config) … … 903 958 return true; 904 959 } 960 #endif 905 961 906 962 static bool setp4RunState(pxConfig *config, const char *p4_id, const char *state)
Note:
See TracChangeset
for help on using the changeset viewer.
