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 () | |
| Destructor. More... | |
| void | appendConsumer (Interfaces::IMSDataConsumer *consumer) |
| Append a consumer to the chain of consumers to be executed. More... | |
| void | setExperimentalSettings (const ExperimentalSettings &settings) |
| Set experimental settings for all consumers. More... | |
| void | setExpectedSize (Size s_size, Size c_size) |
| Set expected size for all consumers. More... | |
| void | consumeSpectrum (SpectrumType &s) |
| Call all consumers in the specified order for the given spectrum. More... | |
| void | consumeChromatogram (ChromatogramType &c) |
| 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
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.
|
virtual |
Call all consumers in the specified order for the given chromatogram.
Implements IMSDataConsumer.
|
virtual |
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.
|
virtual |
Set experimental settings for all consumers.
Will set the experimental settings for all chained consumers
Implements IMSDataConsumer.
|
private |
| OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:10 using doxygen 1.8.13 |