File indexing completed on 2026-07-26 08:22:19
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "traccc/io/read_conditions_config.hpp"
0010
0011 #include "json/read_conditions_config.hpp"
0012 #include "traccc/io/utils.hpp"
0013
0014
0015 #include <stdexcept>
0016 #include <string>
0017
0018 namespace traccc::io {
0019
0020 conditions_config read_conditions_config(std::string_view filename,
0021 data_format format) {
0022
0023 std::string full_filename = get_absolute_path(filename);
0024
0025
0026 switch (format) {
0027 case data_format::json:
0028 return json::read_conditions_config(full_filename);
0029 default:
0030 throw std::invalid_argument("Unsupported data format");
0031 }
0032 }
0033
0034 }