52 std::map<uint32_t, const confmodel::DetectorStream*> streams;
53 for (
const auto & det_connections : cfg->get_connections()) {
55 for (
const auto& stream : det_connections->get_streams()) {
56 streams[stream->get_source_id()] = stream;
60 for (
const auto& qi : cfg->get_outputs()) {
62 if (q_with_id ==
nullptr) {
63 throw datahandlinglibs::FailedFakeCardInitialization(
ERS_HERE,
get_fcr_name(),
"Queue is not of type QueueWithSourceId");
66 TLOG() <<
"Cannot find queue: " << q_with_id->UID() << std::endl;
67 throw datahandlinglibs::GenericConfigurationError(
ERS_HERE,
"Cannot find queue: " + q_with_id->UID());
70 TLOG() <<
"Emulator for queue name " << q_with_id->UID() <<
" was already configured";
71 throw datahandlinglibs::GenericConfigurationError(
ERS_HERE,
"Emulator configured twice: " + q_with_id->UID());
73 m_source_emus[q_with_id->UID()]->conf(streams[q_with_id->get_source_id()], cfg->get_configuration()->get_emulation_conf());
76 if (!emu->is_configured()) {
77 throw datahandlinglibs::GenericConfigurationError(
ERS_HERE,
"Not all links were configured");