![]() |
OpenMS
|
Consumer class that passes all consumed data through a set of operations. More...
#include <OpenMS/FORMAT/DATAACCESS/MSDataChainingConsumer.h>
Public Member Functions | |
| MSDataChainingConsumer () | |
| Default Constructor. More... | |
| MSDataChainingConsumer (std::vector< Interfaces::IMSDataConsumer * > consumers) | |
| Constructor. More... | |
| ~MSDataChainingConsumer () override | |
| Destructor. More... | |
| void | appendConsumer (Interfaces::IMSDataConsumer *consumer) |
| Append a consumer to the chain of consumers to be executed. More... | |
| void | setExperimentalSettings (const ExperimentalSettings &settings) override |
| Set experimental settings for all consumers. More... | |
| void | setExpectedSize (Size s_size, Size c_size) override |
| Set expected size for all consumers. More... | |
| void | consumeSpectrum (SpectrumType &s) override |
| Call all consumers in the specified order for the given spectrum. More... | |
| void | consumeChromatogram (ChromatogramType &c) override |
| Call all consumers in the specified order for the given chromatogram. More... | |
Public Member Functions inherited from IMSDataConsumer | |
| virtual | ~IMSDataConsumer () |
Private Attributes | |
| std::vector< Interfaces::IMSDataConsumer * > | consumers_ |
Additional Inherited Members | |
Public Types inherited from IMSDataConsumer | |
| typedef MSSpectrum | SpectrumType |
| typedef MSChromatogram | ChromatogramType |
Consumer class that passes all consumed data through a set of operations.
This consumer allows to chain multiple data consumers and applying them in a pre-specified order. This can be useful if a certain operation on a dataset needs to be performed but some pre-processing (data reduction etc.) or post-processing (writing to disk, caching on disk). The different processing steps can be added to the chaining consumer (in the correct order) without knowledge of the specific pre/post processing steps.
Usage:
Default Constructor.
| MSDataChainingConsumer | ( | std::vector< Interfaces::IMSDataConsumer * > | consumers | ) |
Constructor.
Pass a list of consumers that should be called sequentially
|
override |
Destructor.
Does nothing. Does not destroy underlying consumers, therefore is the responsibility of the caller to destroy all consumers.
| void appendConsumer | ( | Interfaces::IMSDataConsumer * | consumer | ) |
Append a consumer to the chain of consumers to be executed.
|
overridevirtual |
Call all consumers in the specified order for the given chromatogram.
Implements IMSDataConsumer.
|
overridevirtual |
Call all consumers in the specified order for the given spectrum.
Implements IMSDataConsumer.
Set expected size for all consumers.
Will set the expected size for all chained consumers
Implements IMSDataConsumer.
|
overridevirtual |
Set experimental settings for all consumers.
Will set the experimental settings for all chained consumers
Implements IMSDataConsumer.
|
private |