libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::MzxmlOutput::Translater Class Reference
Inheritance diagram for pappso::MzxmlOutput::Translater:
pappso::SpectrumCollectionHandlerInterface

Public Member Functions

 Translater (MzxmlOutput *p_mzxml_output)
virtual ~Translater ()
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
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 loadingEnded ()
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

MzxmlOutputmp_output

Detailed Description

Definition at line 76 of file mzxmloutput.h.

Constructor & Destructor Documentation

◆ Translater()

MzxmlOutput::Translater::Translater ( MzxmlOutput * p_mzxml_output)

Definition at line 52 of file mzxmloutput.cpp.

53{
54 mp_output = p_mzxml_output;
55}

References pappso::MzxmlOutput::MzxmlOutput(), and mp_output.

◆ ~Translater()

MzxmlOutput::Translater::~Translater ( )
virtual

Definition at line 56 of file mzxmloutput.cpp.

57{
58}

Member Function Documentation

◆ needPeakList()

bool MzxmlOutput::Translater::needPeakList ( ) const
overridevirtual

tells if we need the peak list (if we want the binary data) for each spectrum

Implements pappso::SpectrumCollectionHandlerInterface.

Definition at line 68 of file mzxmloutput.cpp.

69{
70 return true;
71}

◆ setQualifiedMassSpectrum()

void MzxmlOutput::Translater::setQualifiedMassSpectrum ( const QualifiedMassSpectrum & spectrum)
overridevirtual

Implements pappso::SpectrumCollectionHandlerInterface.

Definition at line 60 of file mzxmloutput.cpp.

61{
62 qDebug();
63 mp_output->m_monitor.count();
64 mp_output->writeQualifiedMassSpectrum(spectrum);
65 qDebug();
66}

References mp_output.

Member Data Documentation

◆ mp_output

MzxmlOutput* pappso::MzxmlOutput::Translater::mp_output
private

Definition at line 86 of file mzxmloutput.h.

Referenced by Translater(), and setQualifiedMassSpectrum().


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