17#include <boost/python/extract.hpp>
18#include <boost/python/object.hpp>
27static inline object const &validate_python_class(
object const &pyclass) {
28 if (PyType_Check(pyclass.ptr())) {
31 throw std::invalid_argument(
"Attempt to construct validator with an object instead of a class type");
55 std::string check(boost::any
const &
value)
const override;
double value
The value of the point.
IValidator is the basic interface for all validators for properties.
PythonObjectTypeValidator(object const &pyclass)
PythonObjectTypeValidator()
IValidator_sptr clone() const override
Make a copy of the present type of validator.
~PythonObjectTypeValidator() override=default
#define MANTID_PYTHONINTERFACE_CORE_DLL
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.