Mantid
Loading...
Searching...
No Matches
CommonBinsValidator.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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 +
9
10namespace Mantid::API {
11
13Kernel::IValidator_sptr CommonBinsValidator::clone() const { return std::make_shared<CommonBinsValidator>(*this); }
14
21 if (!value)
22 return "Enter an existing workspace";
23 if (value->isCommonBins())
24 return "";
25 else
26 return "The workspace must have common bin boundaries for all histograms";
27}
28
29} // namespace Mantid::API
double value
The value of the point.
Definition: FitMW.cpp:51
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.
Definition: IValidator.h:26