20 -> std::tuple<DataWriterOption, process::DataConvertOptions>
24 namespace fs = std::filesystem;
26 if (
auto pos = filename.find(
':'); pos != std::string::npos)
28 return {
udp, proto };
31 const auto file_ext = fs::path{ filename }.extension().string();
32 if (file_ext ==
".bin" or file_ext ==
".lmd")
34 return {
bin, raw_frame };
36 if (file_ext ==
".binpb")
38 return {
bin, proto_frame };
40 if (file_ext ==
".root")
42 return {
root, structure };
44 if (file_ext ==
".json")
46 return {
json, structure };