OpenMS
MzQuantMLFile.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Mathias Walzer $
6 // $Authors: Mathias Walzer $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/FORMAT/XMLFile.h>
15 
16 namespace OpenMS
17 {
25  class OPENMS_DLLAPI MzQuantMLFile :
26  public Internal::XMLFile,
27  public ProgressLogger
28  {
29 public:
33  ~MzQuantMLFile() override;
34 
41  void load(const String & filename, MSQuantifications & msq);
42 
48  void store(const String & filename, const MSQuantifications & cmsq) const;
49 
50  //~ this is not overwritten, XMLFile version works fine
51  //~ bool isValid(const String& filename, std::ostream& os = std::cerr);
52 
62  bool isSemanticallyValid(const String & filename, StringList & errors, StringList & warnings);
63 
64 private:
65 
66  };
67 
68 } // namespace OpenMS
69 
Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:23
Definition: MSQuantifications.h:27
File adapter for MzQuantML files.
Definition: MzQuantMLFile.h:28
MzQuantMLFile()
Default constructor.
void load(const String &filename, MSQuantifications &msq)
Loads a map from a MzQuantML file.
~MzQuantMLFile() override
Destructor.
void store(const String &filename, const MSQuantifications &cmsq) const
Stores a map in a MzQuantML 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: FeatureDeconvolution.h:22