10#include <boost/python/class.hpp>
11#include <boost/python/default_call_policies.hpp>
12#include <boost/python/list.hpp>
13#include <boost/python/make_constructor.hpp>
34 class_<StringContainsValidator, bases<IValidator>, boost::noncopyable>(
"StringContainsValidator")
35 .def(
"__init__", make_constructor(&createStringContainsValidator, default_call_policies()))
37 make_constructor(&createStringContainsValidatorWithStrings, default_call_policies(), (arg(
"values"))))
38 .def(
"setRequiredStrings", &setRequiredStrings, arg(
"Strings"),
39 "Set the list of sub strings that the input must contain");
void export_StringContainsValidator()
IValidator is the basic interface for all validators for properties.
StringContainsValidator : A validator designed to ensure that a string input contain a given sub stri...
void setRequiredStrings(const std::vector< std::string > &)
Allows a for a vector of required strings to be passed to the validator.
Converts a Python sequence type to a C++ std::vector, where the element type is defined by the templa...