9#include "MantidKernel/DllConfig.h"
21template <
typename TYPE>
class MANTID_KERNEL_DLL
ArrayLengthValidator :
public TypedValidator<std::vector<TYPE>> {
31 bool hasLength()
const;
33 bool hasMinLength()
const;
35 bool hasMaxLength()
const;
37 const size_t &getLength()
const;
39 const size_t &getMinLength()
const;
41 const size_t &getMaxLength()
const;
43 void setLength(
const size_t &
value);
47 void setLengthMin(
const size_t &
value);
49 void setLengthMax(
const size_t &
value);
51 void clearLengthMin();
53 void clearLengthMax();
56 std::string checkValidity(
const std::vector<TYPE> &
value)
const override;
double value
The value of the point.
ArrayLenghtValidator : Validate length of an array property.
size_t m_arraySize
private variable containing the size of the array
~ArrayLengthValidator() override
Destructor.
bool m_hasArraySizeMax
private variable, true if size max is set, false if not
size_t m_arraySizeMin
private variable containing the minimum size of the array
size_t m_arraySizeMax
private variable containing the size max of the array
bool m_hasArraySizeMin
private variable, true if min size is set, false if not
bool m_hasArraySize
private variable, true if size is set, false if not
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Helper class which provides the Collimation Length for SANS instruments.