IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2005, 10:38:56 AM (21 years ago)
Author:
desonia
Message:

made adjustments to psMetadata and added psFitsUpdateTable.

File:
1 edited

Legend:

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

    r3381 r3407  
    1414 *  @author  Robert DeSonia, MHPCC
    1515 *
    16  *  @version $Revision: 1.11 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2005-03-07 20:58:50 $
     16 *  @version $Revision: 1.12 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2005-03-11 20:38:56 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6666static void printMetadataItem(psMetadataItem *metadataItem, char *spaces)
    6767{
     68    char* vecStr;
     69
    6870    printf("%sKey Name: %8s  ", spaces, metadataItem->name);
    69     printf("Key mdType: %d ", metadataItem->type);
     71    printf("Key mdType: 0x%08x ", metadataItem->type);
    7072
    7173    switch (metadataItem->type) {
     
    8587        printf("Key Value: %15.3f  ", metadataItem->data.F64);
    8688        break;
     89    case PS_META_VEC:
     90        vecStr = (char*)psVectorToString((psVector*)metadataItem->data.V, 15);
     91        printf("Key Value: %15s  ", vecStr);
     92        psFree(vecStr);
     93        break;
    8794    case PS_META_STR:
    8895        printf("Key Value: %15s  ", (char*)metadataItem->data.V);
    8996        break;
    9097    default:
    91         printf("Bad type: %d ", metadataItem->type);
     98        printf("Bad type: 0x%08x ", metadataItem->type);
    9299    }
    93100    printf("Key Comment: %s\n", metadataItem->comment);
Note: See TracChangeset for help on using the changeset viewer.