mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-01 04:04:57 +01:00
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:
@@ -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 + "\"");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user