21 #ifndef __STUDY_JOB_AGGREGATOR_PROGRESS_H__
22 #define __STUDY_JOB_AGGREGATOR_PROGRESS_H__
26 #include <yuni/thread/timer.h>
28 #include <antares/logs/logs.h>
30 class Progress final:
public Yuni::Thread::Timer
61 template<
class StringT>
62 void message(
const StringT& msg);
69 virtual bool onInterval(uint)
override;
75 Yuni::String pMessage;
83 #include "progress.hxx"
Definition: progress.h:31
static uint Total
The total number of jobs to execute.
Definition: progress.h:49
bool completed() const
Get if the task is complete.
Definition: progress.cpp:42
void message(const StringT &msg)
Set the message to display into logs.
Definition: progress.hxx:29
Yuni::Thread::Timer::ThreadingPolicy ThreadingPolicy
The threading policy.
Definition: progress.h:34
State
Different states related to the progression.
Definition: progress.h:38
State state
The current state in the progression.
Definition: progress.h:66
static std::atomic< int > Current
The number of jobs currently done.
Definition: progress.h:47