MCPcopy Create free account
hub / github.com/Tencent/embedx / LoadConfig

Method LoadConfig

src/io/loader/freq_file_loader.cc:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27} // namespace
28
29bool FreqFileLoader::LoadConfig(const std::string& config_file) {
30 if (!io_util::LoadConfig(config_file, &ns_size_, &id_name_map_)) {
31 DXERROR("Failed to load config file.");
32 return false;
33 }
34 return true;
35}
36
37bool FreqFileLoader::LoadFreq(const std::string& dir, int thread_num) {
38 DXINFO("Loading files from dir: %s.", dir.c_str());

Callers 1

CreateMethod · 0.80

Calls 1

LoadConfigFunction · 0.85

Tested by

no test coverage detected