- Timestamp:
- Mar 17, 2006, 3:59:30 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/pslib/psMetadataItemParse.c
r6619 r6635 15 15 return (float)item->data.S32; 16 16 default: 17 psError(PS_ERR_IO, true, " Concept%s (%s) is not of floating point type (%x) --- treating as NaN.\n",17 psError(PS_ERR_IO, true, "Item %s (%s) is not of floating point type (%x) --- treating as NaN.\n", 18 18 item->name, item->comment, item->type); 19 19 return NAN; … … 34 34 return (double)item->data.S32; 35 35 default: 36 psError(PS_ERR_IO, true, " Concept%s (%s) is not of double-precision floating point type (%x) "36 psError(PS_ERR_IO, true, "Item %s (%s) is not of double-precision floating point type (%x) " 37 37 "--- treating as NaN.\n", item->name, item->comment, item->type); 38 38 return NAN; … … 47 47 return item->data.S32; 48 48 case PS_TYPE_F32: 49 psLogMsg(__func__, PS_LOG_WARN, " Concept%s (%s) should be S32, but is F32 --- converting.\n",49 psLogMsg(__func__, PS_LOG_WARN, "Item %s (%s) should be S32, but is F32 --- converting.\n", 50 50 item->name, comment); 51 51 return (int)item->data.F32; 52 52 case PS_TYPE_F64: 53 psLogMsg(__func__, PS_LOG_WARN, " Concept%s (%s) should be S32, but is F64 --- converting.\n",53 psLogMsg(__func__, PS_LOG_WARN, "Item %s (%s) should be S32, but is F64 --- converting.\n", 54 54 item->name, comment); 55 55 return (int)item->data.F64; 56 56 default: 57 psError(PS_ERR_IO, true, " Concept%s (%s) is not of integer type (%x) --- treating as zero.\n",57 psError(PS_ERR_IO, true, "Item %s (%s) is not of integer type (%x) --- treating as zero.\n", 58 58 item->name, item->comment, item->type); 59 59 return 0; … … 78 78 } 79 79 default: 80 psError(PS_ERR_IO, true, " Concept%s (%s) is not of string type (%x) --- treating as "80 psError(PS_ERR_IO, true, "Item %s (%s) is not of string type (%x) --- treating as " 81 81 "undefined.\n", item->name, item->comment, item->type); 82 82 return psStringCopy("");
Note:
See TracChangeset
for help on using the changeset viewer.
