31 if (
value->isHistogramData())
34 return "The workspace must contain histogram data";
36 if (!
value->isHistogramData())
39 return "The workspace must not contain histogram data";
double value
The value of the point.
Kernel::IValidator_sptr clone() const override
Clone the current state.
std::string checkValidity(const MatrixWorkspace_sptr &value) const override
Check for validity.
HistogramValidator(const bool &mustBeHistogram=true)
Constructor.
const bool m_mustBeHistogram
A flag indicating whether this validator requires that the workspace be a histogram (true) or not.
An interface for those validators that require the MatrixWorkspace interface.
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.