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

Method writeCVParams_

src/openms/source/FORMAT/HANDLERS/MzQuantMLHandler.cpp:1225–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223 }
1224
1225 void MzQuantMLHandler::writeCVParams_(String& s, const std::map<String, std::vector<CVTerm> >& cvl, UInt indent)
1226 {
1227 String inden((size_t)indent, '\t');
1228 for (std::map<String, std::vector<CVTerm> >::const_iterator jt = cvl.begin(); jt != cvl.end(); ++jt)
1229 {
1230 for (const CVTerm& kt : (*jt).second)
1231 {
1232 s += inden;
1233 s += "<cvParam cvRef=\"" + kt.getCVIdentifierRef() + "\" accession=\"" + (*jt).first + "\" name=\"" + kt.getName();
1234 if (kt.hasValue())
1235 {
1236 s += "\" value=\"" + kt.getValue().toString() + "\"/>\n"; // value is OpenMS::DataValue
1237 }
1238 else
1239 {
1240 s += "\"/>\n";
1241 }
1242 }
1243 }
1244 }
1245
1246 void MzQuantMLHandler::writeUserParams_(std::ostream& os, const MetaInfoInterface& meta, UInt indent)
1247 {

Callers

nothing calls this directly

Calls 6

hasValueMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45
toStringMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected