IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 3:38:06 PM (19 years ago)
Author:
Paul Price
Message:

Adding file level for stand-alone (command-line) version only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsStandAlone.c

    r11486 r12354  
    4343            if (!outFile) {
    4444                psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file %s\n", outName);
    45                 // XXX this could be a system or config error, but not a data error
     45                // XXX this could be a system or config error, but not a data error
    4646                status = PS_EXIT_CONFIG_ERROR;
    4747                goto die;
     
    6161        status = PS_EXIT_DATA_ERROR;
    6262        goto die;
     63    }
     64
     65    if (data->fileLevel) {
     66        const char *level = pmFPALevelToName(pmFPAPHULevel(config->format)); // Level for file
     67        psMetadataAddStr(results, PS_LIST_HEAD, "FILE.LEVEL", 0, "File level", level);
    6368    }
    6469
     
    8388die:
    8489    if (status) {
    85         psErrorStackPrint (stderr, "failure in %s", __func__);
     90        psErrorStackPrint (stderr, "failure in %s", __func__);
    8691    }
    8792    psFree(data);
Note: See TracChangeset for help on using the changeset viewer.