18 : m_mustNotBeDistribution(mustNotBeDistribution) {}
30 if (!
value->isDistribution())
33 return "A workspace containing numbers of counts is required here";
35 if (
value->isDistribution())
38 return "A workspace of numbers of counts is not allowed here";
double value
The value of the point.
const bool m_mustNotBeDistribution
A flag indicating whether this validator requires that the workspace must be a distribution (false) o...
RawCountValidator(const bool &mustNotBeDistribution=true)
Constructor.
std::string checkValidity(const MatrixWorkspace_sptr &value) const override
Check for validity.
Kernel::IValidator_sptr clone() const override
Clone the current state.
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.