IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 7, 2005, 10:58:51 AM (21 years ago)
Author:
desonia
Message:

modified psMetadata to use a special psMetadataType to signify duplicate
entries and added a flag to signify that duplicate entries are OK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psMetadataIO.c

    r3341 r3381  
    11/** @file  tst_psMetadataIO.c
    2 *
    3 *  @brief Test driver for psMetadataIO functions
    4 *
    5 *  This test driver contains the following tests for psMetadata:
    6 *    Test A - Read config file with overwrite set true
    7 *    Test B - Read config file with overwrite set false
    8 *    Test C - Read config file without auto-allocation of metadata
    9 *    Test D - Attempt to use null fileName argument
    10 *    Test E - Attempt to open nonexistant file
    11 *    Test F - Free psMetadata
    12 *
    13 *  @author  Ross Harman, MHPCC
    14 *
    15 *  @version $Revision: 1.10 $  $Name: not supported by cvs2svn $
    16 *  @date  $Date: 2005-02-28 23:34:10 $
    17 *
    18 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    19 *
    20 */
     2 *
     3 *  @brief Test driver for psMetadataIO functions
     4 *
     5 *  This test driver contains the following tests for psMetadata:
     6 *    Test A - Read config file with overwrite set true
     7 *    Test B - Read config file with overwrite set false
     8 *    Test C - Read config file without auto-allocation of metadata
     9 *    Test D - Attempt to use null fileName argument
     10 *    Test E - Attempt to open nonexistant file
     11 *    Test F - Free psMetadata
     12 *
     13 *  @author  Ross Harman, MHPCC
     14 *  @author  Robert DeSonia, MHPCC
     15 *
     16 *  @version $Revision: 1.11 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2005-03-07 20:58:50 $
     18 *
     19 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     20 *
     21 */
    2122
    2223#include <string.h>
     
    6970
    7071    switch (metadataItem->type) {
    71     case PS_META_LIST:
     72    case PS_META_MULTI:
    7273        printf("Key Value: %17c", ' ');
    7374        break;
     
    9293    printf("Key Comment: %s\n", metadataItem->comment);
    9394
    94     if(metadataItem->data.V && metadataItem->type==PS_META_LIST) {
     95    if(metadataItem->data.V && metadataItem->type==PS_META_MULTI) {
    9596        printMetadataList(metadataItem->data.V, "    ");
    9697    }
Note: See TracChangeset for help on using the changeset viewer.