IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 25, 2007, 5:09:20 PM (19 years ago)
Author:
eugene
Message:

changed the pmFPAfileDefine functions to not require an input status value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubCamera.c

    r13462 r13528  
    2626
    2727    // Input mask
    28     pmFPAfile *inputMask = pmFPAfileBindFromArgs(NULL, input, config, "PPSUB.INPUT.MASK", "INPUT.MASK");
     28    pmFPAfile *inputMask = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.MASK", "INPUT.MASK");
     29    if (!status) {
     30        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     31        return NULL;
     32    }
    2933    if (inputMask && inputMask->type != PM_FPA_FILE_MASK) {
    3034        psError(PS_ERR_IO, true, "PPSUB.INPUT.MASK is not of type MASK");
     
    3337
    3438    // Input weight map
    35     pmFPAfile *inputWeight = pmFPAfileBindFromArgs(NULL, input, config, "PPSUB.INPUT.WEIGHT", "INPUT.WEIGHT");
     39    pmFPAfile *inputWeight = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.WEIGHT", "INPUT.WEIGHT");
     40    if (!status) {
     41        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     42        return NULL;
     43    }
    3644    if (inputWeight && inputWeight->type != PM_FPA_FILE_WEIGHT) {
    3745        psError(PS_ERR_IO, true, "PPSUB.INPUT.WEIGHT is not of type WEIGHT");
     
    5260
    5361    // Reference mask
    54     pmFPAfile *refMask = pmFPAfileBindFromArgs(NULL, input, config, "PPSUB.REF.MASK", "REF.MASK");
     62    pmFPAfile *refMask = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.REF.MASK", "REF.MASK");
     63    if (!status) {
     64        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     65        return NULL;
     66    }
    5567    if (refMask && refMask->type != PM_FPA_FILE_MASK) {
    5668        psError(PS_ERR_IO, true, "PPSUB.REF.MASK is not of type MASK");
     
    5971
    6072    // Reference weight map
    61     pmFPAfile *refWeight = pmFPAfileBindFromArgs(NULL, input, config, "PPSUB.REF.WEIGHT", "REF.WEIGHT");
     73    pmFPAfile *refWeight = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.REF.WEIGHT", "REF.WEIGHT");
     74    if (!status) {
     75        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
     76        return NULL;
     77    }
    6278    if (refWeight && refWeight->type != PM_FPA_FILE_WEIGHT) {
    6379        psError(PS_ERR_IO, true, "PPSUB.REF.WEIGHT is not of type WEIGHT");
Note: See TracChangeset for help on using the changeset viewer.