7class __declspec(dllexport) ProgressUpdater
12 ProgressUpdater(
const ProgressUpdater& _other) =
delete;
13 ProgressUpdater(ProgressUpdater&& _other) =
delete;
14 ProgressUpdater operator=(ProgressUpdater& _other) =
delete;
15 ProgressUpdater operator=(ProgressUpdater&& _other) =
delete;
18 void setTriggerFrequency(uint64_t _triggerFrequency);
19 void setTotalNumberOfSteps(uint64_t _totalNumberofSteps);
20 void setTotalNumberOfUpdates(uint32_t _numberOfUpdates, uint64_t _totalNumberofSteps);
21 void setTimeTrigger(std::chrono::seconds _timeTrigger);
22 void triggerUpdate(int32_t _currentStep);
24 uint64_t getTriggerFrequency()
const {
return m_triggerFrequency; }
25 uint64_t getTotalNumberOfSteps()
const {
return m_totalNumberOfSteps; }
28 inline bool invariant() {
return m_uiComponent !=
nullptr; }
29 std::chrono::steady_clock::time_point m_priorTimestamp;
31 uint64_t m_triggerFrequency = 0;
32 uint64_t m_totalNumberOfSteps = 0;
33 std::chrono::seconds m_timeTrigger = std::chrono::seconds(2);