| 9 | namespace mllm { |
| 10 | |
| 11 | ConfigFile::ConfigFile(const std::string& file_path) { |
| 12 | std::ifstream file(file_path); |
| 13 | if (!file.is_open()) { MLLM_ERROR_EXIT(ExitCode::kIOError, "Failed to open config file: {}", file_path); } |
| 14 | json_ = nlohmann::json::parse(file); |
| 15 | } |
| 16 | |
| 17 | // Loads the configuration from a file. |
| 18 | void ConfigFile::load(const std::string& file_path) { |
nothing calls this directly
no outgoing calls
no test coverage detected