110 const double estimatedTime,
const int progressPrecision) {
151 this->
progressHandle(pNf->algorithm(), pNf->progress, pNf->message, pNf->estimatedTime, pNf->progressPrecision);
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
Observes Algorithm notifications: start,progress,finish,error.
virtual void startingHandle(IAlgorithm_sptr alg)
void observeStart(const IAlgorithm_const_sptr &alg)
Connect to algorithm alg and observe its start notification.
void _errorHandle(const Poco::AutoPtr< Algorithm::ErrorNotification > &pNf)
Poco notification handler for Algorithm::ErrorNotification.
Poco::NObserver< AlgorithmObserver, AlgorithmStartingNotification > m_startingObserver
Poco::NObserver for API::AlgorithmStartingNotification.
void observeAll(const IAlgorithm_const_sptr &alg)
Connect to algorithm alg and observe all its notifications.
void observeFinish(const IAlgorithm_const_sptr &alg)
Connect to algorithm alg and observe its finish notification.
virtual ~AlgorithmObserver()
Virtual destructor.
AlgorithmObserver()
Default constructor.
void _finishHandle(const Poco::AutoPtr< Algorithm::FinishedNotification > &pNf)
Poco notification handler for Algorithm::FinishedNotification.
virtual void finishHandle(const IAlgorithm *alg)
Poco::NObserver< AlgorithmObserver, Algorithm::ProgressNotification > m_progressObserver
Poco::NObserver for Algorithm::ProgressNotification.
void observeStarting()
Connect to AlgorithmManager and observe its starting notifications.
void observeProgress(const IAlgorithm_const_sptr &alg)
Connect to algorithm alg and observe its progress notification.
virtual void errorHandle(const IAlgorithm *alg, const std::string &what)
virtual void startHandle(const IAlgorithm *alg)
void _startingHandle(const Poco::AutoPtr< AlgorithmStartingNotification > &pNf)
Poco notification handler for API::AlgorithmStartingNotification.
void _startHandle(const Poco::AutoPtr< Algorithm::StartedNotification > &pNf)
Poco notification handler for Algorithm::StartedNotification.
void _progressHandle(const Poco::AutoPtr< Algorithm::ProgressNotification > &pNf)
Poco notification handler for Algorithm::ProgressNotification.
void stopObserving(const IAlgorithm_const_sptr &alg)
Disconnect from algorithm alg.
Poco::NObserver< AlgorithmObserver, Algorithm::StartedNotification > m_startObserver
Poco::NObserver for Algorithm::StartedNotification.
virtual void progressHandle(const IAlgorithm *alg, double p, const std::string &msg, const double estimatedTime, const int progressPrecision)
void observeError(const IAlgorithm_const_sptr &alg)
Connect to algorithm alg and observe its error notification.
Poco::NObserver< AlgorithmObserver, Algorithm::ErrorNotification > m_errorObserver
Poco::NObserver for Algorithm::ErrorNotification.
Poco::NObserver< AlgorithmObserver, Algorithm::FinishedNotification > m_finishObserver
Poco::NObserver for Algorithm::FinishedNotification.
void stopObservingManager()
Disconnect from the algorithm manager.
IAlgorithm is the interface implemented by the Algorithm base class.
virtual void removeObserver(const Poco::AbstractObserver &observer) const =0
Remove an observer.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
std::shared_ptr< const IAlgorithm > IAlgorithm_const_sptr
shared pointer to Mantid::API::IAlgorithm (const version)