| 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 | { |