| 688 | } |
| 689 | |
| 690 | StringList DataValue::toStringList() const |
| 691 | { |
| 692 | if (value_type_ != STRING_LIST) |
| 693 | { |
| 694 | throw Exception::ConversionError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, |
| 695 | "Could not convert non-StringList DataValue of type '" + NamesOfDataType[value_type_] + "' and value '" + this->toString(true) + "' to StringList"); |
| 696 | } |
| 697 | return *(data_.str_list_); |
| 698 | } |
| 699 | |
| 700 | IntList DataValue::toIntList() const |
| 701 | { |