24#ifndef _ITERATIONLISTENER_HPP_
25#define _ITERATIONLISTENER_HPP_
29#include "boost/shared_ptr.hpp"
51 UpdateMessage(
size_t index,
size_t count,
const std::string& message = no_message)
52 : iterationIndex(index), iterationCount(count), message(message)
interface to be implemented by clients who want progress callbacks
virtual Status update(const UpdateMessage &updateMessage)
virtual ~IterationListener()
static std::string no_message
handles registration of IterationListeners and broadcast of update messages
void addListenerWithTimer(const IterationListenerPtr &listener, double timePeriod)
void addListener(const IterationListenerPtr &listener, size_t iterationPeriod)
IterationListener::Status broadcastUpdateMessage(const IterationListener::UpdateMessage &updateMessage) const
IterationListenerRegistry(IterationListenerRegistry &)
void removeListener(const IterationListenerPtr &listener)
boost::shared_ptr< Impl > impl_
IterationListenerRegistry()
IterationListenerRegistry & operator=(IterationListenerRegistry &)
boost::shared_ptr< IterationListener > IterationListenerPtr
UpdateMessage(size_t index, size_t count, const std::string &message=no_message)
const std::string & message