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

Method endElement

src/openms/source/FORMAT/HANDLERS/MzIdentMLHandler.cpp:265–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 }
264
265 void MzIdentMLHandler::endElement(const XMLCh* const /*uri*/, const XMLCh* const /*local_name*/, const XMLCh* const qname)
266 {
267 static set<String> to_ignore;
268 if (to_ignore.empty())
269 {
270 to_ignore.insert("mzIdentML");
271 to_ignore.insert("cvParam");
272 }
273
274 tag_ = sm_.convert(qname);
275 open_tags_.pop_back();
276
277 if (to_ignore.find(tag_) != to_ignore.end())
278 {
279 return;
280 }
281
282 if (tag_ == "DataCollection")
283 {
284 return;
285 }
286
287 if (tag_ == "AnalysisData")
288 {
289 return;
290 }
291
292 if (tag_ == "ProteinDetectionList")
293 {
294 return;
295 }
296
297 if (tag_ == "SpectrumIdentificationList")
298 {
299 return;
300 }
301
302 if (tag_ == "SpectrumIdentificationResult")
303 {
304 return;
305 }
306
307 if (tag_ == "SpectrumIdentificationItem")
308 {
309 current_spectrum_id_.addHit(current_id_hit_);
310 current_id_hit_ = IdentificationHit();
311 return;
312 }
313 error(LOAD, "MzIdentMLHandler::endElement: Unknown element found: '" + tag_ + "', ignoring.");
314 }
315
316 void MzIdentMLHandler::handleCVParam_(const String& /* parent_parent_tag*/, const String& parent_tag, const String& accession, /* const String& name, */ /* const String& value, */ const xercesc::Attributes& attributes, const String& cv_ref /* , const String& unit_accession */)
317 {

Callers

nothing calls this directly

Calls 8

IdentificationHitFunction · 0.85
emptyMethod · 0.45
insertMethod · 0.45
convertMethod · 0.45
pop_backMethod · 0.45
findMethod · 0.45
endMethod · 0.45
addHitMethod · 0.45

Tested by

no test coverage detected