33 WorkerConfig (Detail::ModuleData *val_data) noexcept
43 WorkerConfig :: ~WorkerConfig ()
noexcept =
default;
50 using namespace msgEventLoop;
53 std::unique_ptr<IAlgorithmWrapper> alg;
54 if (
config.componentType() ==
"AnaAlgorithm")
55 alg = std::make_unique<AnaAlgorithmWrapper> (AnaAlgorithmConfig (
config));
56 else if (
config.componentType() ==
"AnaReentrantAlgorithm")
57 alg = std::make_unique<AnaReentrantAlgorithmWrapper> (AnaReentrantAlgorithmConfig (
config));
58 else if (
config.componentType() ==
"AsgTool")
60 else if (
config.componentType() ==
"AsgService")
65 throw std::runtime_error (
"unknown component type: \"" +
config.componentType() +
"\"");
67 m_data->m_algs.emplace_back (std::move (alg));