diff --git a/Code/Mantid/Framework/Kernel/inc/MantidKernel/StringContainsValidator.h b/Code/Mantid/Framework/Kernel/inc/MantidKernel/StringContainsValidator.h index ad8ccb058d1c18dac77e0ff7d6bed71f8cac4c21..e41f1148b35689eb7192def7bc9bebc49561147c 100644 --- a/Code/Mantid/Framework/Kernel/inc/MantidKernel/StringContainsValidator.h +++ b/Code/Mantid/Framework/Kernel/inc/MantidKernel/StringContainsValidator.h @@ -37,8 +37,22 @@ namespace Kernel { class DLLExport StringContainsValidator : public TypedValidator<std::string> { public: StringContainsValidator(); + + /// Clone the current state + IValidator_sptr clone() const; + + /// Allows a for a vector of required strings to be passed to the validator + void setRequiredStrings(const std::vector<std::string> &); + virtual ~StringContainsValidator(); +private: + /// Checks the value is valid + std::string checkValidity(const std::string &value) const; + + /// A vector of the sub strings the string must contain in order to pass + /// validation + std::vector<std::string> m_requiredStrings; }; } // namespace Kernel