25class MANTID_KERNEL_DLL
FileValidator :
public TypedValidator<std::string> {
27 explicit FileValidator(
const std::vector<std::string> &extensions = std::vector<std::string>(),
28 bool testFileExists =
true);
29 std::vector<std::string> allowedValues()
const override;
39 std::string checkValidity(
const std::string &
value)
const override;
40 bool endswith(
const std::string &
value)
const;
double value
The value of the point.
FileValidator is a validator that checks that a filepath is valid.
bool m_testExist
Flag indicating whether to test for existence of filename.
std::vector< std::string > m_extensions
The list of permitted extensions.
bool has_ending(const std::string &value, const std::string &ending)
Confirm that the value string ends with then ending string.
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.
Helper class which provides the Collimation Length for SANS instruments.