Mantid
Loading...
Searching...
No Matches
TableWorkspaceNotEmptyValidator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
10
11namespace Mantid {
12namespace DataObjects {
13
17class MANTID_DATAOBJECTS_DLL TableWorkspaceNotEmptyValidator : public TableWorkspaceValidator {
18public:
21 std::string getType() const { return "notempty"; }
23 Kernel::IValidator_sptr clone() const override;
24
25private:
27 std::string checkValidity(const TableWorkspace_sptr &value) const override;
28};
29
30} // namespace DataObjects
31} // namespace Mantid
double value
The value of the point.
Definition FitMW.cpp:51
A validator which checks that the table workspace is not empty.
std::string getType() const
Gets the type of the validator.
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.
Definition IValidator.h:26
Helper class which provides the Collimation Length for SANS instruments.