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

Function ExportRpcProxyBase

src/runtime/python_runtime/export_rpc.h:228–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228inline void ExportRpcProxyBase(pybind11::object m) {
229 using aimrt::rpc::ContextRef;
230 using aimrt::rpc::ProxyBase;
231 using aimrt::rpc::RpcHandleRef;
232
233 pybind11::class_<ProxyBase>(std::move(m), "ProxyBase")
234 .def(pybind11::init<RpcHandleRef, std::string_view, std::string_view>())
235 .def("RpcType", &ProxyBase::RpcType)
236 .def("ServiceName", &ProxyBase::ServiceName)
237 .def("SetServiceName", &ProxyBase::SetServiceName)
238 .def("NewContextSharedPtr", &ProxyBase::NewContextSharedPtr, pybind11::arg_v("ctx_ref", ContextRef(), "None"))
239 .def("GetDefaultContextSharedPtr", &ProxyBase::GetDefaultContextSharedPtr)
240 .def("SetDefaultContextSharedPtr", &ProxyBase::SetDefaultContextSharedPtr);
241}
242
243} // namespace aimrt::runtime::python_runtime

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls 1

ContextRefClass · 0.50

Tested by

no test coverage detected