Mantid
Loading...
Searching...
No Matches
Framework
Kernel
inc
MantidKernel
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
9
#include "
MantidKernel/TypedValidator.h
"
10
#include <vector>
11
12
namespace
Mantid
{
13
namespace
Kernel {
19
class
MANTID_KERNEL_DLL
RebinParamsValidator
:
public
TypedValidator<std::vector<double>> {
20
public
:
21
RebinParamsValidator
(
bool
allowEmpty =
false
,
bool
allowRange =
false
);
22
IValidator_sptr
clone()
const override
;
23
24
private
:
25
std::string checkValidity(
const
std::vector<double> &
value
)
const override
;
26
bool
m_allowEmpty
;
27
bool
m_allowRange
;
28
};
29
30
}
// namespace Kernel
31
}
// namespace Mantid
value
double value
The value of the point.
Definition
FitMW.cpp:51
TypedValidator.h
Mantid::Kernel::RebinParamsValidator
Validator to check the format of a vector providing the rebin parameters to an algorithm.
Definition
RebinParamsValidator.h:19
Mantid::Kernel::RebinParamsValidator::m_allowEmpty
bool m_allowEmpty
Definition
RebinParamsValidator.h:26
Mantid::Kernel::RebinParamsValidator::m_allowRange
bool m_allowRange
Definition
RebinParamsValidator.h:27
Mantid::Kernel::IValidator_sptr
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Definition
IValidator.h:26
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Generated by
1.9.8