|
DataDirector API
|
Base class used by children of processes requesting periodic status updates. More...
#include <DDD_ProgressPublisher.h>
Public Member Functions | |
| DDD_ProgressPublisher () | |
| void | SetProgressCallback (ProgressCallback callback) |
| void | UpdateProgress (float percentage) |
Protected Attributes | |
| ProgressCallback | _progressCb |
| float | _currentProgress |
Base class used by children of processes requesting periodic status updates.
percentage value is local; this object should start at 0 and finish at 100. Let the parent worry about the relative progress. Constructor
| void SetProgressCallback | ( | ProgressCallback | callback | ) |
Set a progress callback for notifying parent processes of our current progress level (0.0-100.0%)
| callback | The callback that will be called whenever progress is updated |
| void UpdateProgress | ( | float | percentage | ) |
Update the progress value
| percentage | The new progress value (0-100%) |
|
protected |
The current progress value
|
protected |
The progress callback
1.8.10