MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / ConfigFile

Method ConfigFile

mllm/engine/ConfigFile.cpp:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace mllm {
10
11ConfigFile::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.
18void ConfigFile::load(const std::string& file_path) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected