IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6189 for trunk/psLib/src/types


Ignore:
Timestamp:
Jan 24, 2006, 5:02:47 PM (21 years ago)
Author:
drobbin
Message:

Fixed psMetadataConfigFormat to use %22.15g for F32,F64. Fixed Precess tests. Updated Argument comments.

Location:
trunk/psLib/src/types
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psArguments.h

    r6187 r6189  
    77 *  @author David Robbins, MHPCC
    88 *
    9  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-01-23 23:52:15 $
     9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-01-25 03:02:47 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2828 */
    2929int psArgumentVerbosity(
    30     int *argc,                         ///< number or arguments
     30    int *argc,                         ///< number of arguments
    3131    char **argv                        ///< the argument list
    3232);
     
    3737 */
    3838int psArgumentGet(
    39     int argc,                          ///< number or arguments
     39    int argc,                          ///< number of arguments
    4040    char **argv,                       ///< the argument list
    4141    const char *arg                    ///< the specified argument to match
     
    5050bool psArgumentRemove(
    5151    int argnum,                        ///< the argument to remove
    52     int *argc,                         ///< number or arguments
     52    int *argc,                         ///< number of arguments
    5353    char **argv                        ///< the argument list
    5454);
     
    6565bool psArgumentParse(
    6666    psMetadata *arguments,             ///< metadata container for arguments
    67     int *argc,                         ///< number or arguments
     67    int *argc,                         ///< number of arguments
    6868    char **argv                        ///< the argument list
    6969);
     
    7474);
    7575
     76/** Sets the log level.
     77 *
     78 *  @return psS32:     the log level.
     79 */
    7680psS32 psLogArguments(
    77     int *argc,
    78     char **argv
     81    int *argc,                         ///< number of arguments
     82    char **argv                        ///< the argument list
    7983);
    8084
     85/** Sets trace levels by facility
     86 *
     87 *  @return psS32:      1 (true) if successful or else 2.
     88 */
    8189psS32 psTraceArguments(
    82     int *argc,
    83     char **argv
     90    int *argc,                         ///< number of arguments
     91    char **argv                        ///< the argument list
    8492);
    8593
  • trunk/psLib/src/types/psMetadata.c

    r6187 r6189  
    1212 *  @author Ross Harman, MHPCC
    1313 *
    14  *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-01-23 23:52:15 $
     14 *  @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-01-25 03:02:47 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    886886            *status = false;
    887887        } else {
    888             psError(PS_ERR_IO, true, "Couldn't find %s in the metadata.\n");
     888            psError(PS_ERR_IO, true, "Couldn't find %s in the metadata.\n", key);
    889889        }
    890890    } else if (item->type != PS_DATA_METADATA) {
     
    893893            *status = false;
    894894        } else {
    895             psLogMsg(__func__, PS_LOG_WARN, "%s isn't of type PS_DATA_META, as expected.\n");
     895            psLogMsg(__func__, PS_LOG_WARN, "%s isn't of type PS_DATA_META, as expected.\n", key);
    896896        }
    897897        value = NULL;
     
    921921            *status = false;
    922922        } else {
    923             psError(PS_ERR_IO, true, "Couldn't find %s in the metadata.\n");
     923            psError(PS_ERR_IO, true, "Couldn't find %s in the metadata.\n", key);
    924924        }
    925925    } else if (item->type != PS_DATA_STRING) {
     
    928928            *status = false;
    929929        } else {
    930             psLogMsg(__func__, PS_LOG_WARN, "%s isn't of type PS_DATA_STRING, as expected.\n");
     930            psLogMsg(__func__, PS_LOG_WARN, "%s isn't of type PS_DATA_STRING, as expected.\n", key);
    931931        }
    932932        value = NULL;
  • trunk/psLib/src/types/psMetadataConfig.c

    r5841 r6189  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.49 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-12-24 00:33:20 $
     12*  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-01-25 03:02:47 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    14171417                strncat(mdString, "F32 ", MAXSTR);
    14181418                for (i = 0; ((psVector*)(item->data.V))->data.F32[i] != 0; i++) {
    1419                     snprintf(content, MAXSTR, "%f",
     1419                    snprintf(content, MAXSTR, "%22.15g",
    14201420                             ((psVector*)(item->data.V))->data.F32[i]);
    14211421                    if ( ((psVector*)(item->data.V))->data.F32[i+1] != 0 ) {
     
    14281428                strncat(mdString, "F64 ", MAXSTR);
    14291429                for (i = 0; ((psVector*)(item->data.V))->data.F64[i] != 0; i++) {
    1430                     snprintf(content, MAXSTR, "%lf",
     1430                    snprintf(content, MAXSTR, "%22.15g",
    14311431                             ((psVector*)(item->data.V))->data.F64[i]);
    14321432                    if ( ((psVector*)(item->data.V))->data.F64[i+1] != 0 ) {
Note: See TracChangeset for help on using the changeset viewer.