#include <OpenMS/CONCEPT/ProgressLogger.h>
Per default the progress log is disabled. Use setLogType to enable it
Use startProgress, setProgress and endProgress for the actual logging.
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! | |
void | startProgress (UInt begin, UInt end, const String &label) const |
Initializes the progress display. | |
void | setProgress (UInt value) const |
Sets the current progress. | |
void | endProgress () const |
Ends the progress display. | |
Protected Attributes | |
LogType | type_ |
UInt | begin_ |
UInt | end_ |
UInt | value_ |
QProgressDialog * | dlg_ |
enum LogType |
ProgressLogger | ( | ) |
Constructor.
~ProgressLogger | ( | ) |
Destructor.
void setLogType | ( | LogType | type | ) | const |
Sets the progress log that should be used. The default type is NONE!
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
.
void setProgress | ( | UInt | value | ) | const |
Sets the current progress.
void endProgress | ( | ) | const |
Ends the progress display.
QProgressDialog* dlg_ [mutable, protected] |
Generated Tue Apr 1 15:36:43 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |