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