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

Method GetModuleOptions

src/runtime/core/module/module_manager.cc:352–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352std::optional<ModuleManager::Options::ModuleOptions> ModuleManager::GetModuleOptions(std::string_view module_name) {
353 auto find_module_options_itr = std::find_if(
354 options_.modules_options.begin(), options_.modules_options.end(),
355 [&module_name](const auto& module_options) {
356 return module_options.name == module_name;
357 });
358
359 if (find_module_options_itr != options_.modules_options.end())
360 return std::make_optional(*find_module_options_itr);
361
362 return {};
363}
364
365void ModuleManager::InitModule(ModuleWrapper* module_wrapper_ptr) {
366 const auto& module_name = module_wrapper_ptr->info.name;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected