10#include "MantidPythonInterface/api/DllConfig.h"
11#include <boost/python/wrapper.hpp>
14namespace PythonInterface {
28 void progressHandle(
const API::IAlgorithm *alg,
double p,
const std::string &msg,
const double estimatedTime,
29 const int progressPrecision)
override;
32 void errorHandle(
const API::IAlgorithm *alg,
const std::string &what)
override;
std::unique_ptr< ConceptT > m_self
Observes Algorithm notifications: start,progress,finish,error.
IAlgorithm is the interface implemented by the Algorithm base class.
A wrapper class helping to export AlgorithmObserver to python.
PyObject * m_self
Value of "self" used by python to refer to an instance of this class.
AlgorithmObserverAdapter(const AlgorithmObserverAdapter &)=delete
AlgorithmObserverAdapter & operator=(const AlgorithmObserverAdapter &)=delete
PyObject * getSelf() const
Return the PyObject that owns this wrapper, i.e. self.
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
Helper class which provides the Collimation Length for SANS instruments.