OpenMS
MSDataStoringConsumer.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: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
15 
16 namespace OpenMS
17 {
18 
26  class OPENMS_DLLAPI MSDataStoringConsumer :
28  {
29  private:
31 
32  public:
33 
35 
36  void setExperimentalSettings(const ExperimentalSettings & settings) override;
37 
38  void setExpectedSize(Size s_size, Size c_size) override;
39 
40  void consumeSpectrum(SpectrumType & s) override;
41 
43 
44  const PeakMap& getData() const;
45 
46  };
47 } //end namespace OpenMS
48 
49 
Description of the experimental settings.
Definition: ExperimentalSettings.h:36
The interface of a consumer of spectra and chromatograms.
Definition: IMSDataConsumer.h:44
The representation of a chromatogram.
Definition: MSChromatogram.h:31
Consumer class that simply stores the data.
Definition: MSDataStoringConsumer.h:28
PeakMap exp_
Definition: MSDataStoringConsumer.h:30
void setExpectedSize(Size s_size, Size c_size) override
Set expected size of spectra and chromatograms to be consumed.
void consumeChromatogram(ChromatogramType &c) override
Consume a chromatogram.
const PeakMap & getData() const
void setExperimentalSettings(const ExperimentalSettings &settings) override
Set experimental settings (meta-data) of the data to be consumed.
void consumeSpectrum(SpectrumType &s) override
Consume a spectrum.
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:46
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
const double c
Definition: Constants.h:188
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22