IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2007, 5:32:33 PM (19 years ago)
Author:
jhoblitt
Message:

add solang/label/parent fields

File:
1 edited

Legend:

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

    r11713 r11816  
    422422    }
    423423
     424    psString label = psMetadataLookupStr(&status, config->args, "-label");
     425    if (!status) {
     426        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label");
     427        return false;
     428    }
     429
    424430    // we have to support multipe exp_tags
    425431    psMetadataItem *item = psMetadataLookup(config->args, "-exp_tag");
     
    512518            time_end,
    513519            use_begin,
    514             use_end
     520            use_end,
     521            0.0,    // solang min
     522            0.0,    // solang max
     523            label,
     524            0       // parent
    515525        );
    516526    psFree(registered);
     
    10621072            use_end = NULL;
    10631073        }
     1074    }
     1075
     1076    psString label = psMetadataLookupStr(&status, config->args, "-label");
     1077    if (!status) {
     1078        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label");
     1079        return false;
    10641080    }
    10651081
     
    11541170            time_end,
    11551171            use_begin,
    1156             use_end
     1172            use_end,
     1173            0.0,    // solang min
     1174            0.0,    // solang max
     1175            label,
     1176            0       // parent
    11571177        );
    11581178    psFree(registered);
     
    62736293    }
    62746294
     6295    psString parent = psMetadataLookupStr(&status, config->args, "-parent");
     6296    if (!status) {
     6297        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -parent");
     6298        return false;
     6299    }
     6300
     6301    psString label = psMetadataLookupStr(&status, config->args, "-label");
     6302    if (!status) {
     6303        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label");
     6304        return false;
     6305    }
     6306
    62756307    if (!psDBTransaction(config->dbh)) {
    62766308        psError(PS_ERR_UNKNOWN, false, "database error");
     
    63016333            time_end,
    63026334            use_begin,
    6303             use_end
     6335            use_end,
     6336            0.0,        // solang min
     6337            0.0,        // solang max
     6338            label,      // label
     6339            atoi(parent)
    63046340    )) {
    63056341        psError(PS_ERR_UNKNOWN, false, "database error");
Note: See TracChangeset for help on using the changeset viewer.