IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2006, 3:19:00 PM (20 years ago)
Author:
jhoblitt
Message:

change -normalized[frame] to require option -det_id

File:
1 edited

Legend:

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

    r7315 r7316  
    11741174   
    11751175    // det_id is required
     1176    // psString det_id is unused... it is only checked for to make sure it is
     1177    // in config->where
     1178    bool status = false;
     1179    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     1180    if (!status) {
     1181        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -det_id");
     1182        return false;
     1183    }
     1184    if (!det_id) {
     1185        psError(PS_ERR_UNKNOWN, true, "-det_id is required");
     1186        return false;
     1187    }
    11761188
    11771189    psArray *masterImfiles =
     
    12051217    PS_ASSERT_PTR_NON_NULL(config, false);
    12061218   
    1207     // det_id is required
     1219    // XXX det_id is requried as a simplification
    12081220    bool status = false;
    12091221    psString det_id = psMetadataLookupStr(&status, config->args, "-det_id");
     
    12121224        return false;
    12131225    }
     1226    if (!det_id) {
     1227        psError(PS_ERR_UNKNOWN, true, "-det_id is required");
     1228        return false;
     1229    }
    12141230
    12151231    // find all detNormalizedIImfile for det_id
    1216     // XXX det_id is requried as a simplification
    12171232    psArray *masterImfiles =
    12181233        detNormalizedImfileSelectRowObjects(config->dbh, config->where, 0);
Note: See TracChangeset for help on using the changeset viewer.