33 std::unordered_map<std::string, LoggingConfig>& logging_configs,
34 std::unordered_map<std::string, ClientConfig>& client_configs,
35 std::unordered_map<std::string, ServerConfig>& server_configs) {
37 const auto root_table = ::toml::parse_file(file_path);
39 root_table, logging_configs, client_configs, server_configs);
44 }
catch (const ::toml::parse_error& e) {
46 fmt::format(
"Failed to parse {}: {} (at {}:{})", file_path,
47 e.description(), file_path, e.source().begin.line));
void parse_toml(std::string_view file_path, std::unordered_map< std::string, LoggingConfig > &logging_configs, std::unordered_map< std::string, ClientConfig > &client_configs, std::unordered_map< std::string, ServerConfig > &server_configs)
Parse configurations from a TOML file.