Consumer class that passes all operations on to a set of consumers. 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... | |
![]() | |
virtual | ~IMSDataConsumer () |
Private Attributes | |
std::vector< Interfaces::IMSDataConsumer<> * > | consumers_ |
Additional Inherited Members | |
![]() | |
typedef MSExperiment<>::SpectrumType | SpectrumType |
typedef MSExperiment<>::ChromatogramType | ChromatogramType |
Consumer class that passes all operations on to a set of consumers.
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.
Default Constructor.
MSDataChainingConsumer | ( | std::vector< Interfaces::IMSDataConsumer<> * > | consumers | ) |
Constructor.
Pass a list of consumers that should be called sequentially
Destructor.
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< MSExperiment<> >.
|
virtual |
Call all consumers in the specified order for the given spectrum.
Implements IMSDataConsumer< MSExperiment<> >.
Set expected size for all consumers.
Will set the expected size for all chained consumers
Implements IMSDataConsumer< MSExperiment<> >.
|
virtual |
Set experimental settings for all consumers.
Will set the experimental settings for all chained consumers
Implements IMSDataConsumer< MSExperiment<> >.
|
private |
OpenMS / TOPP release 2.0.0 | Documentation generated on Thu Aug 20 2015 01:44:37 using doxygen 1.8.9.1 |