Base class for all classes that want to report their progress. More...
#include <OpenMS/CONCEPT/ProgressLogger.h>
Classes | |
class | ProgressLoggerImpl |
This class represents an actual implementation of a logger. More... | |
Public Types | |
enum | LogType { CMD, GUI, NONE } |
Possible log types. More... | |
Public Member Functions | |
ProgressLogger () | |
Constructor. More... | |
~ProgressLogger () | |
Destructor. More... | |
ProgressLogger (const ProgressLogger &other) | |
Copy constructor. More... | |
ProgressLogger & | operator= (const ProgressLogger &other) |
Assignment Operator. More... | |
void | setLogType (LogType type) const |
Sets the progress log that should be used. The default type is NONE! More... | |
LogType | getLogType () const |
Returns the type of progress log being used. More... | |
void | startProgress (SignedSize begin, SignedSize end, const String &label) const |
Initializes the progress display. More... | |
void | setProgress (SignedSize value) const |
Sets the current progress. More... | |
void | endProgress () const |
Ends the progress display. More... | |
Static Protected Member Functions | |
static String | logTypeToFactoryName_ (LogType type) |
Return the name of the factory product used for this log type. More... | |
Protected Attributes | |
LogType | type_ |
time_t | last_invoke_ |
ProgressLoggerImpl * | current_logger_ |
Static Protected Attributes | |
static int | recursion_depth_ |
Base class for all classes that want to report their progress.
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.
ProgressLogger | ( | const ProgressLogger & | other | ) |
Copy constructor.
void endProgress | ( | ) | const |
Ends the progress display.
Referenced by SpectraMerger::averageCentroidSpectra_(), SignalToNoiseEstimatorMeanIterative< Container >::computeSTN_(), SignalToNoiseEstimatorMedian< ContainerT >::computeSTN_(), TOPPOpenPepXLLF::main_(), SimpleSearchEngine::main_(), TOPPOpenPepXL::main_(), RNPxlSearch::main_(), and SortPairDoubleByFirst().
LogType getLogType | ( | ) | const |
Returns the type of progress log being used.
Return the name of the factory product used for this log type.
ProgressLogger& operator= | ( | const ProgressLogger & | other | ) |
Assignment Operator.
Referenced by SignalToNoiseEstimator< ContainerT >::operator=().
void setLogType | ( | LogType | type | ) | const |
Sets the progress log that should be used. The default type is NONE!
Referenced by extractCachedMetaFilename(), TOPPOpenPepXLLF::main_(), SimpleSearchEngine::main_(), TOPPOpenPepXL::main_(), RNPxlSearch::main_(), TOPPViewBase::runTOPPTool_(), and SortPairDoubleByFirst().
void setProgress | ( | SignedSize | value | ) | const |
Sets the current progress.
Referenced by SpectraMerger::averageCentroidSpectra_(), SignalToNoiseEstimatorMeanIterative< Container >::computeSTN_(), SignalToNoiseEstimatorMedian< ContainerT >::computeSTN_(), SimpleSearchEngine::main_(), and RNPxlSearch::main_().
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 SpectraMerger::averageCentroidSpectra_(), SignalToNoiseEstimatorMeanIterative< Container >::computeSTN_(), SignalToNoiseEstimatorMedian< ContainerT >::computeSTN_(), TOPPOpenPepXLLF::main_(), SimpleSearchEngine::main_(), TOPPOpenPepXL::main_(), RNPxlSearch::main_(), and SortPairDoubleByFirst().
|
mutableprotected |
|
mutableprotected |
|
staticprotected |
|
mutableprotected |
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:12 using doxygen 1.8.13 |