OpenMS
Loading...
Searching...
No Matches
MzMLValidator.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: Timo Sachsenberg $
6// $Authors: Marc Sturm $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12#include <map>
13
14namespace OpenMS
15{
16 class ControlledVocabulary;
17 namespace Internal
18 {
19
39 class OPENMS_DLLAPI MzMLValidator :
41 {
42public:
49 MzMLValidator(const CVMappings & mapping, const ControlledVocabulary & cv);
50
52 ~MzMLValidator() override;
53
54protected:
55
56 // Docu in base class
57 void startElement(const XMLCh * const /*uri*/, const XMLCh * const /*local_name*/, const XMLCh * const qname, const xercesc::Attributes & attributes) override;
58
59 // Docu in base class
60 std::string getPath_(UInt remove_from_end = 0) const override;
61
62 // Docu in base class
63 void handleTerm_(const std::string & path, const CVTerm & parsed_term) override;
64
66 std::map<std::string, std::vector<CVTerm> > param_groups_;
67
69 std::string current_id_;
70
72 std::string binary_data_array_;
74 std::string binary_data_type_;
75
76private:
77
80
83
86
87 };
88
89 } // namespace Internal
90
91} // namespace OpenMS
92
char16_t XMLCh
Definition ClassTest.h:30
Representation of controlled vocabulary mapping rules (for PSI formats)
Definition CVMappings.h:31
Definition ControlledVocabulary.h:29
Semantic validator for mzML files.
Definition MzMLValidator.h:41
std::string getPath_(UInt remove_from_end=0) const override
Returns the current element path.
std::string binary_data_array_
Binary data array name.
Definition MzMLValidator.h:72
~MzMLValidator() override
Destructor.
MzMLValidator & operator=(const MzMLValidator &rhs)
Not implemented.
std::string current_id_
Current referenceableParamGroup identifier.
Definition MzMLValidator.h:69
std::string binary_data_type_
Binary data array type.
Definition MzMLValidator.h:74
MzMLValidator()
Not implemented.
MzMLValidator(const MzMLValidator &rhs)
Not implemented.
MzMLValidator(const CVMappings &mapping, const ControlledVocabulary &cv)
Constructor.
std::map< std::string, std::vector< CVTerm > > param_groups_
CV terms which can have a value (term => value type)
Definition MzMLValidator.h:66
void startElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname, const xercesc::Attributes &attributes) override
void handleTerm_(const std::string &path, const CVTerm &parsed_term) override
Handling of the term.
Semantically validates XML files using CVMappings and a ControlledVocabulary.
Definition SemanticValidator.h:32
Representation of a parsed CV term.
Definition SemanticValidator.h:47
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19