OpenMS
MSDataAggregatingConsumer.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: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
14 
17 
18 namespace OpenMS
19 {
20 
30  class OPENMS_DLLAPI MSDataAggregatingConsumer :
32  {
33 
35  double previous_rt_;
38  std::vector<SpectrumType> s_list;
39 
40  public:
41 
48  next_consumer_(next_consumer),
49  previous_rt_(0.0),
50  rt_initialized_(false)
51  {}
52 
62 
63  void setExpectedSize(Size, Size) override {}
64 
65  void consumeSpectrum(SpectrumType& s) override;
66 
68 
70 
71  };
72 
73 } //end namespace OpenMS
74 
75 
Description of the experimental settings.
Definition: ExperimentalSettings.h:36
The interface of a consumer of spectra and chromatograms.
Definition: IMSDataConsumer.h:46
The representation of a chromatogram.
Definition: MSChromatogram.h:30
Aggregates spectra by retention time.
Definition: MSDataAggregatingConsumer.h:32
double previous_rt_
Definition: MSDataAggregatingConsumer.h:35
Interfaces::IMSDataConsumer * next_consumer_
Definition: MSDataAggregatingConsumer.h:34
MSDataAggregatingConsumer(Interfaces::IMSDataConsumer *next_consumer)
Constructor.
Definition: MSDataAggregatingConsumer.h:47
~MSDataAggregatingConsumer() override
Constructor.
bool rt_initialized_
Definition: MSDataAggregatingConsumer.h:36
void consumeChromatogram(ChromatogramType &c) override
Consume a chromatogram.
void setExpectedSize(Size, Size) override
Set expected size of spectra and chromatograms to be consumed.
Definition: MSDataAggregatingConsumer.h:63
SpectrumType s_tmp
Definition: MSDataAggregatingConsumer.h:37
std::vector< SpectrumType > s_list
Definition: MSDataAggregatingConsumer.h:38
void consumeSpectrum(SpectrumType &s) override
Consume a spectrum.
void setExperimentalSettings(const OpenMS::ExperimentalSettings &) override
Set experimental settings (meta-data) of the data to be consumed.
Definition: MSDataAggregatingConsumer.h:69
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:97
const double c
Definition: Constants.h:188
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19