30 #ifndef AGRUM_PROGRESSNOTIFICATION_H 31 #define AGRUM_PROGRESSNOTIFICATION_H 33 #include <agrum/tools/core/signal/signaler.h> 34 #include <agrum/tools/core/timer.h> 77 virtual void whenProgress(
const void* src,
const Size step,
const double time) = 0;
84 virtual void whenStop(
const void* src,
const std::string& message) = 0;
Notification for progress using listener.
Signaler2< Size, double > onProgress
Progression (percent) and time.
virtual void whenProgress(const void *src, const Size step, const double time)=0
When progress was made.
INLINE void emplace(Args &&... args)
ProgressNotifier & _notif_
The scheme configuration.
ProgressListener(const ProgressListener &other)
Copy constructor.
virtual void whenStop(const void *src, const std::string &message)=0
When it stops.
virtual ~ProgressListener()
Class destructor.
ProgressListener(ProgressNotifier ¬if)
Class constructor.
ProgressListener & operator=(const ProgressListener &other)
Copy operator.
Signaler1< const std::string &> onStop
with a possible explanation for stopping
The ProgressListener class.