IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2008, 1:52:32 PM (18 years ago)
Author:
eugene
Message:

significant work on the I/O pmFPAfiles, especially to get the format / metaCamera correct for the input psf vs the input image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080511/ppSim/src/ppSimUtils.c

    r17672 r17901  
    212212
    213213// Get a value from the command-line arguments and add it to recipe options
     214bool ppSimArgToRecipeBool(bool *status,
     215                          psMetadata *options,    // Target to which to add value
     216                          const char *recipeName, // Name for value in the recipe
     217                          psMetadata *arguments,  // Command-line arguments
     218                          const char *argName       // Argument name in the command-line arguments
     219    )
     220{
     221    bool myStatus;
     222    bool value = psMetadataLookupS32(&myStatus, arguments, argName); // Value of interest
     223    if (status) { *status = myStatus; }
     224
     225    psMetadataAddBool(options, PS_LIST_TAIL, recipeName, PS_META_REPLACE, NULL, value);
     226    return value;
     227}
     228
     229// Get a value from the command-line arguments and add it to recipe options
    214230char *ppSimArgToRecipeStr(bool *status,
    215231                          psMetadata *options,    // Target to which to add value
Note: See TracChangeset for help on using the changeset viewer.