43 using BaseValueType = boost::python::object;
48 class_<PythonObjectProperty, bases<BaseClassType>, boost::noncopyable>(
"PythonObjectProperty", no_init)
50 .def(init<const std::string &, const unsigned int>(
51 (arg(
"self"), arg(
"name"), arg(
"direction") =
Direction::Input),
"Construct a PythonObjectProperty"))
54 .def(init<const std::string &, IValidator_sptr, const unsigned int>(
55 (arg(
"self"), arg(
"name"), arg(
"validator"), arg(
"direction") =
Direction::Input),
56 "Construct a PythonObjectProperty with a validator"))
59 .def(init<const std::string &, const boost::python::object &, const unsigned int>(
60 (arg(
"self"), arg(
"name"), arg(
"defaultValue"), arg(
"direction") =
Direction::Input),
61 "Construct a PythonObjectProperty with a default value"))
64 .def(init<const std::string &, const boost::python::object &, IValidator_sptr, const unsigned int>(
65 (arg(
"self"), arg(
"name"), arg(
"defaultValue"), arg(
"validator") = std::make_shared<NullValidator>(),
67 "Construct a PythonObjectProperty with a default value and validator"))
70 make_constructor(&createPythonObjectProperty, default_call_policies(),
71 (arg(
"name"), arg(
"value"), arg(
"validator") = IValidator_sptr(
new NullValidator),
74 .add_property(
"value", make_function(&PythonObjectProperty::operator(),
75 return_value_policy<boost::python::return_by_value>()))
76 .def(
"setValue",
static_cast<std::string (
PythonObjectProperty::*)(boost::python::object
const &)
>(