libpappsomspp
Library for mass spectrometry
|
#include <uimonitorinterface.h>
Public Member Functions | |
virtual bool | shouldIstop ()=0 |
should the procces be stopped ? If true, then cancel process Use this function at strategic point of your process in order to interrupt it cleanly Implementation must take care of thread resistance if implemented | |
virtual void | setTotalSteps (std::size_t total_number_of_steps) |
use it if the number of steps is known in an algorithm the total number of steps is usefull to report to the user a progress message in percents or with a progress bar | |
virtual void | count ()=0 |
count steps report when a step is computed in an algorithm | |
virtual void | setTitle (const QString &title)=0 |
current kind of process running | |
virtual void | setStatus (const QString &status)=0 |
current status of the process | |
virtual void | appendText (const QString &text)=0 |
append a text to a long report | |
Protected Attributes | |
std::size_t | m_totalSteps = 0 |
Definition at line 49 of file uimonitorinterface.h.
|
pure virtual |
append a text to a long report
text | string to append in a long report |
Implemented in pappso::UiMonitorText, and pappso::UiMonitorVoid.
Referenced by pappso::masschroq::MsRunGroup::align(), pappso::masschroq::MsRunPeptideList::detectQuantifyPeaks(), pappso::masschroq::MsRunPeptideList::mbrDetectQuantifyPeaks(), pappso::masschroq::MsRunGroup::quantify(), pappso::masschroq::MsRunPeptideList::quantify(), and pappso::masschroq::MsRunPeptideList::quantifyMatchBetweenRun().
|
pure virtual |
count steps report when a step is computed in an algorithm
Implemented in pappso::UiMonitorText, pappso::UiMonitorTextPercent, and pappso::UiMonitorVoid.
Referenced by pappso::MsRunXicExtractorInterface::extractXicCoordSPtrListParallelized(), pappso::MsRunXicExtractor::protectedExtractXicCoordSPtrList(), pappso::MsRunXicExtractorDisk::protectedExtractXicCoordSPtrList(), pappso::TimsDirectXicExtractor::protectedExtractXicCoordSPtrList(), pappso::masschroq::CborOutputStream::writeQrDataBlock(), and pappso::spectree::SpecTree::xtract().
|
pure virtual |
current status of the process
status | status message |
Implemented in pappso::UiMonitorText, and pappso::UiMonitorVoid.
Referenced by pappso::cbor::psm::SageFileReader::SageFileReader(), pappso::MsRunXicExtractorInterface::extractXicCoordSPtrList(), pappso::MsRunXicExtractorInterface::extractXicCoordSPtrListParallelized(), pappso::MsRunXicExtractorInterface::postExtractionProcess(), pappso::TimsDirectXicExtractor::protectedExtractXicCoordSPtrList(), pappso::masschroq::JsonInput::readMzDataFiles(), pappso::masschroq::CborOutputStream::writeQrDataBlock(), and pappso::spectree::SpecTree::xtract().
|
pure virtual |
current kind of process running
title | process title |
Implemented in pappso::UiMonitorText, and pappso::UiMonitorVoid.
|
inlinevirtual |
use it if the number of steps is known in an algorithm the total number of steps is usefull to report to the user a progress message in percents or with a progress bar
total_number_of_steps | the total number of steps |
Reimplemented in pappso::UiMonitorText, pappso::UiMonitorTextPercent, and pappso::UiMonitorVoid.
Definition at line 66 of file uimonitorinterface.h.
References m_totalSteps.
Referenced by pappso::MsRunXicExtractorInterface::extractXicCoordSPtrList(), pappso::MsRunXicExtractorInterface::extractXicCoordSPtrListParallelized(), pappso::TimsDirectXicExtractor::protectedExtractXicCoordSPtrList(), pappso::UiMonitorText::setTotalSteps(), pappso::masschroq::CborOutputStream::writeQrDataBlock(), and pappso::spectree::SpecTree::xtract().
|
pure virtual |
should the procces be stopped ? If true, then cancel process Use this function at strategic point of your process in order to interrupt it cleanly Implementation must take care of thread resistance if implemented
Implemented in pappso::UiMonitorText, and pappso::UiMonitorVoid.
Referenced by pappso::MsRunXicExtractor::protectedExtractXicCoordSPtrList(), pappso::TimsDirectXicExtractor::protectedExtractXicCoordSPtrList(), and pappso::spectree::SpecTree::xtract().
|
protected |
Definition at line 92 of file uimonitorinterface.h.
Referenced by pappso::UiMonitorTextPercent::UiMonitorTextPercent(), pappso::UiMonitorText::count(), pappso::UiMonitorTextPercent::count(), setTotalSteps(), and pappso::UiMonitorTextPercent::setTotalSteps().