| 708 | } |
| 709 | |
| 710 | DoubleList DataValue::toDoubleList() const |
| 711 | { |
| 712 | if (value_type_ != DOUBLE_LIST) |
| 713 | { |
| 714 | throw Exception::ConversionError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, |
| 715 | "Could not convert non-DoubleList DataValue of type '" + NamesOfDataType[value_type_] + "' and value '" + this->toString(true) + "' to DoubleList"); |
| 716 | } |
| 717 | return *(data_.dou_list_); |
| 718 | } |
| 719 | |
| 720 | // Convert DataValues to String |
| 721 | String DataValue::toString(bool full_precision) const |