10#include <boost/python/class.hpp>
13namespace PythonInterface {
19 static void define(
const char *pythonClassName) {
22 using Mantid::Kernel::TypedValidator;
24 class_<TypedValidator<Type>, bases<IValidator>, boost::noncopyable>(pythonClassName, no_init)
25 .def(
"isValid", &IValidator::isValid<Type>, (arg(
"self"), arg(
"value")),
26 "Returns an empty string if the value is considered valid, "
27 "otherwise a string defining the error is returned.");
31#define EXPORT_TYPEDVALIDATOR(Type)
IValidator is the basic interface for all validators for properties.
Helper class which provides the Collimation Length for SANS instruments.
Declares a simple static struct to export a TypedValidator to Python.
static void define(const char *pythonClassName)