14#include <boost/python/wrapper.hpp>
18namespace PythonInterface {
47 const std::string
name()
const override;
51 const std::string
summary()
const override;
53 const std::string
category()
const override;
55 const std::vector<std::string>
seeAlso()
const override;
58 const std::string
alias()
const override;
64 const std::string
helpURL()
const override;
91 const boost::python::object &defaultValue,
92 const boost::python::object &validator = boost::python::object(),
97 const boost::python::object &defaultValue,
const std::string &doc,
102 const boost::python::object &defaultValue,
const int direction);
113 void init()
override;
115 void exec()
override;
118 using SuperClass::declareProperty;
Base class for properties.
Provides a layer class for boost::python to allow C++ virtual functions to be overridden in a Python ...
const std::string helpURL() const override
Optional documentation URL of the algorithm, empty string if not overridden.
void setWikiSummary(const std::string &summary)
Set the summary text.
void cancel() override
Allow the cancel method to be overridden.
AlgorithmAdapter(const AlgorithmAdapter &)=delete
Disable copy operator.
PyObject * m_self
The Python portion of the object.
std::string m_wikiSummary
Here for deprecated setWikiSummary method.
std::map< std::string, std::string > validateInputs() override
Returns the validateInputs result of the algorithm.
AlgorithmAdapter()=delete
Disable default constructor - The PyObject must be supplied to construct the object.
const std::string alias() const override
Allow the method returning the algorithm aliases to be overridden.
AlgorithmAdapter & operator=(const AlgorithmAdapter &)=delete
Disable assignment operator.
const std::string name() const override
Returns the name of the algorithm.
PyObject * m_isRunningObj
A pointer to an overridden isRunning method.
bool checkGroups() override
A return of false will allow processing workspace groups as a whole.
const std::string aliasDeprecated() const override
Returns optional documentation URL of the algorithm.
const std::string summary() const override
Returns the summary for the algorithm.
void exec() override
Private exec for this algorithm.
int version() const override
Returns a version of the algorithm.
PyObject * getSelf() const
Returns the PyObject that owns this wrapper, i.e.
const std::vector< std::string > seeAlso() const override
Returns seeAlso related algorithms.
static void declarePyAlgProperty(boost::python::object &self, Kernel::Property *prop, const std::string &doc="")
Declare a preconstructed property.
const std::string category() const override
Returns a category of the algorithm.
void init() override
Private init for this algorithm.
bool isRunning() const override
Allow the isRunning method to be overridden.
Helper class which provides the Collimation Length for SANS instruments.
@ Input
An input workspace.