OpenMS
MzMLValidator.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 #include <map>
13 
14 namespace OpenMS
15 {
16  class ControlledVocabulary;
17  namespace Internal
18  {
19 
23  class OPENMS_DLLAPI MzMLValidator :
24  public SemanticValidator
25  {
26 public:
33  MzMLValidator(const CVMappings & mapping, const ControlledVocabulary & cv);
34 
36  ~MzMLValidator() override;
37 
38 protected:
39 
40  // Docu in base class
41  void startElement(const XMLCh * const /*uri*/, const XMLCh * const /*local_name*/, const XMLCh * const qname, const xercesc::Attributes & attributes) override;
42 
43  // Docu in base class
44  String getPath_(UInt remove_from_end = 0) const override;
45 
46  // Docu in base class
47  void handleTerm_(const String & path, const CVTerm & parsed_term) override;
48 
50  std::map<String, std::vector<CVTerm> > param_groups_;
51 
54 
59 
60 private:
61 
64 
67 
70 
71  };
72 
73  } // namespace Internal
74 
75 } // namespace OpenMS
76 
Representation of controlled vocabulary mapping rules (for PSI formats)
Definition: CVMappings.h:31
Definition: ControlledVocabulary.h:29
Semantically validates MzXML files.
Definition: MzMLValidator.h:25
std::map< String, std::vector< CVTerm > > param_groups_
CV terms which can have a value (term => value type)
Definition: MzMLValidator.h:50
~MzMLValidator() override
Destructor.
String getPath_(UInt remove_from_end=0) const override
Returns the current element path.
MzMLValidator & operator=(const MzMLValidator &rhs)
Not implemented.
void handleTerm_(const String &path, const CVTerm &parsed_term) override
Handling of the term.
MzMLValidator()
Not implemented.
MzMLValidator(const MzMLValidator &rhs)
Not implemented.
String current_id_
Current referenceableParamGroup identifier.
Definition: MzMLValidator.h:53
MzMLValidator(const CVMappings &mapping, const ControlledVocabulary &cv)
Constructor.
void startElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname, const xercesc::Attributes &attributes) override
String binary_data_array_
Binary data array name.
Definition: MzMLValidator.h:56
String binary_data_type_
Binary data array type.
Definition: MzMLValidator.h:58
Semantically validates XML files using CVMappings and a ControlledVocabulary.
Definition: SemanticValidator.h:32
Representation of a parsed CV term.
Definition: SemanticValidator.h:47
A more convenient string class.
Definition: String.h:34
unsigned int UInt
Unsigned integer type.
Definition: Types.h:64
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19