| 26 | using namespace mola; |
| 27 | |
| 28 | ExecutableBase::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 | |
| 40 | ExecutableBase::ExecutableBase() = default; |
| 41 |
nothing calls this directly
no outgoing calls
no test coverage detected