MCPcopy Create free account
hub / github.com/AimRT/AimRT / ExportParameter

Function ExportParameter

src/runtime/python_runtime/export_parameter.h:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace aimrt::runtime::python_runtime {
11
12inline void ExportParameter(pybind11::object m) {
13 using aimrt::parameter::ParameterHandleRef;
14
15 pybind11::class_<ParameterHandleRef>(std::move(m), "ParameterHandleRef")
16 .def(pybind11::init<>())
17 .def("__bool__", &ParameterHandleRef::operator bool)
18 .def("GetParameter", &ParameterHandleRef::GetParameter)
19 .def("SetParameter", &ParameterHandleRef::SetParameter);
20}
21
22} // namespace aimrt::runtime::python_runtime

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected