ProteoWizard
Public Member Functions | Public Attributes
SimpleAnalyzer Struct Reference
Inheritance diagram for SimpleAnalyzer:
pwiz::analysis::MSDataAnalyzer

List of all members.

Public Member Functions

 SimpleAnalyzer (size_t _index)
virtual void open (const DataInfo &dataInfo)
 start analysis of the data
virtual UpdateRequest updateRequested (const DataInfo &dataInfo, const SpectrumIdentity &entry) const
virtual void update (const DataInfo &dataInfo, const Spectrum &spectrum)
virtual void close (const DataInfo &dataInfo)
 end analysis of the data
- Public Member Functions inherited from pwiz::analysis::MSDataAnalyzer
virtual ~MSDataAnalyzer ()
virtual UpdateRequest updateRequested (const DataInfo &dataInfo, const SpectrumIdentity &spectrumIdentity) const
 ask analyzer if it wants an update
virtual void update (const DataInfo &dataInfo, const Spectrum &spectrum)
 analyze a single spectrum

Public Attributes

size_t index
bool opened
int updateCount
bool closed

Detailed Description

Definition at line 37 of file MSDataAnalyzerTest.cpp.


Constructor & Destructor Documentation

SimpleAnalyzer::SimpleAnalyzer ( size_t  _index)
inline

Definition at line 44 of file MSDataAnalyzerTest.cpp.

: index(_index), opened(false), updateCount(0), closed(false) {}

Member Function Documentation

virtual void SimpleAnalyzer::open ( const DataInfo dataInfo)
inlinevirtual

start analysis of the data

Reimplemented from pwiz::analysis::MSDataAnalyzer.

Definition at line 46 of file MSDataAnalyzerTest.cpp.

{
// initialize everything, since Analyzers may be reused
opened = false;
closed=false;
// do something
opened = true;
}
virtual UpdateRequest SimpleAnalyzer::updateRequested ( const DataInfo dataInfo,
const SpectrumIdentity &  entry 
) const
inlinevirtual

Definition at line 57 of file MSDataAnalyzerTest.cpp.

References UpdateRequest_NoBinary, and UpdateRequest_None.

{
// only request this->index
}
virtual void SimpleAnalyzer::update ( const DataInfo dataInfo,
const Spectrum &  spectrum 
)
inlinevirtual

Definition at line 64 of file MSDataAnalyzerTest.cpp.

References os_.

{
if (os_) *os_ << "[" << index << "]" << " update: " << spectrum.index << endl;
}
virtual void SimpleAnalyzer::close ( const DataInfo dataInfo)
inlinevirtual

end analysis of the data

Reimplemented from pwiz::analysis::MSDataAnalyzer.

Definition at line 71 of file MSDataAnalyzerTest.cpp.

{closed = true;}

Member Data Documentation

size_t SimpleAnalyzer::index

Definition at line 39 of file MSDataAnalyzerTest.cpp.

bool SimpleAnalyzer::opened

Definition at line 40 of file MSDataAnalyzerTest.cpp.

Referenced by test().

int SimpleAnalyzer::updateCount

Definition at line 41 of file MSDataAnalyzerTest.cpp.

Referenced by test().

bool SimpleAnalyzer::closed

Definition at line 42 of file MSDataAnalyzerTest.cpp.

Referenced by test().


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