6 typedef bp::return_value_policy<bp::reference_existing_object>
9 template <
typename T,
typename Time>
11 typedef dg::sot::Switch<T, Time> E_t;
13 dg::python::exposeEntity<E_t, bp::bases<dg::Entity>,
14 dg::python::AddCommands>()
15 .def_readonly(
"sout", &E_t::SOUT)
17 .add_property(
"n_sin", &B_t::getSignalNumber, &B_t::setSignalNumber,
18 "the number of input signal.")
19 .def_readonly(
"selection", &E_t::selectionSIN)
20 .def_readonly(
"boolSelection", &E_t::boolSelectionSIN)
22 .def(
"setSignalNumber", &B_t::setSignalNumber,
23 "set the number of input signal.", bp::arg(
"size"))
24 .def(
"getSignalNumber", &B_t::getSignalNumber,
25 "get the number of input signal.", bp::arg(
"size"));
29 exposeSwitch<bool, int>();
30 exposeSwitch<dg::Vector, int>();
31 exposeSwitch<dg::sot::MatrixHomogeneous, int>();
BOOST_PYTHON_MODULE(wrap)
bp::return_value_policy< bp::reference_existing_object > reference_existing_object