|
Bifrost SDK
Bifrost SDK documentation
|
RAII-style progress notifier helper. More...
#include <TaskObserver.h>
Public Member Functions | |
| template<typename TaskNotifier > | |
| TaskProgressNotifier (TaskNotifier ¬ifier, StringLiteral title, unsigned denum) | |
| Constructor. More... | |
| void | notify (unsigned n=1) |
| Notify the observer of the progress of the task. More... | |
RAII-style progress notifier helper.
Takes the notifier, a title and a denumerator corresponding to the total number of steps in the subtask reporting progress. The constructor will do the initial notification (indicating new subtask started (with zero step completed)). Then "notify" function should be called to report progress.
Definition at line 495 of file TaskObserver.h.
|
inline |
Constructor.
Definition at line 499 of file TaskObserver.h.
|
inline |
Notify the observer of the progress of the task.
Definition at line 509 of file TaskObserver.h.