OpenMS
MSDataChainingConsumer.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: Hannes Roest $
6 // $Authors: Hannes Roest $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
13 #include <vector>
14 #include <memory>
15 
16 namespace OpenMS
17 {
18 
46  class OPENMS_DLLAPI MSDataChainingConsumer :
48  {
49  std::vector<Interfaces::IMSDataConsumer *> consumers_;
50 
51  public:
52 
58 
68  MSDataChainingConsumer(std::vector<Interfaces::IMSDataConsumer *> consumers);
69 
78 
87 
94  void setExperimentalSettings(const ExperimentalSettings & settings) override;
95 
102  void setExpectedSize(Size s_size, Size c_size) override;
103 
108  void consumeSpectrum(SpectrumType & s) override;
109 
115 
116  };
117 
118 } //end namespace OpenMS
119 
120 
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
Consumer class that passes all consumed data through a set of operations.
Definition: MSDataChainingConsumer.h:48
void appendConsumer(Interfaces::IMSDataConsumer *consumer)
Append a consumer to the chain of consumers to be executed.
MSDataChainingConsumer(std::vector< Interfaces::IMSDataConsumer * > consumers)
Constructor.
void setExpectedSize(Size s_size, Size c_size) override
Set expected size for all consumers.
void consumeChromatogram(ChromatogramType &c) override
Call all consumers in the specified order for the given chromatogram.
~MSDataChainingConsumer() override
Destructor.
MSDataChainingConsumer()
Default Constructor.
void setExperimentalSettings(const ExperimentalSettings &settings) override
Set experimental settings for all consumers.
std::vector< Interfaces::IMSDataConsumer * > consumers_
Definition: MSDataChainingConsumer.h:49
void consumeSpectrum(SpectrumType &s) override
Call all consumers in the specified order for the given spectrum.
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