OpenMS
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>
16 
17 #include <vector>
18 
19 namespace OpenMS
20 {
40  class OPENMS_DLLAPI MzIdentMLFile :
41  public Internal::XMLFile,
42  public ProgressLogger
43  {
44 public:
48  ~MzIdentMLFile() override;
49 
56  void load(const String& filename, std::vector<ProteinIdentification>& poid, std::vector<PeptideIdentification>& peid);
57 
63  void store(const String& filename, const std::vector<ProteinIdentification>& poid, const std::vector<PeptideIdentification>& peid) const;
64 
74  bool isSemanticallyValid(const String& filename, StringList& errors, StringList& warnings);
75 
76 private:
77 
78  };
79 
80 } // namespace OpenMS
81 
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:43
MzIdentMLFile()
Default constructor.
void store(const String &filename, const std::vector< ProteinIdentification > &poid, const std::vector< PeptideIdentification > &peid) const
Stores the identifications in a MzIdentML file.
~MzIdentMLFile() override
Destructor.
void load(const String &filename, std::vector< ProteinIdentification > &poid, std::vector< PeptideIdentification > &peid)
Loads the identifications from a MzIdentML file.
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.
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