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, dg::sigtime_t>();
30 exposeSwitch<dg::Vector, dg::sigtime_t>();
31 exposeSwitch<dg::sot::MatrixHomogeneous, dg::sigtime_t>();