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

Method Factory

mola_kernel/src/interfaces/ExecutableBase.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26using namespace mola;
27
28ExecutableBase::Ptr ExecutableBase::Factory(const std::string& name)
29{
30 auto o = mrpt::rtti::classFactory(name);
31
32 if (!o)
33 {
34 THROW_EXCEPTION_FMT(
35 "[ExecutableBase::Factory] Request for unregistered class: `%s`", name.c_str());
36 }
37 return mrpt::ptr_cast<ExecutableBase>::from(o);
38}
39
40ExecutableBase::ExecutableBase() = default;
41

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected