MCPcopy Create free account
hub / github.com/MITK/MITK / InitCppMicroServices

Function InitCppMicroServices

Wrapping/Python/mitk/CppMicroServices.cpp:21–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace py = pybind11;
20
21void InitCppMicroServices(py::module_& m)
22{
23 m.def("get_loaded_modules", []() {
24 std::vector<std::string> names;
25 for (auto* module : us::ModuleRegistry::GetLoadedModules())
26 names.push_back(module->GetName());
27 return names;
28 },
29 R"(Return the names of all currently loaded CppMicroServices modules.
30
31In the standalone wheel, this is the list of MITK modules whose auto-load
32shared libraries have been loaded by the CppMicroServices runtime
33(typically IO readers/writers and similar plug-in services).
34
35Returns:
36 A list of module name strings.
37
38Examples:
39 >>> for name in mitk.get_loaded_modules():
40 ... print(name)
41)");
42}

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected