25 Progress(
const std::string& a_message);
50 virtual void OnProgressStatus(
int a_stackIndex,
double a_fractionComplete) = 0;
55 virtual int OnBeginOperationString(
const std::string& a_operation) = 0;
59 virtual void OnEndOperation(
int a_stackIndex) = 0;
64 virtual void OnUpdateMessage(
int a_stackIndex,
const std::string& a_message) = 0;
66 static void SetListener(BSHP<ProgressListener> a_listener);
67 static BSHP<ProgressListener> GetListener();
Stack based class to give notification of progress for a long task. Progress can be stacked by making...
void CurrentItem(long long a_item)
Give notification for the number of items completed. Used with SetItemCount.
void UpdateMessage(const std::string &a_message)
Update the current progress message.
Progress(const std::string &a_message)
Constructor.
Listen to progress reported from Progress class.
Macros etc that make boost more convenient to use.
void SetItemCount(long long a_count)
Set the number of items to be processed. Used with CurrentItem.
void ProgressStatus(double a_percentComplete)
Give notification for the progress percent complete.
int m_stackIndex
instances index on stack of instances
long long m_itemCount
number of items to process