MCPcopy Create free account
hub / github.com/MOLAorg/mola / exposeParameters

Method exposeParameters

mola_kernel/src/interfaces/ExecutableBase.cpp:65–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63std::string ExecutableBase::getModuleInstanceName() const { return module_instance_name; }
64
65void ExecutableBase::exposeParameters(const mrpt::containers::yaml& names_values)
66{
67 auto lck = mrpt::lockHelper(module_params_mtx_);
68
69 if (names_values.isNullNode() || names_values.empty())
70 {
71 return;
72 }
73
74 ASSERT_(names_values.isMap());
75
76 for (const auto& [k, v] : names_values.asMapRange())
77 {
78 const auto name = k.as<std::string>();
79 module_params_[name] = v;
80
81 MRPT_LOG_DEBUG_STREAM("Exposing parameter: '" << k << "'='" << v.as<std::string>() << "'");
82 }
83}
84
85mrpt::containers::yaml ExecutableBase::getModuleParameters() const
86{

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected