22 return std::make_shared<TableWorkspaceNotEmptyValidator>(*
this);
30 if (
value->columnCount() == 0) {
31 return "The workspace must have at least 1 column";
33 if (
value->rowCount() == 0) {
34 return "The workspace must have at least 1 row";
double value
The value of the point.
TableWorkspaceNotEmptyValidator()
Constructor.
Kernel::IValidator_sptr clone() const override
Clone the current state.
std::string checkValidity(const TableWorkspace_sptr &value) const override
Check for validity.
An interface for those validators that require the MatrixWorkspace interface.
std::shared_ptr< TableWorkspace > TableWorkspace_sptr
shared pointer to Mantid::DataObjects::TableWorkspace
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.