13 return std::make_shared<WorkspaceHasDxValidator>(*
this);
19 for (
size_t i = 0; i < ws->getNumberHistograms(); ++i) {
21 return "The workspace must have Dx values set";
std::string checkValidity(MatrixWorkspace_sptr const &ws) const override
Return an error string if not all histograms in ws have Dx, otherwise an empty string.
Kernel::IValidator_sptr clone() const override
Return a deep clone of this validator.
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.