10#include <boost/python/class.hpp>
13using Mantid::Kernel::TypedValidator;
21 class_<ADSValidator, bases<TypedValidator<std::vector<std::string>>>, boost::noncopyable>(
22 "ADSValidator", init<>(
"Default constructor"))
23 .def(init<const bool, const bool>(
"Constructor setting allowMultiple and isOptional.",
24 args(
"allowMultipleSelection",
"isOptional")))
27 "Are multiple workspaces allowed")
29 (arg(
"self"), arg(
"isMultiSelectionAllowed")),
"Set if multiple workspaces are allowed")
void export_ADSValidator()
This is the base TypedValidator for most of the WorkspaceValidators.
ADSValidator : a validator that requires the value of a property to be present in the ADS.
void setOptional(const bool setOptional)
bool isMultipleSelectionAllowed() override
void setMultipleSelectionAllowed(const bool isMultiSelectionAllowed)
Declares a simple static struct to export a TypedValidator to Python.