Changeset 3341 for trunk/psLib/test/collections/tst_psMetadataIO.c
- Timestamp:
- Feb 28, 2005, 1:34:10 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/collections/tst_psMetadataIO.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/collections/tst_psMetadataIO.c
r3264 r3341 13 13 * @author Ross Harman, MHPCC 14 14 * 15 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $16 * @date $Date: 2005-02- 17 19:26:24$15 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-02-28 23:34:10 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 66 66 { 67 67 printf("%sKey Name: %8s ", spaces, metadataItem->name); 68 printf("Key pType: %d ", metadataItem->pType);69 68 printf("Key mdType: %d ", metadataItem->type); 70 69 … … 73 72 printf("Key Value: %17c", ' '); 74 73 break; 75 case PS_META_PRIMITIVE: 76 switch(metadataItem->pType) { 77 case PS_TYPE_BOOL: 78 printf("Key Value: %15d ", metadataItem->data.B); 79 break; 80 case PS_TYPE_S32: 81 printf("Key Value: %15d ", metadataItem->data.S32); 82 break; 83 case PS_TYPE_F32: 84 printf("Key Value: %15.3f ", metadataItem->data.F32); 85 break; 86 case PS_TYPE_F64: 87 printf("Key Value: %15.3f ", metadataItem->data.F64); 88 break; 89 default: 90 printf("Bad type: %d ", metadataItem->pType); 91 } 74 case PS_META_BOOL: 75 printf("Key Value: %15d ", metadataItem->data.B); 76 break; 77 case PS_META_S32: 78 printf("Key Value: %15d ", metadataItem->data.S32); 79 break; 80 case PS_META_F32: 81 printf("Key Value: %15.3f ", metadataItem->data.F32); 82 break; 83 case PS_META_F64: 84 printf("Key Value: %15.3f ", metadataItem->data.F64); 92 85 break; 93 86 case PS_META_STR:
Note:
See TracChangeset
for help on using the changeset viewer.
