mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-19 21:16:18 +02:00
Dev/filereading for disabled udp (#342)
- handles file reading of disabled udp ports - adds members disabled_udp_ports in master file as an optional - adds member diasbled_udp_port_types in master file as an optional - Treats enabled udp ports as ROIs - merges/combines consecutive ROis into one ### To discuss: - right now can only handle either ROI or disabled udp ports (disabled udp ports has higher precedence) - Should Frames in File be removed from Master File as value is nonsense for disabled udp ports --------- Co-authored-by: Erik Fröjdh <erik.frojdh@psi.ch>
This commit is contained in:
1 parent
eddb919328
commit
641ef047b5
25 files changed
+1252
-267
No files matched your search
@@ -235,6 +235,19 @@ template <> DACIndex string_to(const std::string &arg) {
|
||||
"\"");
|
||||
}
|
||||
|
||||
template <> UDPPortPosition string_to(const std::string &arg) {
|
||||
if (arg == "left")
|
||||
return UDPPortPosition::LEFT;
|
||||
if (arg == "right")
|
||||
return UDPPortPosition::RIGHT;
|
||||
if (arg == "top")
|
||||
return UDPPortPosition::TOP;
|
||||
if (arg == "bottom")
|
||||
return UDPPortPosition::BOTTOM;
|
||||
throw std::runtime_error("Could not decode UDPPortPosition from: \"" + arg +
|
||||
"\"");
|
||||
}
|
||||
|
||||
std::string remove_unit(std::string &str) {
|
||||
auto it = str.begin();
|
||||
while (it != str.end()) {
|
||||
|
||||
Reference in new issue
Block a user