| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
example of interface to count MS levels of all spectrum in an MSrun More...
#include <spectrumcollectionhandlerinterface.h>
  
Public Member Functions | |
| virtual void | setQualifiedMassSpectrum (const QualifiedMassSpectrum &spectrum) override | 
| virtual bool | needPeakList () const override | 
| tells if we need the peak list (if we want the binary data) for each spectrum   | |
| virtual void | loadingEnded () override | 
| unsigned long | getMsLevelCount (unsigned int ms_level) const | 
| unsigned long | getTotalCount () const | 
  Public Member Functions inherited from pappso::SpectrumCollectionHandlerInterface | |
| virtual bool | needMsLevelPeakList (unsigned int ms_level) const final | 
| tells if we need the peak list (if we want the binary data) for each spectrum, given an MS level   | |
| virtual void | setNeedMsLevelPeakList (unsigned int ms_level, bool want_peak_list) final | 
| tells if we need the peak list given   | |
| virtual bool | shouldStop () | 
| virtual void | spectrumListHasSize (std::size_t size) | 
| virtual void | setReadAhead (bool is_read_ahead) final | 
| use threads to read a spectrum by batch of batch_size   | |
| virtual bool | isReadAhead () const | 
| tells if we want to read ahead spectrum   | |
Private Attributes | |
| std::vector< unsigned long > | m_countMsLevelSpectrum | 
example of interface to count MS levels of all spectrum in an MSrun
Definition at line 112 of file spectrumcollectionhandlerinterface.h.
| unsigned long pappso::MsRunSimpleStatistics::getMsLevelCount | ( | unsigned int | ms_level | ) | const | 
Definition at line 127 of file spectrumcollectionhandlerinterface.cpp.
References m_countMsLevelSpectrum.
| unsigned long pappso::MsRunSimpleStatistics::getTotalCount | ( | ) | const | 
Definition at line 138 of file spectrumcollectionhandlerinterface.cpp.
References m_countMsLevelSpectrum.
      
  | 
  overridevirtual | 
Reimplemented from pappso::SpectrumCollectionHandlerInterface.
Definition at line 99 of file spectrumcollectionhandlerinterface.cpp.
      
  | 
  overridevirtual | 
tells if we need the peak list (if we want the binary data) for each spectrum
Implements pappso::SpectrumCollectionHandlerInterface.
Definition at line 92 of file spectrumcollectionhandlerinterface.cpp.
      
  | 
  overridevirtual | 
Implements pappso::SpectrumCollectionHandlerInterface.
Definition at line 107 of file spectrumcollectionhandlerinterface.cpp.
References pappso::QualifiedMassSpectrum::getMsLevel(), and m_countMsLevelSpectrum.
      
  | 
  private | 
Definition at line 116 of file spectrumcollectionhandlerinterface.h.
Referenced by getMsLevelCount(), getTotalCount(), and setQualifiedMassSpectrum().