Mantid
|
DirectoryValidator is a validator that checks that a directory path is valid. More...
#include <DirectoryValidator.h>
Public Member Functions | |
std::vector< std::string > | allowedValues () const override |
Returns the set of valid values. More... | |
IValidator_sptr | clone () const override |
Clone the validator. More... | |
DirectoryValidator (bool testDirectoryExists=true) | |
Constructor. More... | |
Public Member Functions inherited from Mantid::Kernel::FileValidator | |
std::vector< std::string > | allowedValues () const override |
Returns the set of valid values. More... | |
IValidator_sptr | clone () const override |
Clone the validator. More... | |
FileValidator (const std::vector< std::string > &extensions=std::vector< std::string >(), bool testFileExists=true) | |
Constructor. More... | |
Private Member Functions | |
std::string | checkValidity (const std::string &value) const override |
If m_fullTest=true if checks that the files exists, otherwise just that path syntax looks valid. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Mantid::Kernel::FileValidator | |
std::vector< std::string > | m_extensions |
The list of permitted extensions. More... | |
bool | m_testExist |
Flag indicating whether to test for existence of filename. More... | |
DirectoryValidator is a validator that checks that a directory path is valid.
Definition at line 27 of file DirectoryValidator.h.
|
explicit |
Constructor.
testDirectoryExists | :: Flag indicating whether to test for existence of directory (default: yes) |
Definition at line 20 of file DirectoryValidator.cpp.
References Mantid::Kernel::FileValidator::m_testExist.
|
override |
Returns the set of valid values.
Definition at line 25 of file DirectoryValidator.cpp.
|
overrideprivate |
If m_fullTest=true if checks that the files exists, otherwise just that path syntax looks valid.
value | :: file name |
Definition at line 38 of file DirectoryValidator.cpp.
References Mantid::Kernel::FileValidator::m_testExist, and value.
|
override |
Clone the validator.
Definition at line 31 of file DirectoryValidator.cpp.