Base class for all classes that want to report their progess. More...
#include <OpenMS/CONCEPT/ProgressLogger.h>
Public Types | |
| enum | LogType { CMD, GUI, NONE } |
Possible log types. More... | |
Public Member Functions | |
| ProgressLogger () | |
| Constructor. | |
| ~ProgressLogger () | |
| Destructor. | |
| void | setLogType (LogType type) const |
| Sets the progress log that should be used. The default type is NONE! | |
| LogType | getLogType () const |
| Returns the type of progress log being used. | |
| void | startProgress (SignedSize begin, SignedSize end, const String &label) const |
| Initializes the progress display. | |
| void | setProgress (SignedSize value) const |
| Sets the current progress. | |
| void | endProgress () const |
| Ends the progress display. | |
Protected Attributes | |
| LogType | type_ |
| SignedSize | begin_ |
| SignedSize | end_ |
| SignedSize | value_ |
| QProgressDialog * | dlg_ |
| StopWatch | stop_watch_ |
| time_t | last_invoke_ |
Static Protected Attributes | |
| static int | recursion_depth_ |
Base class for all classes that want to report their progess.
Per default the progress log is disabled. Use setLogType to enable it.
Use startProgress, setProgress and endProgress for the actual logging.
| enum LogType |
| ProgressLogger | ( | ) |
Constructor.
| ~ProgressLogger | ( | ) |
Destructor.
| void endProgress | ( | ) | const |
Ends the progress display.
Referenced by InternalCalibration::calibrateMapGlobally(), InternalCalibration::calibrateMapSpectrumwise(), SignalToNoiseEstimatorMedian< OpenMS::MSSpectrum< PeakT > >::computeSTN_(), SignalToNoiseEstimatorMeanIterative< Container >::computeSTN_(), MzXMLHandler< MapType >::endElement(), MzMLHandler< MapType >::endElement(), MzDataHandler< MapType >::endElement(), FeatureFinderAlgorithmSimplest< PeakType, FeatureType >::run(), FeatureFinderAlgorithmSimple< PeakType, FeatureType >::run(), FeatureFinderAlgorithmPicked< PeakType, FeatureType >::run(), FeatureFinderAlgorithmIsotopeWavelet< PeakType, FeatureType >::run(), MzXMLHandler< MapType >::writeTo(), MzMLHandler< MapType >::writeTo(), and MzDataHandler< MapType >::writeTo().
| LogType getLogType | ( | ) | const |
Returns the type of progress log being used.
| void setLogType | ( | LogType | type | ) | const |
Sets the progress log that should be used. The default type is NONE!
Referenced by FileHandler::loadExperiment(), FeatureFinderAlgorithmIsotopeWavelet< PeakType, FeatureType >::run(), TOPPViewBase::runTOPPTool_(), and FileHandler::storeExperiment().
| void setProgress | ( | SignedSize | value | ) | const |
Sets the current progress.
Referenced by InternalCalibration::calibrateMapGlobally(), InternalCalibration::calibrateMapSpectrumwise(), SignalToNoiseEstimatorMedian< OpenMS::MSSpectrum< PeakT > >::computeSTN_(), SignalToNoiseEstimatorMeanIterative< Container >::computeSTN_(), MzMLHandler< MapType >::endElement(), MzDataHandler< MapType >::endElement(), SimpleSeeder< PeakType, FeatureType >::nextSeed(), FeatureFinderAlgorithmPicked< PeakType, FeatureType >::run(), FeatureFinderAlgorithmMRM< PeakType, FeatureType >::run(), FeatureFinderAlgorithmIsotopeWavelet< PeakType, FeatureType >::run(), MzXMLHandler< MapType >::startElement(), MzXMLHandler< MapType >::writeTo(), MzMLHandler< MapType >::writeTo(), and MzDataHandler< MapType >::writeTo().
| void startProgress | ( | SignedSize | begin, | |
| SignedSize | end, | |||
| const String & | label | |||
| ) | const |
Initializes the progress display.
Sets the progress range from begin to end. If begin equals end, setProgress only indicates that the program is still running, but without showing any absolute progress value.
Sets the label to label.
Referenced by InternalCalibration::calibrateMapGlobally(), InternalCalibration::calibrateMapSpectrumwise(), SignalToNoiseEstimatorMedian< OpenMS::MSSpectrum< PeakT > >::computeSTN_(), SignalToNoiseEstimatorMeanIterative< Container >::computeSTN_(), SimpleSeeder< PeakType, FeatureType >::initialize_(), FeatureFinderAlgorithmPicked< PeakType, FeatureType >::run(), FeatureFinderAlgorithmMRM< PeakType, FeatureType >::run(), FeatureFinderAlgorithmIsotopeWavelet< PeakType, FeatureType >::run(), MzXMLHandler< MapType >::startElement(), MzMLHandler< MapType >::startElement(), MzDataHandler< MapType >::startElement(), MzXMLHandler< MapType >::writeTo(), MzMLHandler< MapType >::writeTo(), and MzDataHandler< MapType >::writeTo().
SignedSize begin_ [mutable, protected] |
QProgressDialog* dlg_ [mutable, protected] |
SignedSize end_ [mutable, protected] |
time_t last_invoke_ [mutable, protected] |
int recursion_depth_ [static, protected] |
StopWatch stop_watch_ [mutable, protected] |
SignedSize value_ [mutable, protected] |
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:51 using doxygen 1.7.1 |