OpenMS
Loading...
Searching...
No Matches
MzXMLFile.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
16
17namespace OpenMS
18{
19
25 class OPENMS_DLLAPI MzXMLFile :
26 public Internal::XMLFile,
27 public ProgressLogger
28 {
30
31public:
35 ~MzXMLFile() override;
36
39
41 const PeakFileOptions & getOptions() const;
42
45
54 void load(const std::string & filename, MapType & map);
55
63 void store(const std::string & filename, const MapType & map) const;
64
83 void transform(const std::string& filename_in, Interfaces::IMSDataConsumer * consumer, bool skip_full_count = false);
84
99 void transform(const std::string& filename_in, Interfaces::IMSDataConsumer * consumer, MapType& map, bool skip_full_count = false);
100
101protected:
102
104 void transformFirstPass_(const std::string& filename_in, Interfaces::IMSDataConsumer * consumer, bool skip_full_count);
105
106private:
107
109 };
110} // namespace OpenMS
111
The interface of a consumer of spectra and chromatograms.
Definition IMSDataConsumer.h:46
Base class for loading and storing XML files via Xerces, with optional schema validation and transpar...
Definition XMLFile.h:38
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
File adapter for MzXML 3.1 files.
Definition MzXMLFile.h:28
~MzXMLFile() override
Destructor.
void setOptions(const PeakFileOptions &)
set options for loading/storing
const PeakFileOptions & getOptions() const
Non-mutable access to the options for loading/storing.
void transform(const std::string &filename_in, Interfaces::IMSDataConsumer *consumer, bool skip_full_count=false)
Transforms a map while loading using the supplied MSDataConsumer.
void transform(const std::string &filename_in, Interfaces::IMSDataConsumer *consumer, MapType &map, bool skip_full_count=false)
Transforms a map while loading using the supplied MSDataConsumer.
PeakFileOptions options_
Definition MzXMLFile.h:108
void store(const std::string &filename, const MapType &map) const
Stores a map in a MzXML file.
void load(const std::string &filename, MapType &map)
Loads a map from a MzXML file.
MzXMLFile()
Default constructor.
PeakFileOptions & getOptions()
Mutable access to the options for loading/storing.
PeakMap MapType
Definition MzXMLFile.h:29
void transformFirstPass_(const std::string &filename_in, Interfaces::IMSDataConsumer *consumer, bool skip_full_count)
Perform first pass through the file and retrieve the meta-data to initialize the consumer.
Options for loading files containing peak data.
Definition PeakFileOptions.h:22
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19