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

Function ExportModuleInfo

src/runtime/python_runtime/export_core.h:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace aimrt::runtime::python_runtime {
13
14inline void ExportModuleInfo(pybind11::object m) {
15 pybind11::class_<ModuleInfo>(std::move(m), "ModuleInfo")
16 .def(pybind11::init<>())
17 .def_readwrite("name", &ModuleInfo::name)
18 .def_readwrite("major_version", &ModuleInfo::major_version)
19 .def_readwrite("minor_version", &ModuleInfo::minor_version)
20 .def_readwrite("patch_version", &ModuleInfo::patch_version)
21 .def_readwrite("build_version", &ModuleInfo::build_version)
22 .def_readwrite("author", &ModuleInfo::author)
23 .def_readwrite("description", &ModuleInfo::description);
24}
25
26inline void ExportCoreRef(pybind11::object m) {
27 pybind11::class_<CoreRef>(std::move(m), "CoreRef")

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected