aGrUM  0.16.0
progressNotification.cpp
Go to the documentation of this file.
1 
31 
32 namespace gum {
33 
35  GUM_CONSTRUCTOR(ProgressListener);
36 
37  GUM_CONNECT((__notif), onProgress, (*this), ProgressListener::whenProgress);
38  GUM_CONNECT((__notif), onStop, (*this), ProgressListener::whenStop);
39  }
40 
42  __notif(other.__notif) {
43  GUM_CONS_CPY(ProgressListener);
44  GUM_ERROR(OperationNotAllowed, "No copy constructor for ProgressListener");
45  }
46 
48 
50  GUM_CONS_CPY(ProgressListener);
51  GUM_ERROR(OperationNotAllowed, "No copy constructor for ProgressListener");
52  }
53 
54 } // namespace gum
Notification for progress using listener.
virtual void whenProgress(const void *src, const Size step, const double time)=0
When progress was made.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
virtual void whenStop(const void *src, const std::string &message)=0
When it stops.
virtual ~ProgressListener()
Class destructor.
ProgressListener(ProgressNotifier &notif)
Class constructor.
ProgressListener & operator=(const ProgressListener &other)
Copy operator.
#define GUM_CONNECT(sender, signal, receiver, target)
Definition: listener.h:98
ProgressNotifier & __notif
The scheme configuration.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The ProgressListener class.
#define GUM_ERROR(type, msg)
Definition: exceptions.h:55