This class writes the progress to the console window. More...
#include <Sequencer.h>
Public Member Functions | |
ConsoleSequencer ()=default | |
construction More... | |
Public Member Functions inherited from Base::SequencerBase | |
virtual void | checkAbort () |
Check if the operation is aborted by user. More... | |
virtual bool | isBlocking () const |
Returns true if the running sequencer is blocking any user input. More... | |
bool | isLocked () const |
Returns true if the sequencer was locked, false otherwise. More... | |
bool | isRunning () const |
Returns true if the sequencer is running, otherwise returns false. More... | |
bool | setLocked (bool bLock) |
If bLock is true then the sequencer gets locked. More... | |
bool | wasCanceled () const |
Returns true if the pending operation was canceled. More... | |
Protected Member Functions | |
void | nextStep (bool canAbort) |
Writes the current progress to the console window. More... | |
void | startStep () |
Starts the sequencer. More... | |
Protected Member Functions inherited from Base::SequencerBase | |
bool | next (bool canAbort=false) |
Performs the next step and returns true if the operation is not yet finished. More... | |
virtual void | nextStep (bool canAbort) |
This method can be reimplemented in sub-classes to give the user a feedback when the next is performed. More... | |
size_t | numberOfSteps () const |
Returns the number of steps. More... | |
SequencerBase & | operator= (const SequencerBase &)=default |
virtual void | pause () |
Breaks the sequencer if needed. More... | |
int | progressInPercent () const |
Returns the current state of progress in percent. More... | |
void | rejectCancel () |
If you tried to cancel but then decided to continue the operation. More... | |
virtual void | resetData () |
Resets internal data. More... | |
virtual void | resume () |
Continues with progress. More... | |
SequencerBase () | |
construction More... | |
SequencerBase (const SequencerBase &)=default | |
virtual void | setProgress (size_t) |
Sets the progress indicator to a certain position. More... | |
virtual void | setText (const char *pszTxt) |
Sets a text what the pending operation is doing. More... | |
bool | start (const char *pszStr, size_t steps) |
Starts a new operation, returns false if there is already a pending operation, otherwise it returns true. More... | |
virtual void | startStep () |
This method can be reimplemented in sub-classes to give the user a feedback when a new sequence starts. More... | |
bool | stop () |
Stops the sequencer if all operations are finished. More... | |
void | tryToCancel () |
Try to cancel the pending operation(s). More... | |
virtual | ~SequencerBase () |
Destruction. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Base::SequencerBase | |
static SequencerBase & | Instance () |
Returns the last created sequencer instance. More... | |
Protected Attributes inherited from Base::SequencerBase | |
size_t | nProgress |
Stores the current amount of progress. More... | |
size_t | nTotalSteps |
Stores the total number of steps. More... | |
This class writes the progress to the console window.
|
default |
construction
|
protectedvirtual |
Writes the current progress to the console window.
Reimplemented from Base::SequencerBase.
References Base::SequencerBase::nTotalSteps, and Base::SequencerBase::progressInPercent().
|
protectedvirtual |
Starts the sequencer.
Reimplemented from Base::SequencerBase.