13 #ifndef mitkDICOMProperty_h
14 #define mitkDICOMProperty_h
48 template<
typename TNumericReturnType>
51 std::istringstream iss(dcmValueString);
52 iss.imbue(std::locale(
"C"));
54 if (!(iss >> d) || !(iss.eof()))
56 mitkThrow() <<
"Cannot convert string to value type. Type: " <<
typeid(TNumericReturnType).name() <<
"; String: " << dcmValueString;
66 template<
typename TNumericType>
69 std::ostringstream oss;
70 oss.imbue(std::locale(
"C"));
73 mitkThrow() <<
"Cannot convert value type to dicom string. Type: " <<
typeid(TNumericType).name() <<
"; value: " << value;