| 698 | } |
| 699 | |
| 700 | IntList DataValue::toIntList() const |
| 701 | { |
| 702 | if (value_type_ != INT_LIST) |
| 703 | { |
| 704 | throw Exception::ConversionError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, |
| 705 | "Could not convert non-IntList DataValue of type '" + NamesOfDataType[value_type_] + "' and value '" + this->toString(true) + "' to IntList"); |
| 706 | } |
| 707 | return *(data_.int_list_); |
| 708 | } |
| 709 | |
| 710 | DoubleList DataValue::toDoubleList() const |
| 711 | { |