mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-19 01:38:42 +01:00
added CtbRawFile
This commit is contained in:
@@ -68,6 +68,14 @@ template <> TimingMode StringTo(const std::string &arg) {
|
||||
throw std::runtime_error("Could not decode timing mode from: \"" + arg + "\"");
|
||||
}
|
||||
|
||||
template <> FrameDiscardPolicy StringTo(const std::string &arg) {
|
||||
if (arg == "nodiscard")
|
||||
return FrameDiscardPolicy::NoDiscard;
|
||||
if (arg == "discard")
|
||||
return FrameDiscardPolicy::Discard;
|
||||
throw std::runtime_error("Could not decode frame discard policy from: \"" + arg + "\"");
|
||||
}
|
||||
|
||||
// template <> TimingMode StringTo<TimingMode>(std::string mode);
|
||||
|
||||
} // namespace aare
|
||||
Reference in New Issue
Block a user