10#include <boost/python/class.hpp>
11#include <boost/python/make_constructor.hpp>
31 unsigned int direction) {
50 using HeldType = std::shared_ptr<IAlgorithm>;
53 class_<AlgorithmProperty, bases<PropertyWithValue<HeldType>>, boost::noncopyable>(
"AlgorithmProperty", no_init)
54 .def(init<const std::string &>(args(
"name")))
57 make_constructor(&createPropertyWithValidator, default_call_policies(), args(
"name",
"validator")))
58 .def(
"__init__", make_constructor(&createPropertyWithValidatorAndDirection, default_call_policies(),
59 args(
"name",
"validator",
"direction")));
void export_AlgorithmProperty()
Define an algorithm property that can be used to supply an algorithm object to a subsequent algorithm...
IAlgorithm is the interface implemented by the Algorithm base class.
IValidator is the basic interface for all validators for properties.
virtual IValidator_sptr clone() const =0
Make a copy of the present type of validator.
The concrete, templated class for properties.
@ Input
An input workspace.
A helper struct to export PropertyWithValue<> types to Python.
static void define(const char *pythonClassName)