Mantid
Loading...
Searching...
No Matches
RebinParamsValidator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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#include <vector>
11
12namespace Mantid {
13namespace Kernel {
19class MANTID_KERNEL_DLL RebinParamsValidator : public TypedValidator<std::vector<double>> {
20public:
21 RebinParamsValidator(bool allowEmpty = false, bool allowRange = false);
22 IValidator_sptr clone() const override;
23
24private:
25 std::string checkValidity(const std::vector<double> &value) const override;
28};
29
30} // namespace Kernel
31} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
Validator to check the format of a vector providing the rebin parameters to an algorithm.
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.