IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2009, 12:00:45 PM (17 years ago)
Author:
giebink
Message:

Doxygen comments made consistent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081230/ppArith/src/ppArithArguments.c

    r21229 r21239  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.4.30.1 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-01-30 01:38:25 $
     8 *  @version $Revision: 1.4.30.2 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-01-30 22:00:45 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
     
    2222#include "ppArith.h"
    2323
    24 // Print usage information and die
    25 static void usage(const char *program,  // Name of the program
    26                   psMetadata *arguments, // Command-line arguments
    27                   pmConfig *config      // Configuration
     24/**
     25 * Print usage information and die
     26 */
     27static void usage(const char *program,  ///< Name of the program
     28                  psMetadata *arguments, ///< Command-line arguments
     29                  pmConfig *config      ///< Configuration
    2830    )
    2931{
     
    4042}
    4143
    42 // Get a string value from the command-line and add it to the target
    43 static bool valueArgStr(psMetadata *arguments, // Command-line arguments
    44                         const char *argName, // Argument name in the command-line arguments
    45                         const char *mdName, // Name for value in the metadata
    46                         psMetadata *target // Target metadata to which to add value
     44/**
     45 * Get a string value from the command-line and add it to the target
     46 */
     47static bool valueArgStr(psMetadata *arguments, ///< Command-line arguments
     48                        const char *argName, ///< Argument name in the command-line arguments
     49                        const char *mdName, ///< Name for value in the metadata
     50                        psMetadata *target ///< Target metadata to which to add value
    4751                        )
    4852{
    49     psString value = psMetadataLookupStr(NULL, arguments, argName); /** Value of interest */
     53    psString value = psMetadataLookupStr(NULL, arguments, argName); ///< Value of interest
    5054    if (value && strlen(value) > 0) {
    5155        return psMetadataAddStr(target, PS_LIST_TAIL, mdName, 0, NULL, value);
     
    5559
    5660/**
    57  * \fn fileList
    5861 * Add a single filename to the arguments as an array, so that it can be used with pmFPAfileBindFromArgs, etc
    5962 */
    60 static void fileList(const char *file, // The symbolic name for the file
    61                      const char *name, // The name of the file
    62                      const char *comment, // Description of the file
    63                      pmConfig *config // Configuration
     63static void fileList(const char *file, ///< The symbolic name for the file
     64                     const char *name, ///< The name of the file
     65                     const char *comment, ///< Description of the file
     66                     pmConfig *config ///< Configuration
    6467    )
    6568{
    66     psArray *files = psArrayAlloc(1); // Array with file names
     69    psArray *files = psArrayAlloc(1); ///< Array with file names
    6770    files->data[0] = psStringCopy(name);
    6871    psMetadataAddArray(config->arguments, PS_LIST_TAIL, file, 0, comment, files);
     
    7578    assert(config);
    7679
    77     psMetadata *arguments = psMetadataAlloc(); /** Command-line arguments */
     80    psMetadata *arguments = psMetadataAlloc(); ///< Command-line arguments
    7881    psMetadataAddStr(arguments, PS_LIST_TAIL, "-file1", 0, "First image", NULL);
    7982    psMetadataAddStr(arguments, PS_LIST_TAIL, "-op", 0, "Operation to perform", NULL);
     
    8891    bool isMask = psMetadataLookupBool(NULL, arguments, "-mask"); // Are we dealing with masks?
    8992    psMetadataAddBool(config->arguments, PS_LIST_TAIL, "MASK", 0, "Produce a mask image?", isMask);
    90     const char *inFilerule = isMask ? "PPARITH.INPUT.MASK" : "PPARITH.INPUT.IMAGE"; // Input file rule
    91     const char *outFilerule = isMask ? "PPARITH.OUTPUT.MASK" : "PPARITH.OUTPUT.IMAGE"; /** Output file rule */
     93    const char *inFilerule = isMask ? "PPARITH.INPUT.MASK" : "PPARITH.INPUT.IMAGE"; ///< Input file rule
     94    const char *outFilerule = isMask ? "PPARITH.OUTPUT.MASK" : "PPARITH.OUTPUT.IMAGE"; ///< Output file rule
    9295    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "FILERULE.INPUT", 0,
    9396                     "File rule for input", inFilerule);
     
    9598                     "File rule for output", outFilerule);
    9699
    97     bool status = false;                /** Status for file definition */
     100    bool status = false;                ///< Status for file definition
    98101
    99102    // First file
    100     const char *name1 = psMetadataLookupStr(NULL, arguments, "-file1"); /** Name of first image */
     103    const char *name1 = psMetadataLookupStr(NULL, arguments, "-file1"); ///< Name of first image
    101104    if (!name1 || strlen(name1) == 0) {
    102105        psError(PS_ERR_UNEXPECTED_NULL, true, "No input image specified.");
     
    115118
    116119    // Second file is optional (won't be one for unary operations)
    117     const char *name2 = psMetadataLookupStr(NULL, arguments, "-file2"); /** Name of second image */
     120    const char *name2 = psMetadataLookupStr(NULL, arguments, "-file2"); ///< Name of second image
    118121    if (name2 && strlen(name2) > 0) {
    119122        fileList("INPUT2", name2, "Name of the second input image", config);
Note: See TracChangeset for help on using the changeset viewer.