| 2855 | } |
| 2856 | |
| 2857 | void MzTabFile::addOptionalColumnsToSectionRow_(const vector<String>& column_names, const vector<MzTabOptionalColumnEntry>& column_entries, StringList& output) |
| 2858 | { |
| 2859 | for (vector<String>::const_iterator it = column_names.begin(); it != column_names.end(); ++it) |
| 2860 | { |
| 2861 | bool found = false; |
| 2862 | for (Size i = 0; i != column_entries.size(); ++i) |
| 2863 | { |
| 2864 | if (column_entries[i].first == *it) |
| 2865 | { |
| 2866 | output.push_back(column_entries[i].second.toCellString()); |
| 2867 | found = true; |
| 2868 | break; |
| 2869 | } |
| 2870 | } |
| 2871 | if (!found) |
| 2872 | { |
| 2873 | output.push_back(MzTabString("null").toCellString()); |
| 2874 | } |
| 2875 | } |
| 2876 | } |
| 2877 | // stream IDs to file |
| 2878 | void MzTabFile::store( |
| 2879 | const String& filename, |
nothing calls this directly
no test coverage detected