23 -> std::tuple<DataWriterOption, process::DataConvertOptions>
27 namespace fs = std::filesystem;
29 if (
auto pos = filename.find(
':'); pos != std::string::npos)
31 if (
auto pos = filename.find(
'?'); pos != std::string::npos)
35 return {
udp, proto };
38 const auto file_ext = fs::path{ filename }.extension().string();
39 if (file_ext ==
".bin" or file_ext ==
".lmd")
41 return {
bin, raw_frame };
43 if (file_ext ==
".binpb")
45 return {
bin, proto_frame };
47 if (file_ext ==
".root")
49 return {
root, structure };
51 if (file_ext ==
".json")
53 return {
json, structure };