59 std::map<uint32_t, const confmodel::DetectorStream*> streams;
60 for (
const auto& det_connections : cfg->get_connections()) {
62 for (
const auto& stream : det_connections->streams()) {
63 streams[stream->get_source_id()] = stream;
67 for (
const auto& qi : cfg->get_outputs()) {
69 if (q_with_id ==
nullptr) {
70 throw datahandlinglibs::FailedFakeCardInitialization(
74 TLOG() <<
"Cannot find queue: " << q_with_id->UID() << std::endl;
75 throw datahandlinglibs::GenericConfigurationError(
ERS_HERE,
"Cannot find queue: " + q_with_id->UID());
78 TLOG() <<
"Emulator for queue name " << q_with_id->UID() <<
" was already configured";
79 throw datahandlinglibs::GenericConfigurationError(
ERS_HERE,
"Emulator configured twice: " + q_with_id->UID());
81 m_source_emus[q_with_id->UID()]->conf(streams[q_with_id->get_source_id()],
82 cfg->get_configuration()->get_snb_conf());
85 if (!emu->is_configured()) {
86 throw datahandlinglibs::GenericConfigurationError(
ERS_HERE,
"Not all links were configured");