IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 7, 2014, 6:08:39 PM (12 years ago)
Author:
watersc1
Message:

ppBackgroundStack compiles. I know it's not useful yet, because I haven't implemented the 'apply' and 'save the outputs' parts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppBackground/src/ppBackgroundStack.c

    r36579 r36580  
    1818    ppBackgroundErrorRegister();
    1919
    20     ppBackgroundData *data = ppBackgroundDataInit(&argc, argv);
     20    ppBackgroundStackData *data = ppBackgroundStackDataInit(&argc, argv);
    2121    if (!data) {
    2222        goto DIE;
    2323    }
    2424
    25     if (!ppBackgroundArguments(data, argc, argv)) {
     25    if (!ppBackgroundStackArguments(data, argc, argv)) {
    2626        goto DIE;
    2727    }
    2828
    29     if (!ppBackgroundCamera(data)) {
     29    if (!ppBackgroundStackCamera(data)) {
    3030        goto DIE;
    3131    }
    3232
    33     if (!ppBackgroundLoop(data)) {
     33    if (!ppBackgroundStackLoop(data)) {
    3434        goto DIE;
    3535    }
     
    3939    psExit exitValue = ppBackgroundExitCode(PS_EXIT_SUCCESS); // Exit code
    4040
    41     if (data && data->stats && data->statsFile) {
    42         psString stats = psMetadataConfigFormat(data->stats); // Statistics to output
    43         if (!stats || strlen(stats) == 0) {
    44             psError(PPBACKGROUND_ERR_IO, false, "Unable to format statistics file");
    45         } else if (fprintf(data->statsFile, "%s", stats) != strlen(stats)) {
    46             psError(PPBACKGROUND_ERR_IO, true, "Unable to write statistics file");
    47         }
    48         psFree(stats);
    49         if (fclose(data->statsFile) == EOF) {
    50             psError(PPBACKGROUND_ERR_IO, true, "Unable to close statistics file");
    51         }
    52         data->statsFile = NULL;
    53         exitValue = ppBackgroundExitCode(exitValue);
    54     }
     41/*     if (data && data->stats && data->statsFile) { */
     42/*         psString stats = psMetadataConfigFormat(data->stats); // Statistics to output */
     43/*         if (!stats || strlen(stats) == 0) { */
     44/*             psError(PPBACKGROUND_ERR_IO, false, "Unable to format statistics file"); */
     45/*         } else if (fprintf(data->statsFile, "%s", stats) != strlen(stats)) { */
     46/*             psError(PPBACKGROUND_ERR_IO, true, "Unable to write statistics file"); */
     47/*         } */
     48/*         psFree(stats); */
     49/*         if (fclose(data->statsFile) == EOF) { */
     50/*             psError(PPBACKGROUND_ERR_IO, true, "Unable to close statistics file"); */
     51/*         } */
     52/*         data->statsFile = NULL; */
     53/*         exitValue = ppBackgroundExitCode(exitValue); */
     54/*     } */
    5555
    5656    if (data) {
Note: See TracChangeset for help on using the changeset viewer.