MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / addOptionalColumnsToSectionRow_

Method addOptionalColumnsToSectionRow_

src/openms/source/FORMAT/MzTabFile.cpp:2857–2876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 5

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
toCellStringMethod · 0.45

Tested by

no test coverage detected