15 return std::make_shared<IncreasingAxisValidator>(*
this);
25 const Axis *xAxis{
nullptr};
28 xAxis =
value->getAxis(0);
30 return "No X axis available in the workspace";
35 if (xAxis->length() > 1 && xAxis->getValue(0) >= xAxis->getValue(xAxis->length() - 1))
36 return "X axis of the workspace should be increasing from left to "
double value
The value of the point.
Class to represent the axis of a workspace.
std::string checkValidity(const MatrixWorkspace_sptr &value) const override
Check for validity.
Kernel::IValidator_sptr clone() const override
Clone the current state.
Exception for index errors.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.