19 : m_requiredStrings(strings) {}
45 error +=
"A value must be entered for this parameter.";
47 size_t validityCount = 0;
49 for (
size_t i = 0; i < total; i++) {
55 if (validityCount != total) {
56 error +=
"Error not all the required substrings were contained within "
double value
The value of the point.
void setRequiredStrings(const std::vector< std::string > &)
Allows a for a vector of required strings to be passed to the validator.
std::string checkValidity(const std::string &value) const override
Checks the value is valid.
IValidator_sptr clone() const override
Clone the current state.
std::vector< std::string > m_requiredStrings
A vector of the sub strings the string must contain in order to pass validation.
StringContainsValidator()
Constructor.
std::shared_ptr< IValidator > IValidator_sptr
A shared_ptr to an IValidator.