IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 4, 2008, 4:16:06 PM (18 years ago)
Author:
Paul Price
Message:

Adding functions to dump configuration to an MDC file on disk, so we can record what parameters we used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r18830 r18905  
    6868    psFree(config->arguments);
    6969    psFree(config->database);
     70    psFree(config->program);
    7071
    7172    // Close log and trace files
     
    150151    config->database = NULL;
    151152    config->defaultRecipe = NULL;
     153    config->program = NULL;
    152154
    153155    config->traceFD = DEFAULT_TRACE;
     
    442444
    443445    pmConfig *config = pmConfigAlloc(); // The configuration, containing site, camera and recipes
     446    config->program = psStringCopy(argv[0]);
    444447    config->defaultRecipe = defaultRecipe;
    445448
     
    17451748}
    17461749
    1747 
    1748 #if 0
    1749 bool pmConfigDump(const pmConfig *config, const pmFPA *source, const char *outroot)
    1750 {
    1751     PS_ASSERT_PTR_NON_NULL(config, false);
    1752     PS_ASSERT_STRING_NON_EMPTY(outroot, false);
    1753 
    1754     pmFPAview *view = source ? pmFPAviewTop(source) : pmFPAviewAlloc(0);// View to top level
    1755     if (!view) {
    1756         psError(PS_ERR_UNKNOWN, false, "Unable to determine top view for FPA.");
    1757         return false;
    1758     }
    1759 
    1760     psMetadata *dumpRules = psMetadataLookupMetadata(NULL, config->system, "CONFIG.RULES"); // Name rules
    1761     if (!dumpRules) {
    1762         psError(PS_ERR_UNKNOWN, false, "Unable to find CONFIG.RULES in system configuration");
    1763         psFree(view);
    1764         return false;
    1765     }
    1766 
    1767     const char *name =
    1768 #endif
Note: See TracChangeset for help on using the changeset viewer.