restructure zmq socker interface

zmq socket can now return vector of frames. it knows end of transmission with header.data == 0
it can also send vector of frames
This commit is contained in:
Bechir
2024-04-09 08:32:53 +02:00
committed by Bechir Braham
parent cd46f59b99
commit a2499c96d6
18 changed files with 255 additions and 87 deletions

View File

@@ -31,8 +31,7 @@ template <> DetectorType StringTo(std::string name) {
else if (name == "ChipTestBoard")
return DetectorType::ChipTestBoard;
else {
auto msg = fmt::format("Could not decode dector from: \"{}\"", name);
throw std::runtime_error(msg);
throw std::runtime_error("Could not decode dector from: \"" + name + "\"");
}
}
@@ -42,8 +41,7 @@ template <> TimingMode StringTo(std::string mode) {
else if (mode == "trigger")
return TimingMode::Trigger;
else {
auto msg = fmt::format("Could not decode timing mode from: \"{}\"", mode);
throw std::runtime_error(msg);
throw std::runtime_error("Could not decode timing mode from: \"" + mode + "\"");
}
}