All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
MzIdentMLFile.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Mathias Walzer $
6 // $Authors: Andreas Bertsch, Mathias Walzer $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/FORMAT/XMLFile.h>
17 
18 #include <vector>
19 
20 namespace OpenMS
21 {
41  class OPENMS_DLLAPI MzIdentMLFile :
42  public Internal::XMLFile,
43  public ProgressLogger
44  {
45 public:
49  ~MzIdentMLFile() override;
50 
57  void load(const String& filename, std::vector<ProteinIdentification>& poid, PeptideIdentificationList& peid);
58 
64  void store(const String& filename, const std::vector<ProteinIdentification>& poid, const PeptideIdentificationList& peid) const;
65 
75  bool isSemanticallyValid(const String& filename, StringList& errors, StringList& warnings);
76 
77 private:
78 
79  };
80 
81 } // namespace OpenMS
82 
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:23
File adapter for MzIdentML files.
Definition: MzIdentMLFile.h:44
void store(const String &filename, const std::vector< ProteinIdentification > &poid, const PeptideIdentificationList &peid) const
Stores the identifications in a MzIdentML file.
MzIdentMLFile()
Default constructor.
void load(const String &filename, std::vector< ProteinIdentification > &poid, PeptideIdentificationList &peid)
Loads the identifications from a MzIdentML file.
~MzIdentMLFile() override
Destructor.
bool isSemanticallyValid(const String &filename, StringList &errors, StringList &warnings)
Checks if a file is valid with respect to the mapping file and the controlled vocabulary.
Container for peptide identifications from multiple spectra.
Definition: PeptideIdentificationList.h:66
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:27
A more convenient string class.
Definition: String.h:34
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19