ProteoWizard
Classes | Public Member Functions | List of all members
pwiz::analysis::MSDataAnalyzer Class Reference

Interface for MSData analyzers. More...

#include <MSDataAnalyzer.hpp>

Inheritance diagram for pwiz::analysis::MSDataAnalyzer:
EvenRequester pwiz::analysis::MetadataReporter pwiz::analysis::MSDataAnalyzerContainer pwiz::analysis::MSDataCache pwiz::analysis::RegionAnalyzer pwiz::analysis::RegionSIC pwiz::analysis::RegionSlice pwiz::analysis::RegionTIC pwiz::analysis::RunSummary pwiz::analysis::SpectrumBinaryData pwiz::analysis::SpectrumTable SimpleAnalyzer

Classes

struct  DataInfo
 information about the data to be analyzed More...
 

Public Member Functions

virtual ~MSDataAnalyzer ()
 
Event Handling
virtual void open (const DataInfo &dataInfo)
 start analysis of the data More...
 
virtual UpdateRequest updateRequested (const DataInfo &dataInfo, const SpectrumIdentity &spectrumIdentity) const
 ask analyzer if it wants an update More...
 
virtual void update (const DataInfo &dataInfo, const Spectrum &spectrum)
 analyze a single spectrum More...
 
virtual void close (const DataInfo &dataInfo)
 end analysis of the data More...
 

Detailed Description

Interface for MSData analyzers.

MSDataAnalyzer encapsulates a passive update strategy. The MSDataAnalyzer expects to handle events generated from an outside driver. This allows the driver to control access to the MSData object – in particular, the driver can ensure that scans are read from file only once.

Event sequence:

UpdateRequest_Ok handles the following use case: a spectrum cache wants to cache only those spectra that are requested by other MSDataAnalyzers; it won't request any updates, but it needs to see any update requested by someone else.

Definition at line 60 of file MSDataAnalyzer.hpp.

Constructor & Destructor Documentation

§ ~MSDataAnalyzer()

virtual pwiz::analysis::MSDataAnalyzer::~MSDataAnalyzer ( )
inlinevirtual

Definition at line 104 of file MSDataAnalyzer.hpp.

104 {}

Member Function Documentation

§ open()

virtual void pwiz::analysis::MSDataAnalyzer::open ( const DataInfo dataInfo)
inlinevirtual

§ updateRequested()

virtual UpdateRequest pwiz::analysis::MSDataAnalyzer::updateRequested ( const DataInfo dataInfo,
const SpectrumIdentity spectrumIdentity 
) const
inlinevirtual

§ update()

virtual void pwiz::analysis::MSDataAnalyzer::update ( const DataInfo dataInfo,
const Spectrum spectrum 
)
inlinevirtual

§ close()

virtual void pwiz::analysis::MSDataAnalyzer::close ( const DataInfo dataInfo)
inlinevirtual

The documentation for this class was generated from the following file: